Files
gancio/server/api/models/eventnotification.js

16 lines
363 B
JavaScript
Raw Normal View History

2020-06-27 02:10:10 +02:00
const sequelize = require('./index')
const { Model, DataTypes } = require('sequelize')
2019-06-07 17:02:33 +02:00
2020-06-27 02:10:10 +02:00
class EventNotification extends Model {}
EventNotification.init({
status: {
type: DataTypes.ENUM,
values: ['new', 'sent', 'error'],
defaultValue: 'new',
index: true
}
}, { sequelize, modelName: 'event_notification' })
module.exports = EventNotification