joye-backend-utility 8.2.9 → 8.2.11
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.
|
@@ -27,8 +27,24 @@ const AIPrompts = new mongoose_1.Schema({
|
|
|
27
27
|
type: String,
|
|
28
28
|
required: false,
|
|
29
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* Absent or null on both fields = global default (existing rows).
|
|
32
|
+
* `platformKey` set and `tId` null = platform prompt.
|
|
33
|
+
* Both set = tenant prompt.
|
|
34
|
+
*/
|
|
35
|
+
platformKey: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: false,
|
|
38
|
+
},
|
|
39
|
+
tId: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false,
|
|
42
|
+
},
|
|
30
43
|
});
|
|
31
44
|
AIPrompts.index({ type: 1, model: -1 }, {
|
|
32
45
|
unique: false,
|
|
33
46
|
});
|
|
47
|
+
AIPrompts.index({ type: 1, model: 1, platformKey: 1, tId: 1 }, {
|
|
48
|
+
unique: false,
|
|
49
|
+
});
|
|
34
50
|
exports.AIPromptsSchema = AIPrompts;
|
|
@@ -19,6 +19,14 @@ const OrganizationUserAttrPermission = new mongoose_1.Schema({
|
|
|
19
19
|
type: String,
|
|
20
20
|
required: false,
|
|
21
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* Days after User.consentTime when a custom-consent tenant must renew.
|
|
24
|
+
* Unset or 0 means consent does not expire.
|
|
25
|
+
*/
|
|
26
|
+
consentRenewDays: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
22
30
|
privacyBlockImage: {
|
|
23
31
|
type: String,
|
|
24
32
|
required: false,
|