smc_cet_financials_backend/app/models/Sectionsmaster.js
2021-08-11 12:22:01 +05:30

33 lines
877 B
JavaScript

'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
}