mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
const sequelize = require('./index').sequelize
|
|
const { Model, DataTypes } = require('sequelize')
|
|
|
|
class EventNotification extends Model {}
|
|
|
|
EventNotification.init({
|
|
status: {
|
|
type: DataTypes.ENUM,
|
|
values: ['new', 'sent', 'error', 'sending'],
|
|
defaultValue: 'new',
|
|
index: true
|
|
}
|
|
}, { sequelize, modelName: 'event_notification' })
|
|
|
|
module.exports = EventNotification
|