Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
16
models/gift-card.js
Normal file
16
models/gift-card.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
var mongoose = require('mongoose');
|
||||
var Schema = mongoose.Schema;
|
||||
|
||||
var GiftCardSchema = new Schema({
|
||||
gift_card_number: String,
|
||||
merchant_id: { type: Schema.Types.ObjectId, ref: 'Merchant' },
|
||||
client_id: { type: Schema.Types.ObjectId, ref: 'Client' },
|
||||
branch_id: { type: Schema.Types.ObjectId, ref: 'Branch' },
|
||||
number: Number,
|
||||
balance: Number,
|
||||
points: Number
|
||||
}, {timestamps: true});
|
||||
|
||||
module.exports = mongoose.model('GiftCard', GiftCardSchema);
|
Loading…
Add table
Add a link
Reference in a new issue