cloud-ide-model-schema
Version:
Pachage for schema management of Cloud IDEsys LMS
58 lines (57 loc) • 1.53 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CAcaPrgTrmSection = void 0;
var mongoose_1 = require("mongoose");
/* SCHEMA START */
var aca_prg_trm_section = new mongoose_1.Schema({
acapts_name: {
type: String,
required: true,
minlength: 1,
maxlength: 100,
trim: true
},
acapts_code: {
type: String,
minlength: 0,
maxlength: 50,
required: true,
trim: true
},
acapts_sequence: {
type: Number,
default: 0
},
acapts_description: {
type: String,
trim: true
},
acapts_class_program_id_acacpm: {
type: mongoose_1.default.Schema.Types.ObjectId,
ref: "aca_class_program_master",
required: true
},
acapts_class_program_branch_id_acabrn: {
type: mongoose_1.default.Schema.Types.ObjectId,
ref: "aca_class_prg_branch"
},
acapts_parent_class_prog_term_acapt: {
type: mongoose_1.default.Schema.Types.ObjectId,
ref: "aca_class_program_term",
required: true
},
acapts_isactive: {
type: Boolean,
default: true
},
acapts_islocked: {
type: Boolean,
default: false
},
acapts_iscurrent: {
type: Boolean,
default: false
}
}, { collection: 'aca_prg_trm_section' });
var CAcaPrgTrmSection = mongoose_1.default.model("aca_prg_trm_section", aca_prg_trm_section);
exports.CAcaPrgTrmSection = CAcaPrgTrmSection;