2019-06-07 17:02:33 +02:00
|
|
|
'use strict'
|
2019-06-06 23:54:32 +02:00
|
|
|
module.exports = (sequelize, DataTypes) => {
|
2019-06-25 01:05:38 +02:00
|
|
|
const event_notification = sequelize.define('event_notification', {
|
2019-06-06 23:54:32 +02:00
|
|
|
status: {
|
|
|
|
|
type: DataTypes.ENUM,
|
|
|
|
|
values: ['new', 'sent', 'error'],
|
|
|
|
|
defaultValue: 'new',
|
2019-06-21 23:52:18 +02:00
|
|
|
errorMessage: DataTypes.TEXT,
|
2019-06-06 23:54:32 +02:00
|
|
|
index: true
|
|
|
|
|
}
|
2019-06-07 17:02:33 +02:00
|
|
|
}, {})
|
|
|
|
|
|
2019-10-02 21:04:03 +02:00
|
|
|
return event_notification
|
2019-06-07 17:02:33 +02:00
|
|
|
}
|