UNPKG

eyght-models

Version:

Models for eyght

15 lines (12 loc) 711 B
let mongoose = require('mongoose'); mongoose.Promise = global.Promise; let ssProcChgbkMapSchema = new mongoose.Schema({ procChgbkRsnCode: {type: 'String', required: true}, procID: {type: mongoose.Schema.Types.ObjectId, ref: 'genAggr'}, ccBrandID: {type: mongoose.Schema.Types.ObjectId, ref: 'genCCBrand', required: true}, ccChgbkCodeID: {type: mongoose.Schema.Types.ObjectId, ref: 'genCCChgbkCode', required: true}, 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('ssProcChgbkMap', ssProcChgbkMapSchema, 'ssProcChgbkMap');