cloud-ide-model-schema
Version:
Pachage for schema management of Cloud IDEsys LMS
38 lines (37 loc) • 1.49 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CFdskLeadDetail = void 0;
var mongoose_1 = require("mongoose");
/* SCHEMA START */
var fdsk_lead_detail = new mongoose_1.Schema({
fdld_lead_id_fdlds: {
type: mongoose_1.default.Schema.Types.ObjectId,
ref: "fdsk_leads",
required: true,
comment: "lead table id"
},
fdld_status_sygms: {
type: mongoose_1.default.Schema.Types.ObjectId,
ref: "core_general_master",
comment: "lead status if current is completed, but this table holds the when what status done what is the remark that time"
},
fdld_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"
},
fdld_action_date_time: {
type: Date,
default: Date.now,
comment: "date time of this action performed"
},
fdld_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"
}
}, { collection: 'fdsk_lead_detail' });
var CFdskLeadDetail = mongoose_1.default.model("fdsk_lead_detail", fdsk_lead_detail);
exports.CFdskLeadDetail = CFdskLeadDetail;