19 lines
421 B
JavaScript
19 lines
421 B
JavaScript
let mongoose = require('mongoose');
|
|
|
|
// Employee Schema
|
|
let holidaysSchema = mongoose.Schema({
|
|
// employeeId
|
|
//ganttData: {
|
|
id: String,
|
|
employee_id: mongoose.Schema.Types.ObjectId,
|
|
text: String,
|
|
start_date: String,
|
|
end_date: String,
|
|
parent: String,
|
|
duration: Number,
|
|
progress: Number,
|
|
render: String
|
|
//}
|
|
});
|
|
var Holidays = module.exports = mongoose.model('Holidays', holidaysSchema);
|