UNPKG

synt_backend

Version:

Synt light-weight node backend service

25 lines 634 B
'use strict'; const { Model } = require('sequelize'); module.exports = (sequelize, DataTypes) => { class PaymentCondition 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. */ static associate(models) { // define association here } }; PaymentCondition.init({ name: DataTypes.STRING, payment_days: DataTypes.INTEGER, payment_end_of_months: DataTypes.INTEGER }, { sequelize, modelName: 'PaymentCondition', }); return PaymentCondition; };