118 lines
3.3 KiB
JavaScript
118 lines
3.3 KiB
JavaScript
module.exports = (sequelize, type) => {
|
|
const HybridTemplates = sequelize.define('hybrid_templates', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
name: type.TEXT,
|
|
certi_id: type.INTEGER,
|
|
cource_id: type.INTEGER,
|
|
cohortIds: {
|
|
type: type.TEXT,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('cohortIds').split(',') }
|
|
},
|
|
knowassessments: {
|
|
type: type.STRING,
|
|
defaultValue: 0,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('knowassessments').split(',') }
|
|
},
|
|
practicetests: {
|
|
type: type.STRING,
|
|
defaultValue: 0,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('practicetests').split(',') }
|
|
},
|
|
ketexamtests: {
|
|
type: type.STRING,
|
|
defaultValue: 0,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('ketexamtests').split(',') }
|
|
},
|
|
email_templates: {
|
|
type: type.STRING,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('email_templates').split(',') }
|
|
},
|
|
videos: {
|
|
type: type.STRING,
|
|
defaultValue: 0,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('videos').split(',') }
|
|
},
|
|
mindmaps: {
|
|
type: type.STRING,
|
|
defaultValue: 0,
|
|
allowNull: true,
|
|
get: function () { return this.getDataValue('mindmaps').split(',') }
|
|
},
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
flashcard_app: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
practice_que_app: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
events: type.TEXT,
|
|
live_events: type.TEXT,
|
|
video_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
mindmap_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
summary_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
reference_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
KA_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
PT_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
CAT_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
livechat_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
liveq_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
liveevent_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
question_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
flashcard_access: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
start_date: type.TEXT,
|
|
baseline_ka: type.TEXT,
|
|
baseline_ka_schedule: type.TEXT
|
|
})
|
|
return HybridTemplates;
|
|
} |