UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

48 lines (47 loc) 1.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CFdskLeadScheduling = void 0; var mongoose_1 = require("mongoose"); /* SCHEMA START */ var fdsk_lead_scheduling = new mongoose_1.Schema({ fdlsc_lead_id_fdlds: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "fdsk_leads", required: true, comment: "lead table id" }, fdlsc_remark: { type: String, minlength: 0, maxlength: 500, trim: true, comment: "remark by counselor this is like commit message, whenever counselor wants to log the message" }, fdlsc_schedule_date_time: { type: Date, required: true, comment: "date time of this action performed" }, fdlsc_counselor_id_user: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "auth_user_mst", comment: "counselor id if, we change the counselor this time we will set the detail level counselor ids, this is done by the assigned user or the someone else, its very important" }, fdlsc_isactive: { type: Boolean, default: true, comment: "is schedule active" }, fdlsc_action_date_time: { type: Date, default: Date.now, comment: "store time when we create the schedule" }, fdlsc_status_id_sygms: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "core_general_master", comment: "schedule status scheduled, started, hold, completed, rescheduled, canceled" } }, { collection: 'fdsk_lead_scheduling' }); var CFdskLeadScheduling = mongoose_1.default.model("fdsk_lead_scheduling", fdsk_lead_scheduling); exports.CFdskLeadScheduling = CFdskLeadScheduling;