28 lines
795 B
JavaScript
28 lines
795 B
JavaScript
module.exports = (sequelize, type) => {
|
|
//this table is for mini master class knowledge assessment result
|
|
const MiniMasterClassKaqa = sequelize.define('mini_master_class_kaq_ans', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
KAQ_id: type.INTEGER,
|
|
ans: type.STRING,
|
|
ass_id: type.INTEGER,
|
|
user_id: type.INTEGER,
|
|
correct: type.INTEGER,
|
|
d_id: type.INTEGER,
|
|
sd_id: type.INTEGER,
|
|
topic_id: type.INTEGER,
|
|
class_id: type.INTEGER,
|
|
active: {
|
|
type: type.INTEGER,
|
|
defaultValue: 1
|
|
},
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return MiniMasterClassKaqa;
|
|
} |