UNPKG

eyght-models

Version:

Models for eyght

18 lines (15 loc) 731 B
let mongoose = require('mongoose'); mongoose.Promise = global.Promise; let ssGWProcTxnMapSchema = new mongoose.Schema({ gwID: {type: mongoose.Schema.Types.ObjectId, ref: 'genAggr'}, procID: {type: mongoose.Schema.Types.ObjectId, ref: 'genAggr'}, origGwField: {type: 'String'}, origProcField: {type: 'String'}, mapNotes: {type: 'String'}, aggrTxnField: {type: 'String'}, //this is the normalized field stepOrder: {type: 'Number'}, 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('ssGwProcTxnMap', ssGWProcTxnMapSchema, 'ssGwProcTxnMap');