eyght-models
Version:
Models for eyght
16 lines (13 loc) • 784 B
JavaScript
let mongoose = require('mongoose');
mongoose.Promise = global.Promise;
let glClientTxnReconSchema = new mongoose.Schema({
clientID: {type: mongoose.Schema.Types.ObjectId, ref: 'eygClient'},
midID: {type: mongoose.Schema.Types.ObjectId, ref: 'eygClientMid'},
txnTypeID: {type: mongoose.Schema.Types.ObjectId, ref: 'ssTxnType'},
drGLCodeComboID: {type: mongoose.Schema.Types.ObjectId, ref: 'glCodeCombo'},
crGLCodeComboID: {type: mongoose.Schema.Types.ObjectId, ref: 'glCodeCombo'},
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('glClientTxnRecon', glClientTxnReconSchema, 'glClientTxnRecon');