module.exports = (sequelize, type) => { const Onbording = sequelize.define('onbordings', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, user_id: type.INTEGER, cohort_id: type.INTEGER, is_expire: { type: type.INTEGER, defaultValue: 0 }, link_expire_on: { type: type.DATE, options: { useUTC: false } }, completed_on: { type: type.DATE, options: { useUTC: false } }, welcome_flow: { type: type.INTEGER, defaultValue: 0 }, is_selfpaced: { type: type.INTEGER, defaultValue: 0 }, opt_in: type.INTEGER,//opt_in=1 then opt_in, opt_in=0 then opt_out for leaderboard is_main: type.INTEGER, status: { type: type.INTEGER, defaultValue: 0 } }) return Onbording; }