smc_cet_credit_policy_backend/app/models/AdjustableTang.js
2022-07-01 13:05:34 +05:30

44 lines
1.6 KiB
JavaScript

'use strict'
const { Model } = require('sequelize')
module.exports = (sequelize, DataTypes) => {
class AdjustableTang 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({ Financials }) {
// this.hasMany(Financials, { foreignKey: 'entity_id', as: 'financialsData' })
// }
}
AdjustableTang.init(
{
property_ownership_document_available : { type: DataTypes.STRING },
type_of_property : { type: DataTypes.STRING },
property_used_in_business : { type: DataTypes.STRING },
property_free_loan_taken : { type: DataTypes.STRING },
property_in_the_name_of_applicant : { type: DataTypes.STRING },
loan_obligated_in_cet : { type: DataTypes.STRING },
property_created_in_last_eight_yr : { type: DataTypes.STRING },
value_to_be_considered : { type: DataTypes.INTEGER },
mv_to_be_added_to_atnw : { type: DataTypes.INTEGER },
final_value_considered : { type: DataTypes.INTEGER },
is_active : { type: DataTypes.INTEGER },
createdby : { type: DataTypes.INTEGER },
updatedby : { type: DataTypes.INTEGER },
createdAt : { type: DataTypes.DATE },
updatedAt : { type: DataTypes.DATE },
},
{
sequelize,
tableName: 'adjustable_tangible_networth_property_valuation',
modelName: 'AdjustableTang',
}
)
return AdjustableTang
}