UNPKG

eyght-models

Version:

Models for eyght

15 lines (12 loc) 597 B
let mongoose = require('mongoose'); mongoose.Promise = global.Promise; let glNatAcctCatSchema = new mongoose.Schema({ glNatAcctCatCode: {type: 'String'}, glNatAcctCatSname: {type: 'String'}, glNatAcctCatFullName: {type: 'String'}, glFinRptTypeID: {type: mongoose.Schema.Types.ObjectId, ref: 'glFinRptType'}, active: {type: 'Boolean', required: true}, inactDt: {type: 'Date'}, //store all dates in utc inactRsnID: {type: mongoose.Schema.Types.ObjectId, ref: 'genInactRsn'} }, {timestamps: true}); module.exports = mongoose.model('glNatAcctCat', glNatAcctCatSchema, 'glNatAcctCat');