module.exports = (sequelize, type) => { const KnowAssQues = sequelize.define('know_ass_ques', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, ass_id: { type: type.STRING, get: function () { return this.getDataValue('ass_id').split(',') } }, certi_id: type.INTEGER, question: type.TEXT, d_id: type.INTEGER, sd_id: type.INTEGER, topic_id: type.INTEGER, subtopic_id: type.INTEGER, description: type.TEXT, answer: type.STRING, ref_link: type.STRING, youtube_link: type.STRING, bookpage_no: type.STRING, blog_url: type.STRING, point: type.INTEGER, status: { type: type.INTEGER, defaultValue: 0 } }) return KnowAssQues; }