mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
14 lines
337 B
JavaScript
14 lines
337 B
JavaScript
'use strict'
|
|
module.exports = (sequelize, DataTypes) => {
|
|
const event_notification = sequelize.define('event_notification', {
|
|
status: {
|
|
type: DataTypes.ENUM,
|
|
values: ['new', 'sent', 'error'],
|
|
defaultValue: 'new',
|
|
errorMessage: DataTypes.TEXT,
|
|
index: true
|
|
}
|
|
}, {})
|
|
|
|
return event_notification
|
|
}
|