tango-api-schema 2.3.10 → 2.3.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.
- package/index.js +2 -0
- package/package.json +1 -1
- package/schema/templateLog.model.js +18 -0
package/index.js
CHANGED
|
@@ -103,6 +103,7 @@ import revopDownloadModel from "./schema/revopDownload.model.js";
|
|
|
103
103
|
|
|
104
104
|
import runAIFeaturesModel from "./schema/runAIFeatures.js";
|
|
105
105
|
import runAIRequestModel from "./schema/runAIRequest.js";
|
|
106
|
+
import templateLogSchema from "./schema/templateLog.model.js";
|
|
106
107
|
|
|
107
108
|
|
|
108
109
|
export default {
|
|
@@ -209,4 +210,5 @@ export default {
|
|
|
209
210
|
revopDownloadModel,
|
|
210
211
|
runAIRequestModel,
|
|
211
212
|
runAIFeaturesModel,
|
|
213
|
+
templateLogSchema
|
|
212
214
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const templateLogSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
templateId:{
|
|
6
|
+
type:mongoose.Types.objectId,
|
|
7
|
+
required:true
|
|
8
|
+
},
|
|
9
|
+
data:{}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
strict: true,
|
|
13
|
+
versionKey: false,
|
|
14
|
+
timestamps: true,
|
|
15
|
+
},
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export default mongoose.model( 'templateLog', templateLogSchema );
|