module.exports = (sequelize, type) => {

    const SelfpacedClassAllUserSchedule = sequelize.define('selfpaced_class_all_user_schedule', {
        id: {
            type: type.BIGINT,
            primaryKey: true,
            autoIncrement: true
        },
        type: type.TEXT,
        cohort_id: type.INTEGER,
        type_id: type.INTEGER,
        due_date: type.TEXT,
        overdue_date: type.TEXT,
        exam_name: type.TEXT,
        cohort_name: type.TEXT,
        email: type.TEXT,
        user_id: type.INTEGER,
        is_completed: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return SelfpacedClassAllUserSchedule;
}