31 lines
984 B
JavaScript
31 lines
984 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const SelfPacedMaterial = sequelize.define('self_paced_materials', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
method_id: type.INTEGER,//subscription or onetime
|
|
method_type: type.TEXT,
|
|
material_id: type.INTEGER,
|
|
material_type: type.ENUM('KA', 'Mindmap', 'Test', 'Video', 'title'),
|
|
seq_number: type.INTEGER,
|
|
is_checked: type.INTEGER,
|
|
title_name: type.TEXT,
|
|
title_type: type.TEXT,
|
|
download_description: type.TEXT,
|
|
|
|
download_url: type.TEXT,
|
|
download_url_144p: type.TEXT,
|
|
download_url_240p: type.TEXT,
|
|
download_url_360p: type.TEXT,
|
|
download_url_480p: type.TEXT,
|
|
download_url_720p: type.TEXT,
|
|
duration: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return SelfPacedMaterial;
|
|
} |