codebase-models 2.1.21 → 2.1.22
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.
|
@@ -30,6 +30,7 @@ interface ICustomQuery extends Document {
|
|
|
30
30
|
module: string;
|
|
31
31
|
client: mongoose.Schema.Types.ObjectId;
|
|
32
32
|
query: string;
|
|
33
|
+
metadata: any;
|
|
33
34
|
createdBy?: mongoose.Schema.Types.ObjectId;
|
|
34
35
|
}
|
|
35
36
|
declare const CustomQuery: mongoose.Model<ICustomQuery, {}, {}, {}, mongoose.Document<unknown, {}, ICustomQuery> & ICustomQuery & {
|
|
@@ -43,7 +43,8 @@ const CustomQuerySchema = new mongoose_1.Schema({
|
|
|
43
43
|
title: { type: String, required: true },
|
|
44
44
|
module: { type: String, required: true },
|
|
45
45
|
client: { type: mongoose_1.default.Schema.Types.ObjectId, ref: 'client', required: true },
|
|
46
|
-
query: { type: String
|
|
46
|
+
query: { type: String },
|
|
47
|
+
metadata: { type: mongoose_1.default.Schema.Types.Mixed, default: null },
|
|
47
48
|
createdBy: { type: mongoose_1.default.Schema.Types.ObjectId, ref: 'user', default: null },
|
|
48
49
|
}, {
|
|
49
50
|
timestamps: true, // Automatically adds createdAt and updatedAt fields
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ interface ICustomQuery extends Document {
|
|
|
8
8
|
module: string;
|
|
9
9
|
client: mongoose.Schema.Types.ObjectId;
|
|
10
10
|
query: string;
|
|
11
|
+
metadata: any;
|
|
11
12
|
createdBy?: mongoose.Schema.Types.ObjectId;
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -21,7 +22,8 @@ const CustomQuerySchema = new Schema<ICustomQuery>(
|
|
|
21
22
|
title: { type: String, required: true },
|
|
22
23
|
module: { type: String, required: true },
|
|
23
24
|
client: { type: mongoose.Schema.Types.ObjectId, ref: 'client', required: true },
|
|
24
|
-
query: { type: String
|
|
25
|
+
query: { type: String },
|
|
26
|
+
metadata: { type: mongoose.Schema.Types.Mixed, default: null },
|
|
25
27
|
createdBy: { type: mongoose.Schema.Types.ObjectId, ref: 'user', default: null },
|
|
26
28
|
},
|
|
27
29
|
{
|