Setup schema and tests.
This commit is contained in:
parent
806f42e3f8
commit
de0284e48a
7 changed files with 49 additions and 17 deletions
|
@ -1,7 +1,7 @@
|
|||
export default function (sequelize, DataTypes) {
|
||||
const Activation = sequelize.define('activation', {
|
||||
id: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, primaryKey: true },
|
||||
activated: false,
|
||||
activated: { type: DataTypes.BOOLEAN, defaultValue: false, primaryKey: true },
|
||||
email: DataTypes.STRING,
|
||||
}, {
|
||||
classMethods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue