cloud-ide-model-schema 1.1.181 → 1.1.184

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.
@@ -47,16 +47,15 @@ var auth_user_mst = new mongoose_1.Schema({
47
47
  minlength: 8,
48
48
  maxlength: 50,
49
49
  trim: true,
50
- unique: true,
51
- comment: "Unique Email ID",
52
- message: "Unique Email ID"
50
+ sparse: true, // Allows duplicate null/undefined values
51
+ comment: "Unique Email ID (when provided)",
52
+ message: "Unique Email ID (when provided)"
53
53
  },
54
54
  user_mobileno: {
55
- type: Number,
55
+ type: String,
56
56
  minlength: 10,
57
57
  maxlength: 15,
58
58
  trim: true,
59
- unique: true,
60
59
  comment: "Unique Mobile no",
61
60
  message: "Unique Mobile no"
62
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "cloud-ide-lms-model": "^1.1.35",
3
+ "cloud-ide-lms-model": "^1.1.63",
4
4
  "dotenv": "^16.5.0",
5
5
  "mongoose": "^8.15.0"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "name": "cloud-ide-model-schema",
12
- "version": "1.1.181",
12
+ "version": "1.1.184",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",