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