very-express 0.6.5-alpha → 0.6.7-alpha

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.
@@ -2,13 +2,18 @@
2
2
  "type": "object",
3
3
  "x-documentConfig": {
4
4
  "documentName": "Session",
5
- "methods": []
5
+ "methods": [],
6
+ "uniqueIndex": [
7
+ [
8
+ "sessionCode"
9
+ ]
10
+ ]
6
11
  },
7
12
  "required": ["provider", "userId", "expired"],
8
13
  "properties": {
9
14
  "_id": {
10
15
  "type": "string",
11
- "x-format": "ObjectId",
16
+ "x-format": "Primary",
12
17
  "index": true
13
18
  },
14
19
  "sessionCode": {
@@ -20,7 +25,7 @@
20
25
  },
21
26
  "userId":{
22
27
  "type": "string",
23
- "x-format": "ObjectId",
28
+ "x-format": "UUID",
24
29
  "x-foreignKey": {
25
30
  "schemaName": "User",
26
31
  "fieldName": "_id",
@@ -7,12 +7,17 @@
7
7
  "post",
8
8
  "patch"
9
9
  ],
10
- "documentName": "User"
10
+ "documentName": "User",
11
+ "uniqueIndex": [
12
+ [
13
+ "email"
14
+ ]
15
+ ]
11
16
  },
12
17
  "properties": {
13
18
  "_id": {
14
19
  "type": "string",
15
- "x-format": "PrimaryUUID",
20
+ "x-format": "Primary",
16
21
  "index": true
17
22
  },
18
23
  "email": {
@@ -13,7 +13,7 @@
13
13
  "properties": {
14
14
  "_id": {
15
15
  "type": "string",
16
- "x-format": "PrimaryUUID",
16
+ "x-format": "Primary",
17
17
  "index": true
18
18
  },
19
19
  "userId": {
@@ -23,7 +23,7 @@
23
23
  "x-foreignKey": {
24
24
  "schemaName": "User",
25
25
  "fieldName": "_id",
26
- "relationType": "one-to-many"
26
+ "relationType": "many-to-one"
27
27
  }
28
28
  },
29
29
  "provider": {
@@ -12,7 +12,7 @@
12
12
  "properties": {
13
13
  "_id": {
14
14
  "type": "string",
15
- "x-format": "PrimaryUUID"
15
+ "x-format": "Primary"
16
16
  },
17
17
  "userId": {
18
18
  "type": "string",
@@ -20,7 +20,7 @@
20
20
  "x-foreignKey": {
21
21
  "schemaName": "User",
22
22
  "fieldName": "_id",
23
- "relationType": "one-to-many"
23
+ "relationType": "many-to-one"
24
24
  }
25
25
  },
26
26
  "role": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "very-express",
3
- "version": "0.6.5-alpha",
3
+ "version": "0.6.7-alpha",
4
4
  "description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
5
5
  "author": "Justin26l",
6
6
  "license": "MIT",