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

19 lines
531 B
JavaScript

module.exports = (sequelize, type) => {
const QuestionNotes = sequelize.define('question_notes', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
user_id: type.INTEGER,
test_id: type.INTEGER,
q_id: type.INTEGER,
test_type: type.ENUM('CAT', 'PRACTICE', 'LIVE', 'KA', 'MIND'),
notes: type.TEXT,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return QuestionNotes;
}