smc_cet_financials_backend/app/models/Fin_remarks.js
2021-09-03 15:50:16 +05:30

37 lines
1006 B
JavaScript

'use strict'
const { Model } = require('sequelize')
module.exports = (sequelize, DataTypes) => {
class Fin_remarks 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' })
//}
}
Fin_remarks.init(
{
entity_id: { type: DataTypes.INTEGER },
itemid: { type: DataTypes.INTEGER },
remarks: { type: DataTypes.STRING },
is_active:{ type: DataTypes.INTEGER} ,
createdby: { type: DataTypes.INTEGER },
updatedby: { type: DataTypes.INTEGER },
},
{
sequelize,
tableName: 'fin_remarks',
modelName: 'Fin_remarks',
createdAt: 'createdon',
updatedAt: 'updatedon',
}
)
return Fin_remarks
}