'use strict' const { Model } = require('sequelize') module.exports = (sequelize, DataTypes) => { class Sectionsmaster extends Model { /** * Helper method for defining associations. * This method is not a part of Sequelize lifecycle. * The `models/index` file will call this method automatically. */ // define association here //static associate({ Model_name }) { //this.hasMany(Model_name, { foreignKey: 'child_table_prim_key', as: 'child_tbl_name' }) //} } Sectionsmaster.init( { statement: { type: DataTypes.INTEGER }, section: { type: DataTypes.STRING }, createdby: { type: DataTypes.INTEGER }, updatedby: { type: DataTypes.INTEGER }, }, { sequelize, tableName: 'sectionsmaster', modelName: 'Sectionsmaster', } ) return Sectionsmaster }