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

28 lines
794 B
JavaScript

module.exports = (sequelize, type) => {
const AIQuestionFeedbacks = sequelize.define('ai_question_feedbacks', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
user_id: type.TEXT,
que_id: type.INTEGER,
question: type.TEXT,
optionA: type.TEXT,
optionB: type.TEXT,
optionC: type.TEXT,
optionD: type.TEXT,
correct: type.INTEGER,
explanation: type.TEXT,
notes: type.TEXT,
good_question: type.INTEGER,
difficulty: type.TEXT,
refine_wording: type.INTEGER,
general_feedback: type.TEXT,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return AIQuestionFeedbacks;
}