LMS/E-Learning-Backend-main/app/models/live_events.js
2025-09-01 19:37:35 +05:30

50 lines
1.4 KiB
JavaScript

module.exports = (sequelize, type) => {
const LiveEvents = sequelize.define('live_events', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
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 LiveEvents;
}