UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

66 lines (65 loc) 2.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CFdskLeadConfigMaster = void 0; var mongoose_1 = require("mongoose"); /* SCHEMA START */ var fdsk_lead_config_master = new mongoose_1.Schema({ fdlcm_title: { type: String, required: true, minlength: 1, maxlength: 200, trim: true, comment: "this is to show the title on the form while lead capturing" }, fdlcm_description: { type: String, minlength: 0, maxlength: 500, trim: true, comment: "details explanation for what this is going to be captured, this is also visible on lead capturing form" }, fdlcm_lead_created_for_id_sygms: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "core_general_master", comment: "Admission, Staff recruitment Leads, Other..." }, fdlcm_defalut_priority_id_sygms: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "core_general_master", comment: "default priority set internally to the form, for specific leads we can set the priority internally" }, fdlcm_form_endpoint: { type: String, minlength: 0, maxlength: 500, trim: true, comment: "this is like https://cloudidesys.com/leads/admissions where admissions is the endpoint, user can define its own endpoint, on the basics of that we will identify which lead config was applicable to that. Stores the path after 'lead/' in the public URL (e.g., fdlcm_id=xxx&syen_id=yyy)" }, fdlcm_default_counselor_id_user: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "auth_user_mst", comment: "default counselor id whom we can assign all the leads, after that he can decide leads should transfer to whom, but note default counselor will have all the insights, like total leads how much of them to whom assigned and many things..." }, fdlcm_entity_id_syen: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "core_system_entity", comment: "Entity ID to which this lead configuration belongs" }, fdlcm_isactive: { type: Boolean, default: true, comment: "is this lead is we are accepting or not" }, fdlcm_start_date_time: { type: Date, default: Date.now, comment: "from date we will start accepting the leads till on form we will show time remaining countdown" }, fdlcm_end_date_time: { type: Date, comment: "to date till this time we will accepts the leads, after that we will stops the lead acceptance" } }, { collection: 'fdsk_lead_config_master' }); var CFdskLeadConfigMaster = mongoose_1.default.model("fdsk_lead_config_master", fdsk_lead_config_master); exports.CFdskLeadConfigMaster = CFdskLeadConfigMaster;