biz-slide-core 1.2.71 → 1.2.72
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PPTEmailQueueModel = void 0;
|
4
|
+
var mongoose_1 = require("mongoose");
|
5
|
+
var PPTEmailQueueSchema = new mongoose_1.Schema({
|
6
|
+
pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt' },
|
7
|
+
emailType: { type: String, required: true },
|
8
|
+
sent: { type: Boolean, default: false }
|
9
|
+
}, {
|
10
|
+
timestamps: true,
|
11
|
+
});
|
12
|
+
PPTEmailQueueSchema.index({ sent: 1, createdAt: 1 });
|
13
|
+
exports.PPTEmailQueueModel = (0, mongoose_1.model)("ppt-email-queue", PPTEmailQueueSchema);
|