shuttlepro-shared 1.3.38 → 1.3.39

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.
@@ -0,0 +1,21 @@
1
+ const mongoose = require("mongoose");
2
+ const { Schema } = mongoose;
3
+ const UserGuideSchema = new Schema(
4
+ {
5
+ category: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ subcategory: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ pdfUrl: {
14
+ type: String,
15
+ required: true,
16
+ },
17
+ },
18
+ { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
19
+ );
20
+ const UserGuide = mongoose.model("UserGuide", UserGuideSchema);
21
+ module.exports = UserGuide;
package/models.js CHANGED
@@ -93,6 +93,7 @@ const TemplateFrame = require("./models/TemplateFrame");
93
93
  const TemplateTag = require("./models/TemplateTag");
94
94
  const Type = require("./models/Type");
95
95
  const User = require("./models/User");
96
+ const UserGuide = require("./models/UserGuide");
96
97
  const UserPermission = require("./models/UserPermission");
97
98
  const UserRole = require("./models/UserRole");
98
99
  const UserSession = require("./models/UserSession");
@@ -199,6 +200,7 @@ module.exports = {
199
200
  TemplateTag,
200
201
  Type,
201
202
  User,
203
+ UserGuide,
202
204
  UserPermission,
203
205
  UserRole,
204
206
  UserSession,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.38",
3
+ "version": "1.3.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {