gancio-upstream/server/api/models/eventnotification.js
2019-06-07 17:02:33 +02:00

16 lines
394 B
JavaScript

'use strict'
module.exports = (sequelize, DataTypes) => {
const eventNotification = sequelize.define('eventNotification', {
status: {
type: DataTypes.ENUM,
values: ['new', 'sent', 'error'],
defaultValue: 'new',
index: true
}
}, {})
eventNotification.associate = function (models) {
// associations can be defined here
}
return eventNotification
}