jp-shared 1.1.8 → 1.1.10

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.
@@ -31,21 +31,10 @@ const schema = new mongoose.Schema(
31
31
  message: "Invalid Recruiter ID format",
32
32
  },
33
33
  },
34
- // planId: {
35
- // type: ObjectId,
36
- // required: [true, "Plan ID is required"],
37
- // ref: "plan",
38
- // validate: {
39
- // validator: function (v) {
40
- // return mongoose.Types.ObjectId.isValid(v);
41
- // },
42
- // message: "Invalid Plan ID format",
43
- // },
44
- // },
45
- // jobId: {
46
- // type: String,
47
- // required: [true, "Job ID is required"],
48
- // },
34
+ isFroozen: {
35
+ type: Boolean,
36
+ default: false
37
+ },
49
38
  paymentHistoryId: {
50
39
  type: ObjectId,
51
40
  required: [true, "Payment History ID is required"],
@@ -30,6 +30,10 @@ const schema = new mongoose.Schema(
30
30
  type: ObjectId,
31
31
  required: true,
32
32
  },
33
+ isFroozen: {
34
+ type: Boolean,
35
+ default: false
36
+ },
33
37
  },
34
38
  { timestamps: { createdAt: true, updatedAt: true } }
35
39
  );
@@ -51,6 +51,10 @@ const schema = new Schema(
51
51
  minlength: [2, "Designation must be at least 2 characters long"],
52
52
  maxlength: [50, "Designation cannot exceed 50 characters"],
53
53
  },
54
+ isFroozen: {
55
+ type: Boolean,
56
+ default: false
57
+ },
54
58
  },
55
59
  { timestamps: { createdAt: true, updatedAt: true } }
56
60
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp-shared",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"