module.exports = (sequelize, type) => { const Schedule = sequelize.define('schedule', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, user_id: type.INTEGER, event_name: type.STRING, video_link: type.TEXT, message: type.TEXT, status: { type: type.INTEGER, defaultValue: 0 } }) return Schedule; }