UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

41 lines (40 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CCoreSyco = void 0; var mongoose_1 = require("mongoose"); /* SCHEMA START */ var core_system_config = new mongoose_1.Schema({ syco_for: { type: String, required: true, minlength: 8, maxlength: 25, unique: true, trim: true, enum: ['email_service', 'reset_password_link', 'route_trace_loggs', 'security_loggs'] }, syco_title: { type: String, required: true, minlength: 8, maxlength: 50, trim: true }, syco_desc: { type: String, minlength: 8, maxlength: 52, required: true, trim: true }, syco_configuration: { type: Object }, syco_isactive: { type: Boolean, required: true, default: true } }, { collection: 'core_system_config' }); var CCoreSyco = mongoose_1.default.model("core_system_config", core_system_config); exports.CCoreSyco = CCoreSyco;