2016-06-19 10:14:47 -07:00
|
|
|
export default function (sequelize, DataTypes) {
|
|
|
|
const Activation = sequelize.define('activation', {
|
|
|
|
id: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, primaryKey: true },
|
2016-06-19 11:17:31 -07:00
|
|
|
activated: { type: DataTypes.BOOLEAN, defaultValue: false, primaryKey: true },
|
2016-06-19 10:14:47 -07:00
|
|
|
email: DataTypes.STRING,
|
|
|
|
}, {
|
|
|
|
classMethods: {
|
|
|
|
associate: (models) => {
|
|
|
|
Activation.belongsTo(models.user);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return Activation;
|
|
|
|
}
|