module.exports = (sequelize, type) => { const References = sequelize.define('references', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, d_id: type.INTEGER, sd_id: type.INTEGER, topic_id: type.INTEGER, subtopic_id: type.INTEGER, web_link: type.TEXT, certi_id: type.INTEGER, cource_id: type.INTEGER, book_id: type.INTEGER, ref_type: type.TEXT, page_no: type.INTEGER, title: type.TEXT, content: type.TEXT, status: { type: type.INTEGER, defaultValue: 0 } }) return References; }