Files
gancio/server/api/models/eventnotification.js

15 lines
337 B
JavaScript
Raw Normal View History

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',
errorMessage: DataTypes.TEXT,
2019-06-06 23:54:32 +02:00
index: true
}
2019-06-07 17:02:33 +02:00
}, {})
2019-06-25 01:05:38 +02:00
return event_notification
2019-06-07 17:02:33 +02:00
}