Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
24
models/client.js
Normal file
24
models/client.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
|
||||
var mongoose = require('mongoose');
|
||||
var Schema = mongoose.Schema;
|
||||
|
||||
var ClientSchema = new Schema({
|
||||
client_name: String,
|
||||
number: Number,
|
||||
street: String,
|
||||
street_2: String,
|
||||
city: String,
|
||||
province: String,
|
||||
postal_code: String,
|
||||
country: String,
|
||||
client_email: String,
|
||||
telephone: String,
|
||||
cellular: String,
|
||||
telephone_other: String,
|
||||
birthday: String,
|
||||
merchant_id: { type: Schema.Types.ObjectId, ref: 'Merchant' },
|
||||
branch_id: { type: Schema.Types.ObjectId, ref: 'Branch' }
|
||||
}, {timestamps: true});
|
||||
|
||||
module.exports = mongoose.model('Client', ClientSchema);
|
Loading…
Add table
Add a link
Reference in a new issue