module.exports = (sequelize, type) => { const Domain = sequelize.define('domain', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, domin_name: { type: type.STRING, unique: { args: true, msg: 'Oops. Looks like domain already exist.' } }, domain_number: type.TEXT, certi_id: type.INTEGER, cource_id: type.INTEGER, status: { type: type.INTEGER, defaultValue: 0 } }) return Domain }