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

39 lines
1012 B
JavaScript

module.exports = (sequelize, type) => {
const SelfPacedSchedule = sequelize.define('self_paced_schedules', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
certi_id: type.INTEGER,
user_id: type.INTEGER,
cohort_id: type.INTEGER,
exam_date: type.TEXT,
study_date: type.TEXT,
sun: type.INTEGER,
mon: type.INTEGER,
tues: type.INTEGER,
wed: type.INTEGER,
thurs: type.INTEGER,
fri: type.INTEGER,
sat: type.INTEGER,
hsun: type.INTEGER,
hmon: type.INTEGER,
htues: type.INTEGER,
hwed: type.INTEGER,
hthurs: type.INTEGER,
hfri: type.INTEGER,
hsat: type.INTEGER,
btn_balance: type.INTEGER,
btn_sprint: type.INTEGER,
btn_insane: type.INTEGER,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return SelfPacedSchedule;
}