module.exports = (sequelize, type) => { const FlashCardOffline = sequelize.define('flashcard_offline', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, UserId: type.INTEGER, cid: type.INTEGER, domain: type.INTEGER, Subdomain: type.INTEGER, term: type.TEXT, definition: type.TEXT, correct: { type: type.INTEGER, defaultValue: 0 }, total_review: { type: type.INTEGER, defaultValue: 0 }, total_mark: { type: type.INTEGER, defaultValue: 0 }, answer: type.INTEGER, notes: type.INTEGER, cohort_id: { type: type.INTEGER, defaultValue: 0 } }) return FlashCardOffline; }