.
This commit is contained in:
16
server/api/models/eventnotification.js
Normal file
16
server/api/models/eventnotification.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'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;
|
||||
};
|
||||
Reference in New Issue
Block a user