tango-api-schema 2.1.33 → 2.1.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.33",
3
+ "version": "2.1.35",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6,6 +6,12 @@ let clusterSchema = new mongoose.Schema(
6
6
  clientId: {
7
7
  type: String
8
8
  },
9
+ clusterName: {
10
+ type: String
11
+ },
12
+ description: {
13
+ type: String
14
+ },
9
15
  stores: [
10
16
  {
11
17
  storeId: {
@@ -13,40 +19,32 @@ let clusterSchema = new mongoose.Schema(
13
19
  },
14
20
  store: {
15
21
  type: mongoose.Types.ObjectId
16
- },
17
- storeName: {
18
- type: String
19
22
  }
20
23
  }
21
24
  ],
22
25
  Teamlead: [
23
- {
24
- userName: {
25
- type: String,
26
- },
26
+ {
27
27
  email: {
28
28
  type: String,
29
29
  },
30
30
  userId: {
31
- type: String
31
+ type: mongoose.Types.ObjectId
32
32
  }
33
33
  }
34
34
  ],
35
35
  users: [
36
36
  {
37
- userName: {
38
- type: String,
39
- },
40
37
  email: {
41
38
  type: String,
42
39
  },
43
40
  userId: {
44
- type: String
41
+ type: mongoose.Types.ObjectId
45
42
  }
46
43
  }
47
44
  ],
48
45
  status: {
49
- type: String
46
+ type: String,
47
+ default:"active"
50
48
  },
51
49
 
52
50
  },
@@ -14,32 +14,27 @@ let teamsSchema = new mongoose.Schema(
14
14
  },
15
15
  Teamlead: [
16
16
  {
17
- userName: {
18
- type: String,
19
- },
20
17
  email: {
21
18
  type: String,
22
19
  },
23
20
  userId: {
24
- type: String
21
+ type: mongoose.Types.ObjectId
25
22
  }
26
23
  }
27
24
  ],
28
25
  users: [
29
26
  {
30
- userName: {
31
- type: String,
32
- },
33
27
  email: {
34
28
  type: String,
35
29
  },
36
30
  userId: {
37
- type: String
31
+ type: mongoose.Types.ObjectId
38
32
  }
39
33
  }
40
34
  ],
41
35
  status: {
42
- type: String
36
+ type: String,
37
+ default:"active"
43
38
  },
44
39
 
45
40
  },