module.exports = (sequelize, type) => { const VideoMindView = sequelize.define('video_mind_views', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, type_id: type.INTEGER, cohort_id: type.INTEGER, user_id: type.INTEGER, type: type.ENUM('MIND', 'VIDEO'), view_percent: { type: type.INTEGER, defaultValue: 0 }, is_completed: { type: type.INTEGER, defaultValue: 0 }, status: { type: type.INTEGER, defaultValue: 0 } }) return VideoMindView; }