35 lines
1.1 KiB
JavaScript
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;
|
|
} |