2019-06-07 17:02:33 +02:00
|
|
|
'use strict'
|
2019-06-06 23:54:32 +02:00
|
|
|
module.exports = (sequelize, DataTypes) => {
|
|
|
|
|
const eventNotification = sequelize.define('eventNotification', {
|
|
|
|
|
status: {
|
|
|
|
|
type: DataTypes.ENUM,
|
|
|
|
|
values: ['new', 'sent', 'error'],
|
|
|
|
|
defaultValue: 'new',
|
|
|
|
|
index: true
|
|
|
|
|
}
|
2019-06-07 17:02:33 +02:00
|
|
|
}, {})
|
|
|
|
|
|
|
|
|
|
eventNotification.associate = function (models) {
|
2019-06-06 23:54:32 +02:00
|
|
|
// associations can be defined here
|
2019-06-07 17:02:33 +02:00
|
|
|
}
|
|
|
|
|
return eventNotification
|
|
|
|
|
}
|