This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
qmi-cloud/qmi-cloud-common/models/Schedule.js
2023-05-09 16:23:45 +02:00

39 lines
675 B
JavaScript

const mongoose = require('mongoose');
const sc = new mongoose.Schema({
is24x7: {
type: Boolean,
required: true,
default: true
},
isStartupTimeEnable: {
type: Boolean,
default: true
},
localeShutdownTime: {
type: String
},
localeStartupTime: {
type: String
},
localTimezone: {
type: String
},
utcTagShutdownTime: {
type: String
},
utcTagStartupTime: {
type: String
},
timezoneOffset: {
type: Number
},
weekStartDay: {
type: Number,
default: 1
}
});
module.exports = mongoose.model('Schedule', sc)