UNPKG

eyght-models

Version:

Models for eyght

21 lines (18 loc) 758 B
let mongoose = require('mongoose'); mongoose.Promise = global.Promise; let genBankABASchema = new mongoose.Schema({ abaNum: {type: 'String', required: true}, newAbaNum: {type: 'String'}, bankName: {type: 'String'}, addr: {type: 'String'}, city: {type: 'String'}, stProv: {type: 'String'}, zip: {type: 'String'}, ctryID: {type: mongoose.Schema.Types.ObjectId, ref: 'genCtry'}, phAchSvcs: {type: 'String'}, fedResLastRevDt: {type: 'Date'}, //store all dates in utc 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('genBankAba', genBankABASchema, 'genBankAba');