22 lines
570 B
JavaScript
22 lines
570 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const VideoSectionView = sequelize.define('video_section_views', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
type_id: type.INTEGER,
|
|
cohort_id: type.INTEGER,
|
|
user_id: type.INTEGER,
|
|
name: type.TEXT,
|
|
is_completed: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return VideoSectionView;
|
|
} |