28 lines
794 B
JavaScript
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;
|
|
} |