pristine-member-nest-api-database 1.0.51 → 1.0.53
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.
|
@@ -29,6 +29,13 @@ const fieldCategorySchema = new mongoose_1.Schema({
|
|
|
29
29
|
fieldUUId: { type: String },
|
|
30
30
|
fieldCategoryCode: { type: String },
|
|
31
31
|
fieldCategoryName: { type: String },
|
|
32
|
+
containerId: {
|
|
33
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
34
|
+
ref: "Editor.Container", // Reference to the 'Container' model
|
|
35
|
+
required: false,
|
|
36
|
+
default: null,
|
|
37
|
+
},
|
|
38
|
+
isSystemDefined: { type: Boolean, default: false },
|
|
32
39
|
isActive: { type: Boolean, default: true },
|
|
33
40
|
audit: [
|
|
34
41
|
{
|
|
@@ -5,6 +5,8 @@ interface FieldCategoryDocument extends Document {
|
|
|
5
5
|
fieldUUId: string;
|
|
6
6
|
fieldCategoryCode: string;
|
|
7
7
|
fieldCategoryName: string;
|
|
8
|
+
containerId: mongoose.Types.ObjectId;
|
|
9
|
+
isSystemDefined: boolean;
|
|
8
10
|
isActive: boolean;
|
|
9
11
|
audit: Audit[];
|
|
10
12
|
}
|
|
@@ -13,6 +15,13 @@ const fieldCategorySchema = new Schema<FieldCategoryDocument>({
|
|
|
13
15
|
fieldUUId: { type: String },
|
|
14
16
|
fieldCategoryCode: { type: String },
|
|
15
17
|
fieldCategoryName: { type: String },
|
|
18
|
+
containerId: {
|
|
19
|
+
type: Schema.Types.ObjectId,
|
|
20
|
+
ref: "Editor.Container", // Reference to the 'Container' model
|
|
21
|
+
required: false,
|
|
22
|
+
default: null,
|
|
23
|
+
},
|
|
24
|
+
isSystemDefined: { type: Boolean, default: false },
|
|
16
25
|
isActive: { type: Boolean, default: true },
|
|
17
26
|
audit: [
|
|
18
27
|
{
|
|
@@ -25,7 +34,7 @@ const fieldCategorySchema = new Schema<FieldCategoryDocument>({
|
|
|
25
34
|
|
|
26
35
|
const mongoFieldCategory = mongoose.model<FieldCategoryDocument>(
|
|
27
36
|
"Field.Categories",
|
|
28
|
-
fieldCategorySchema
|
|
37
|
+
fieldCategorySchema,
|
|
29
38
|
);
|
|
30
39
|
|
|
31
40
|
export { FieldCategoryDocument, mongoFieldCategory };
|