module.exports = (sequelize, type) => { const AccessDuration = sequelize.define('access_durations', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, user_id: type.INTEGER, cohort_id: type.INTEGER, plan_id: type.INTEGER, plan_type: type.TEXT, access_duration: type.INTEGER, status: { type: type.INTEGER, defaultValue: 0 } }) return AccessDuration; }