eyght-models
Version:
Models for eyght
17 lines (14 loc) • 770 B
JavaScript
let mongoose = require('mongoose');
mongoose.Promise = global.Promise;
let glNatAcctSubCatSchema = new mongoose.Schema({
glNatAcctCatID: {type: mongoose.Schema.Types.ObjectId, ref: 'glNatAcctCat'},
glNatAcctSubCatCode: {type: 'String'},
glNatAcctSubCatSname: {type: 'String'},
glNatAcctSubCatFullName: {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('glNatAcctSubCat', glNatAcctSubCatSchema, 'glNatAcctSubCat');