module.exports = (sequelize, type) => { const AllLiveEvent = sequelize.define('all_live_events', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, live_event_id: type.INTEGER, certi_id: type.INTEGER, event_name: type.TEXT, event_link: type.TEXT, start_date: type.TEXT, start_time: type.TEXT, end_time: type.TEXT, is_repeat: type.INTEGER,//1=recurring, 2=Does not repeat repeat_count: type.INTEGER, repeat_type: type.ENUM('Day', 'Week', 'Month', 'Year'), repeat_on: type.TEXT,//TEXT array ends_type: type.ENUM('Never', 'On', 'After'), ends_on: type.TEXT, total_occurances: type.INTEGER, meeting_id: type.TEXT, created_by: type.INTEGER, admin_attendee_id: type.TEXT, time_zone: type.TEXT, is_record: { type: type.INTEGER, defaultValue: 0 }, is_auto_record: { type: type.INTEGER, defaultValue: 0 }, meeting_playform: type.INTEGER, attendees: type.TEXT, is_completed: { type: type.INTEGER, defaultValue: 0 }, is_live: { type: type.INTEGER, defaultValue: 0 }, complete_date: type.TEXT, status: { type: type.INTEGER, defaultValue: 0 } }) return AllLiveEvent; }