Commit project

This commit is contained in:
Rodrigo Pedroso 2019-06-19 10:46:14 -04:00
commit 3ac017a5ad
1030 changed files with 94062 additions and 0 deletions

14
models/workstation.js Normal file
View file

@ -0,0 +1,14 @@
'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var WorkstationSchema = new Schema({
serial_number: String,
number: Number,
merchant_id: { type: Schema.Types.ObjectId, ref: 'Merchant' },
branch_id: { type: Schema.Types.ObjectId, ref: 'Branch' },
workstation_name: String
}, {timestamps: true});
module.exports = mongoose.model('Workstation', WorkstationSchema);