gift-card-server/models/branch.js

22 lines
489 B
JavaScript
Raw Normal View History

2019-06-19 10:46:14 -04:00
'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var BranchSchema = new Schema({
branch_name: String,
number: Number,
street: String,
street_2: String,
city: String,
province: String,
postal_code: String,
country: String,
telephone: String,
cellular: String,
telephone_other: String,
merchant_id: { type: Schema.Types.ObjectId, ref: 'Merchant' }
}, {timestamps: true});
module.exports = mongoose.model('Branch', BranchSchema);