29 lines
493 B
JavaScript
29 lines
493 B
JavaScript
const mongoose = require('mongoose');
|
|
|
|
const schema = new mongoose.Schema({
|
|
created: {
|
|
type: Date,
|
|
default: Date.now
|
|
},
|
|
title: {
|
|
type: String
|
|
},
|
|
description: {
|
|
type: String
|
|
},
|
|
cloudshare: {
|
|
type: Boolean
|
|
},
|
|
qcs: {
|
|
type: Boolean
|
|
},
|
|
needQcsAutomation: {
|
|
type: Boolean
|
|
},
|
|
needQcsApiKey: {
|
|
type: Boolean
|
|
}
|
|
});
|
|
|
|
|
|
module.exports = mongoose.model('TrainingTemplate', schema); |