eyght-models
Version:
Models for eyght
18 lines (15 loc) • 847 B
JavaScript
let mongoose = require('mongoose');
mongoose.Promise = global.Promise;
let glNatAcctParentCatSchema = new mongoose.Schema({
glNatAcctParentAcct: {type: 'String'},
glNatAcctCatID: {type: mongoose.Schema.Types.ObjectId, ref: 'glNatAcctCat'},
glNatAcctSubCatID: {type: mongoose.Schema.Types.ObjectId, ref: 'glNatAcctSubCat'},
postable: {type: 'Boolean'},
parentAcctName: {type: 'String'},
glFinRptTypeID: {type: mongoose.Schema.Types.ObjectId, ref: 'glFinRptType'},
glBalTypeID: {type: mongoose.Schema.Types.ObjectId, ref: 'glBalType'},
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('glNatAcctParentCat', glNatAcctParentCatSchema, 'glNatAcctParentCat');