flykup_model_development 3.1.64 → 3.1.66

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.
@@ -333,7 +333,7 @@ showSchema.pre('validate', function(next) {
333
333
  next();
334
334
  });
335
335
 
336
- const Show = mongoose.model("shows", showSchema);
336
+ const Show = mongoose.models.Show || mongoose.model("Show", showSchema);
337
337
  export default Show;
338
338
 
339
339
 
@@ -44,6 +44,7 @@ const UserSchema = new mongoose.Schema(
44
44
  maxLength: 60,
45
45
  index: true,
46
46
  },
47
+ isMandate: { type: Boolean, default: false },
47
48
  password: {
48
49
  type: String,
49
50
  required: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.64",
3
+ "version": "3.1.66",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,
@@ -11,7 +11,7 @@
11
11
  "bcrypt": "^5.1.0",
12
12
  "crypto": "^1.0.1",
13
13
  "dotenv": "^16.4.5",
14
- "flykup_model_development": "^2.0.9",
14
+ "flykup_model_development": "3.1.64",
15
15
  "jsonwebtoken": "^9.0.0",
16
16
  "mongoose": "^8.0.0",
17
17
  "nanoid": "^5.1.5"