UNPKG

eyght-models

Version:

Models for eyght

14 lines (11 loc) 522 B
let mongoose = require('mongoose'); mongoose.Promise = global.Promise; let ssCCBatchSchema = new mongoose.Schema({ date: {type: 'Date', required: true}, //store all dates in utc ssGwBatchNum: {type: 'String'}, ssProcBatchNum: {type: 'String'}, 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('ssCCBatch', ssCCBatchSchema, 'ssCCBatch');