cloud-ide-model-schema 1.1.107 → 1.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,13 +4,6 @@ exports.CNotificationLog = void 0;
|
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
5
|
/* SCHEMA START */
|
|
6
6
|
var notification_log = new mongoose_1.Schema({
|
|
7
|
-
nlog_notification_id: {
|
|
8
|
-
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
|
-
ref: "notification",
|
|
10
|
-
required: true,
|
|
11
|
-
index: true,
|
|
12
|
-
comment: "Reference to notification"
|
|
13
|
-
},
|
|
14
7
|
nlog_id_user: {
|
|
15
8
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
16
9
|
ref: "auth_user_mst",
|
|
@@ -84,7 +77,6 @@ var notification_log = new mongoose_1.Schema({
|
|
|
84
77
|
collection: 'notification_logs'
|
|
85
78
|
});
|
|
86
79
|
// Indexes
|
|
87
|
-
notification_log.index({ nlog_notification_id: 1, nlog_event_type: 1 });
|
|
88
80
|
notification_log.index({ nlog_id_user: 1, nlog_event_timestamp: -1 });
|
|
89
81
|
notification_log.index({ nlog_channel: 1, nlog_channel_status: 1 });
|
|
90
82
|
notification_log.index({ nlog_event_type: 1, nlog_event_timestamp: -1 });
|
|
@@ -4,7 +4,7 @@ exports.CNotificationPreference = void 0;
|
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
5
|
/* SCHEMA START */
|
|
6
6
|
var notification_preference = new mongoose_1.Schema({
|
|
7
|
-
|
|
7
|
+
npref_id_user: {
|
|
8
8
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
9
|
ref: "auth_user_mst",
|
|
10
10
|
required: true,
|
|
@@ -117,6 +117,6 @@ var notification_preference = new mongoose_1.Schema({
|
|
|
117
117
|
collection: 'notification_preferences'
|
|
118
118
|
});
|
|
119
119
|
// Unique index on user_id
|
|
120
|
-
notification_preference.index({
|
|
120
|
+
notification_preference.index({ npref_id_user: 1 }, { unique: true });
|
|
121
121
|
var CNotificationPreference = mongoose_1.default.model("notification_preference", notification_preference);
|
|
122
122
|
exports.CNotificationPreference = CNotificationPreference;
|
package/package.json
CHANGED