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-08-07 14:38:05 +01:00
|
|
|
activatedAt: { type: DataTypes.DATE },
|
2016-06-19 10:14:47 -07:00
|
|
|
email: DataTypes.STRING,
|
|
|
|
});
|
|
|
|
|
2018-06-02 15:50:39 +00:00
|
|
|
Activation.associate = function associate(models) {
|
|
|
|
Activation.belongsTo(models.user);
|
|
|
|
};
|
|
|
|
|
2016-06-19 10:14:47 -07:00
|
|
|
return Activation;
|
|
|
|
}
|