module.exports = (sequelize, type) => { const SubTopic = sequelize.define('subtopic', { id: { type: type.INTEGER, primaryKey: true, autoIncrement: true }, topic_id: type.INTEGER, subtopic_name: { type: type.STRING }, d_id: type.INTEGER, sd_id: type.INTEGER, cource_id: type.INTEGER, description: type.TEXT, video_url: type.TEXT, status: { type: type.INTEGER, defaultValue: 0 } }) return SubTopic; }