module.exports = (sequelize, type) => { const CardView = sequelize.define('card_views', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, card_id: type.INTEGER, card_type: type.TEXT,//Summary,References topic_id: type.INTEGER, cohort_id: type.INTEGER, user_id: type.INTEGER, status: { type: type.INTEGER, defaultValue: 0 } }) return CardView; }