UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

43 lines (42 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CEmailList = exports.IEmailList = void 0; var mongoose_1 = require("mongoose"); /* INTERFASE START */ var IEmailList = /** @class */ (function () { function IEmailList() { } return IEmailList; }()); exports.IEmailList = IEmailList; /* INTERFACE END */ /* SCHEMA START */ var email_list = new mongoose_1.Schema({ elst_email: { type: String, required: true, comment: " maximum of 64 characters (octets) in the \"local part\" (before the \"@\") and a maximum of 255 characters (octets) in the domain part (after the \"@\") for a total length of 320 characters", maxlength: 320, minlength: 8, trim: true }, elst_id_evdr: { type: mongoose_1.default.Schema.Types.ObjectId, required: true, ref: "email_vendor" }, elst_sender_reciver_name: { type: String, minlength: 8, maxlength: 52, required: true, trim: true }, elst_isactive: { type: Boolean, required: true, default: true } }, { collection: 'email_list' }); var CEmailList = mongoose_1.default.model("email_list", email_list); exports.CEmailList = CEmailList;