31 lines
907 B
JavaScript
31 lines
907 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const SelfPaced = sequelize.define('self_paced', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
certi_id: type.INTEGER,
|
|
class_name: type.TEXT,
|
|
description: type.TEXT,
|
|
features_visible: type.TEXT,
|
|
pt_id: type.INTEGER,
|
|
ka_id: type.INTEGER,
|
|
cohort_id: type.INTEGER,
|
|
live_events: {
|
|
type: type.STRING,
|
|
defaultValue: 0,
|
|
allowNull: false,
|
|
get: function () { return this.getDataValue('live_events').split(',') }
|
|
},
|
|
only_show_study: type.INTEGER,
|
|
publish_free_trial: type.INTEGER,
|
|
mentor_id: type.INTEGER,
|
|
time_zone: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return SelfPaced;
|
|
} |