mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
16 lines
No EOL
399 B
JavaScript
16 lines
No EOL
399 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;
|
|
}; |