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

35 lines
1.1 KiB
JavaScript

module.exports = (sequelize, type) => {
const PracticeAppque = sequelize.define('practice_appques', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
free_paid: type.STRING,
title: type.TEXT,
first_choice: type.STRING,
second_choice: type.STRING,
third_choice: type.STRING,
fourth_choice: type.STRING,
answer: type.INTEGER,
type: type.ENUM('VERY SIMPLE', 'SIMPLE', 'AVERAGE', 'ABOVE AVERAGE', 'HARD', 'DIFFICULT', 'TRICKY'),
explanation: type.TEXT,
d_id: type.INTEGER,
sd_id: type.INTEGER,
topic_id: type.INTEGER,
subtopic_id: type.INTEGER,
ref_link: type.STRING,
certi_id: type.INTEGER,
cource_id: type.INTEGER,
youtube_link: type.STRING,
bookpage_no: type.STRING,
blog_url: type.STRING,
keyword: type.TEXT,
instance_id: type.INTEGER,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return PracticeAppque;
}