UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

51 lines (50 loc) 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CEmailLog = void 0; var mongoose_1 = require("mongoose"); /* SCHEMA START */ var email_log = new mongoose_1.Schema({ elog_from_email: { type: String, 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", trim: true }, elog_to_email: { type: String, 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", trim: true }, elog_id_eref: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "email_reference" }, elog_subject: { type: String, required: false, trim: true }, elog_body: { type: String, required: false }, elog_id_etmp: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "email_templete" }, elog_mail_status: { type: String, trim: true, default: 'created', enum: ['created', 'sent', 'not_sent'] }, elog_timestamp: { type: Date, default: new Date() }, elog_isactive: { type: Boolean, default: true } }, { collection: 'email_log' }); var CEmailLog = mongoose_1.default.model("email_log", email_log); exports.CEmailLog = CEmailLog;