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

27 lines
708 B
JavaScript

module.exports = (sequelize, type) => {
const KnowAssQuesAns = sequelize.define('know_ass_ques_ans', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
KAQ_id: type.INTEGER,
ans: type.STRING,
ass_id: type.INTEGER,
user_id: type.INTEGER,
correct: type.INTEGER,
d_id: type.INTEGER,
sd_id: type.INTEGER,
topic_id: type.INTEGER,
cohort_id: type.INTEGER,
active: {
type: type.INTEGER,
defaultValue: 1
},
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return KnowAssQuesAns;
}