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

29 lines
792 B
JavaScript

module.exports = (sequelize, type) => {
const MiniMasterClassPtqa = sequelize.define('mini_master_class_ptq_ans', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
PTQ_id: type.INTEGER,
ans: type.STRING,
test_id: type.INTEGER,
user_id: type.INTEGER,
correct: type.INTEGER,
ans_time: type.STRING,
d_id: type.INTEGER,
sd_id: type.INTEGER,
topic_id: type.INTEGER,
class_id: type.INTEGER,
flag_review: type.INTEGER,
active: {
type: type.INTEGER,
defaultValue: 1
},
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return MiniMasterClassPtqa;
}