16 lines
437 B
JavaScript
16 lines
437 B
JavaScript
let mongoose = require('mongoose');
|
|
|
|
let workReportSchema = mongoose.Schema({
|
|
// Napi jelentés
|
|
workId:{type: mongoose.Schema.Types.ObjectId},
|
|
date: {type: Date},
|
|
foremanId: {type: String},
|
|
workTitle: {type: String},
|
|
employeeList:[{
|
|
employeeId:{type: mongoose.Schema.Types.ObjectId},
|
|
workFlow: {type: String},
|
|
}]
|
|
|
|
})
|
|
|
|
let WorkReport = module.exports = mongoose.model('WorkReport', workReportSchema); |