meadow-endpoints 3.0.7 → 4.0.2

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.
Files changed (127) hide show
  1. package/Dockerfile_LUXURYCode +1 -1
  2. package/README.md +48 -14
  3. package/debug/Animal.json +62 -0
  4. package/debug/Harness-Configuration.json +31 -0
  5. package/debug/Harness.js +7 -108
  6. package/debug/KillHarness.sh +10 -0
  7. package/dist/meadowendpoints.js +4402 -0
  8. package/dist/meadowendpoints.min.js +92 -0
  9. package/dist/meadowendpoints.min.js.map +1 -0
  10. package/gulpfile.js +83 -0
  11. package/package.json +27 -15
  12. package/source/Meadow-Endpoints-Browser-Shim.js +14 -0
  13. package/source/Meadow-Endpoints.js +176 -565
  14. package/source/controller/Meadow-Endpoints-Controller-Base.js +161 -0
  15. package/source/controller/components/Meadow-Endpoints-Controller-BehaviorInjection.js +125 -0
  16. package/source/controller/components/Meadow-Endpoints-Controller-Error-StatusCodes.txt +189 -0
  17. package/source/controller/components/Meadow-Endpoints-Controller-Error.js +118 -0
  18. package/source/controller/components/Meadow-Endpoints-Controller-Log.js +103 -0
  19. package/source/controller/utility/Meadow-Endpoints-Filter-Parser.js +225 -0
  20. package/source/controller/utility/Meadow-Endpoints-Session-Marshaler.js +48 -0
  21. package/source/controller/utility/Meadow-Endpoints-Stream-RecordArray.js +66 -0
  22. package/source/endpoints/count/Meadow-Endpoint-Count.js +49 -0
  23. package/source/endpoints/count/Meadow-Endpoint-CountBy.js +40 -0
  24. package/source/endpoints/create/Meadow-Endpoint-BulkCreate.js +53 -0
  25. package/source/endpoints/create/Meadow-Endpoint-Create.js +58 -0
  26. package/source/endpoints/create/Meadow-Operation-Create.js +83 -0
  27. package/source/endpoints/delete/Meadow-Endpoint-Delete.js +93 -0
  28. package/source/endpoints/delete/Meadow-Endpoint-Undelete.js +108 -0
  29. package/source/endpoints/read/Meadow-Endpoint-Read.js +72 -0
  30. package/source/endpoints/read/Meadow-Endpoint-ReadDistinctList.js +92 -0
  31. package/source/endpoints/read/Meadow-Endpoint-ReadLiteList.js +85 -0
  32. package/source/endpoints/read/Meadow-Endpoint-ReadMax.js +55 -0
  33. package/source/endpoints/read/Meadow-Endpoint-ReadSelectList.js +89 -0
  34. package/source/endpoints/read/Meadow-Endpoint-Reads.js +75 -0
  35. package/source/endpoints/read/Meadow-Endpoint-ReadsBy.js +100 -0
  36. package/source/{crud → endpoints/read}/Meadow-Marshal-DistinctList.js +4 -13
  37. package/source/{crud → endpoints/read}/Meadow-Marshal-LiteList.js +5 -14
  38. package/source/endpoints/schema/Meadow-Endpoint-New.js +36 -0
  39. package/source/endpoints/schema/Meadow-Endpoint-Schema.js +36 -0
  40. package/source/endpoints/schema/Meadow-Endpoint-Validate.js +41 -0
  41. package/source/endpoints/update/Meadow-Endpoint-BulkUpdate.js +50 -0
  42. package/source/endpoints/update/Meadow-Endpoint-Update.js +58 -0
  43. package/source/endpoints/update/Meadow-Operation-Update.js +115 -0
  44. package/source/endpoints/upsert/Meadow-Endpoint-BulkUpsert.js +52 -0
  45. package/source/endpoints/upsert/Meadow-Endpoint-Upsert.js +57 -0
  46. package/source/endpoints/upsert/Meadow-Operation-Upsert.js +137 -0
  47. package/test/MeadowEndpoints_basic_tests.js +50 -2408
  48. package/test_support/bookstore-api-endpoint-exercises.paw +0 -0
  49. package/test_support/bookstore-configuration.json +28 -0
  50. package/test_support/bookstore-import-books-run.js +1 -0
  51. package/test_support/bookstore-import-books.js +215 -0
  52. package/test_support/bookstore-serve-meadow-endpoint-apis-IPC.js +138 -0
  53. package/test_support/bookstore-serve-meadow-endpoint-apis-run.js +6 -0
  54. package/test_support/bookstore-serve-meadow-endpoint-apis.js +129 -0
  55. package/test_support/data/books.csv +10001 -0
  56. package/test_support/model/ddl/BookStore.ddl +66 -0
  57. package/test_support/model/generated_diagram/README.md +1 -0
  58. package/test_support/model/generated_diagram/Stricture_Output.dot +13 -0
  59. package/test_support/model/generated_diagram/Stricture_Output.png +0 -0
  60. package/test_support/model/generated_documentation/Dictionary.md +18 -0
  61. package/test_support/model/generated_documentation/Model-Author.md +20 -0
  62. package/test_support/model/generated_documentation/Model-Book.md +26 -0
  63. package/test_support/model/generated_documentation/Model-BookAuthorJoin.md +14 -0
  64. package/test_support/model/generated_documentation/Model-BookPrice.md +25 -0
  65. package/test_support/model/generated_documentation/Model-Review.md +22 -0
  66. package/test_support/model/generated_documentation/ModelChangeTracking.md +17 -0
  67. package/test_support/model/generated_documentation/README.md +1 -0
  68. package/test_support/model/manual_scripts/DropTables.sql +5 -0
  69. package/test_support/model/manual_scripts/README.md +2 -0
  70. package/test_support/model/sql_create/BookStore-CreateDatabase.mysql.sql +116 -0
  71. package/test_support/model/sql_create/README.md +1 -0
  72. package/test_support/test_old/Tests.js +3243 -0
  73. package/test_support/test_old/untitled.js +88 -0
  74. package/source/Meadow-Authenticator.js +0 -31
  75. package/source/Meadow-Authorizers.js +0 -214
  76. package/source/Meadow-BehaviorModifications.js +0 -170
  77. package/source/Meadow-CommonServices.js +0 -206
  78. package/source/Meadow-MarshallSessionData.js +0 -64
  79. package/source/Restify-RouteParser.js +0 -114
  80. package/source/authorizers/Meadow-Authorizer-Allow.js +0 -17
  81. package/source/authorizers/Meadow-Authorizer-Deny.js +0 -17
  82. package/source/authorizers/Meadow-Authorizer-Mine.js +0 -47
  83. package/source/authorizers/Meadow-Authorizer-MyCustomer.js +0 -48
  84. package/source/crud/Meadow-Endpoint-BulkCreate.js +0 -67
  85. package/source/crud/Meadow-Endpoint-BulkUpdate.js +0 -74
  86. package/source/crud/Meadow-Endpoint-BulkUpsert.js +0 -76
  87. package/source/crud/Meadow-Endpoint-Count.js +0 -93
  88. package/source/crud/Meadow-Endpoint-CountBy.js +0 -101
  89. package/source/crud/Meadow-Endpoint-Create.js +0 -77
  90. package/source/crud/Meadow-Endpoint-Delete.js +0 -139
  91. package/source/crud/Meadow-Endpoint-Read.js +0 -109
  92. package/source/crud/Meadow-Endpoint-ReadDistinctList.js +0 -146
  93. package/source/crud/Meadow-Endpoint-ReadLiteList.js +0 -139
  94. package/source/crud/Meadow-Endpoint-ReadMax.js +0 -86
  95. package/source/crud/Meadow-Endpoint-ReadSelectList.js +0 -145
  96. package/source/crud/Meadow-Endpoint-Reads.js +0 -129
  97. package/source/crud/Meadow-Endpoint-ReadsBy.js +0 -155
  98. package/source/crud/Meadow-Endpoint-Undelete.js +0 -161
  99. package/source/crud/Meadow-Endpoint-Update.js +0 -80
  100. package/source/crud/Meadow-Endpoint-Upsert.js +0 -78
  101. package/source/crud/Meadow-Operation-Create.js +0 -105
  102. package/source/crud/Meadow-Operation-Update.js +0 -145
  103. package/source/crud/Meadow-Operation-Upsert.js +0 -106
  104. package/source/crud/Meadow-StreamRecordArray.js +0 -45
  105. package/source/schema/Meadow-Endpoint-New.js +0 -37
  106. package/source/schema/Meadow-Endpoint-Schema.js +0 -37
  107. package/source/schema/Meadow-Endpoint-Validate.js +0 -43
  108. package/test/Animal.json +0 -140
  109. package/test/MeadowEndpoints_disabledAuth_tests.js +0 -1325
  110. package/test/MeadowEndpoints_trustedSession_tests.js +0 -1731
  111. package/test/load/artillery-low.yml +0 -10
  112. package/test/load/cloud9setup.sh +0 -25
  113. package/test/load/package.json +0 -19
  114. package/test/load/test-schema-initializedatabase.sql +0 -29
  115. package/test/load/test-schema.json +0 -119
  116. package/test/load/test-server.js +0 -157
  117. package/test/scripts/InitializeDatabase-C9.sql +0 -7
  118. /package/{test/schemas → test_support/model}/json_schema/BookStore-Extended.json +0 -0
  119. /package/{test/schemas → test_support/model}/json_schema/BookStore-PICT.json +0 -0
  120. /package/{test/schemas → test_support/model}/json_schema/BookStore.json +0 -0
  121. /package/{test/schemas → test_support/model}/json_schema/README.md +0 -0
  122. /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-Author.json +0 -0
  123. /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-Book.json +0 -0
  124. /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-BookAuthorJoin.json +0 -0
  125. /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-BookPrice.json +0 -0
  126. /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-Review.json +0 -0
  127. /package/{test/schemas → test_support/model}/meadow_schema/README.md +0 -0
@@ -0,0 +1,66 @@
1
+ !Book
2
+ @IDBook
3
+ %GUIDBook
4
+ &CreateDate
5
+ #CreatingIDUser
6
+ &UpdateDate
7
+ #UpdatingIDUser
8
+ ^Deleted
9
+ &DeleteDate
10
+ #DeletingIDUser
11
+ $Title 200
12
+ $Type 32
13
+ $Genre 128
14
+ $ISBN 64
15
+ $Language 12
16
+ $ImageURL 254
17
+ #PublicationYear
18
+
19
+ !BookAuthorJoin
20
+ @IDBookAuthorJoin
21
+ %GUIDBookAuthorJoin
22
+ #IDBook -> IDBook
23
+ #IDAuthor -> IDAuthor
24
+
25
+ !Author
26
+ @IDAuthor
27
+ %GUIDAuthor
28
+ &CreateDate
29
+ #CreatingIDUser
30
+ &UpdateDate
31
+ #UpdatingIDUser
32
+ ^Deleted
33
+ &DeleteDate
34
+ #DeletingIDUser
35
+ $Name 200
36
+
37
+ !BookPrice
38
+ @IDBookPrice
39
+ %GUIDBookPrice
40
+ &CreateDate
41
+ #CreatingIDUser
42
+ &UpdateDate
43
+ #UpdatingIDUser
44
+ ^Deleted
45
+ &DeleteDate
46
+ #DeletingIDUser
47
+ .Price 8,2
48
+ &StartDate
49
+ &EndDate
50
+ ^Discountable
51
+ $CouponCode 16
52
+ #IDBook -> IDBook
53
+
54
+ !Review
55
+ @IDReviews
56
+ %GUIDReviews
57
+ &CreateDate
58
+ #CreatingIDUser
59
+ &UpdateDate
60
+ #UpdatingIDUser
61
+ ^Deleted
62
+ &DeleteDate
63
+ #DeletingIDUser
64
+ *Text
65
+ #Rating
66
+ #IDBook -> IDBook
@@ -0,0 +1 @@
1
+ This is where the auto compiled diagram of the data model will generate.
@@ -0,0 +1,13 @@
1
+ ## Table Connection Graph -- Generated 2022-03-29T11:36:37.788Z
2
+ digraph DataModel {
3
+ rankdir=LR
4
+ Book;
5
+ BookAuthorJoin;
6
+ Author;
7
+ BookPrice;
8
+ Review;
9
+ BookAuthorJoin -> Book
10
+ BookAuthorJoin -> Author
11
+ BookPrice -> Book
12
+ Review -> Book
13
+ }
@@ -0,0 +1,18 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/Dictionary|Data Dictionary}
2
+
3
+ Data Dictionary
4
+ =========================
5
+
6
+ Each entry below describes a single table in the database.
7
+
8
+ Table | Column Count
9
+ ----- | -----------:
10
+ {Model/Dictionary/Model-Book|Book} | 16
11
+ {Model/Dictionary/Model-BookAuthorJoin|BookAuthorJoin} | 4
12
+ {Model/Dictionary/Model-Author|Author} | 10
13
+ {Model/Dictionary/Model-BookPrice|BookPrice} | 15
14
+ {Model/Dictionary/Model-Review|Review} | 12
15
+
16
+ - - -
17
+
18
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1,20 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/Dictionary|Data Dictionary} > {Model/Dictionary/Model-Author|Author Table}
2
+
3
+ Author
4
+ ===
5
+
6
+ Column Name | Size | Data Type | Join
7
+ ----------- | ---: | --------- | ----
8
+ IDAuthor | | ID |
9
+ GUIDAuthor | | GUID |
10
+ CreateDate | | DateTime |
11
+ CreatingIDUser | | Numeric |
12
+ UpdateDate | | DateTime |
13
+ UpdatingIDUser | | Numeric |
14
+ Deleted | | Boolean |
15
+ DeleteDate | | DateTime |
16
+ DeletingIDUser | | Numeric |
17
+ Name | 200 | String |
18
+ - - -
19
+
20
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1,26 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/Dictionary|Data Dictionary} > {Model/Dictionary/Model-Book|Book Table}
2
+
3
+ Book
4
+ ===
5
+
6
+ Column Name | Size | Data Type | Join
7
+ ----------- | ---: | --------- | ----
8
+ IDBook | | ID |
9
+ GUIDBook | | GUID |
10
+ CreateDate | | DateTime |
11
+ CreatingIDUser | | Numeric |
12
+ UpdateDate | | DateTime |
13
+ UpdatingIDUser | | Numeric |
14
+ Deleted | | Boolean |
15
+ DeleteDate | | DateTime |
16
+ DeletingIDUser | | Numeric |
17
+ Title | 200 | String |
18
+ Type | 32 | String |
19
+ Genre | 128 | String |
20
+ ISBN | 64 | String |
21
+ Language | 12 | String |
22
+ ImageURL | 254 | String |
23
+ PublicationYear | | Numeric |
24
+ - - -
25
+
26
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1,14 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/Dictionary|Data Dictionary} > {Model/Dictionary/Model-BookAuthorJoin|BookAuthorJoin Table}
2
+
3
+ BookAuthorJoin
4
+ ===
5
+
6
+ Column Name | Size | Data Type | Join
7
+ ----------- | ---: | --------- | ----
8
+ IDBookAuthorJoin | | ID |
9
+ GUIDBookAuthorJoin | | GUID |
10
+ IDBook | | Numeric | Book.IDBook
11
+ IDAuthor | | Numeric | Author.IDAuthor
12
+ - - -
13
+
14
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1,25 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/Dictionary|Data Dictionary} > {Model/Dictionary/Model-BookPrice|BookPrice Table}
2
+
3
+ BookPrice
4
+ ===
5
+
6
+ Column Name | Size | Data Type | Join
7
+ ----------- | ---: | --------- | ----
8
+ IDBookPrice | | ID |
9
+ GUIDBookPrice | | GUID |
10
+ CreateDate | | DateTime |
11
+ CreatingIDUser | | Numeric |
12
+ UpdateDate | | DateTime |
13
+ UpdatingIDUser | | Numeric |
14
+ Deleted | | Boolean |
15
+ DeleteDate | | DateTime |
16
+ DeletingIDUser | | Numeric |
17
+ Price | 8,2 | Decimal |
18
+ StartDate | | DateTime |
19
+ EndDate | | DateTime |
20
+ Discountable | | Boolean |
21
+ CouponCode | 16 | String |
22
+ IDBook | | Numeric | Book.IDBook
23
+ - - -
24
+
25
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1,22 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/Dictionary|Data Dictionary} > {Model/Dictionary/Model-Review|Review Table}
2
+
3
+ Review
4
+ ===
5
+
6
+ Column Name | Size | Data Type | Join
7
+ ----------- | ---: | --------- | ----
8
+ IDReviews | | ID |
9
+ GUIDReviews | | GUID |
10
+ CreateDate | | DateTime |
11
+ CreatingIDUser | | Numeric |
12
+ UpdateDate | | DateTime |
13
+ UpdatingIDUser | | Numeric |
14
+ Deleted | | Boolean |
15
+ DeleteDate | | DateTime |
16
+ DeletingIDUser | | Numeric |
17
+ Text | | Text |
18
+ Rating | | Numeric |
19
+ IDBook | | Numeric | Book.IDBook
20
+ - - -
21
+
22
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1,17 @@
1
+ ##### {DocumentationIndex|Home} > {Model/DataModel|Data Model} > {Model/Dictionary/ModelChangeTracking|Table Change Tracking}
2
+
3
+ Table Change Tracking
4
+ =====================
5
+
6
+ The following table describes which tables have implicit create, update and delete change tracking (provided by the meadow endpoints API architecture). This does not include any kind of media archival or record longitudinal backups; just timestamps and user stamps for the last action of each type.
7
+
8
+ Table | Create | Update | Delete
9
+ ----- | :----: | :----: | :----:
10
+ Book | X | X | X
11
+ BookAuthorJoin | | |
12
+ Author | X | X | X
13
+ BookPrice | X | X | X
14
+ Review | X | X | X
15
+ - - -
16
+
17
+ Generated on 2022-03-29 at 11:36
@@ -0,0 +1 @@
1
+ This is where the auto compiled markdown documentation of the data model will generate.
@@ -0,0 +1,5 @@
1
+ DROP TABLE Author;
2
+ DROP TABLE Book;
3
+ DROP TABLE BookAuthorJoin;
4
+ DROP TABLE BookPrice;
5
+ DROP TABLE Review;
@@ -0,0 +1,2 @@
1
+ This folder contains any hand-written scripts... currently just the script
2
+ to drop tables for rapid DB changes and sketches.
@@ -0,0 +1,116 @@
1
+ -- Data Model -- Generated 2022-03-29T11:36:36.684Z
2
+
3
+ -- This script creates the following tables:
4
+ -- Table ----------------------------------------- Column Count ----------------
5
+ -- Book 16
6
+ -- BookAuthorJoin 4
7
+ -- Author 10
8
+ -- BookPrice 15
9
+ -- Review 12
10
+
11
+
12
+
13
+ -- [ Book ]
14
+ CREATE TABLE IF NOT EXISTS
15
+ Book
16
+ (
17
+ IDBook INT UNSIGNED NOT NULL AUTO_INCREMENT,
18
+ GUIDBook CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
19
+ CreateDate DATETIME,
20
+ CreatingIDUser INT NOT NULL DEFAULT '0',
21
+ UpdateDate DATETIME,
22
+ UpdatingIDUser INT NOT NULL DEFAULT '0',
23
+ Deleted TINYINT NOT NULL DEFAULT '0',
24
+ DeleteDate DATETIME,
25
+ DeletingIDUser INT NOT NULL DEFAULT '0',
26
+ Title CHAR(200) NOT NULL DEFAULT '',
27
+ Type CHAR(32) NOT NULL DEFAULT '',
28
+ Genre CHAR(128) NOT NULL DEFAULT '',
29
+ ISBN CHAR(64) NOT NULL DEFAULT '',
30
+ Language CHAR(12) NOT NULL DEFAULT '',
31
+ ImageURL CHAR(254) NOT NULL DEFAULT '',
32
+ PublicationYear INT NOT NULL DEFAULT '0',
33
+
34
+ PRIMARY KEY (IDBook)
35
+ ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
36
+
37
+
38
+
39
+ -- [ BookAuthorJoin ]
40
+ CREATE TABLE IF NOT EXISTS
41
+ BookAuthorJoin
42
+ (
43
+ IDBookAuthorJoin INT UNSIGNED NOT NULL AUTO_INCREMENT,
44
+ GUIDBookAuthorJoin CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
45
+ IDBook INT NOT NULL DEFAULT '0',
46
+ IDAuthor INT NOT NULL DEFAULT '0',
47
+
48
+ PRIMARY KEY (IDBookAuthorJoin)
49
+ ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
50
+
51
+
52
+
53
+ -- [ Author ]
54
+ CREATE TABLE IF NOT EXISTS
55
+ Author
56
+ (
57
+ IDAuthor INT UNSIGNED NOT NULL AUTO_INCREMENT,
58
+ GUIDAuthor CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
59
+ CreateDate DATETIME,
60
+ CreatingIDUser INT NOT NULL DEFAULT '0',
61
+ UpdateDate DATETIME,
62
+ UpdatingIDUser INT NOT NULL DEFAULT '0',
63
+ Deleted TINYINT NOT NULL DEFAULT '0',
64
+ DeleteDate DATETIME,
65
+ DeletingIDUser INT NOT NULL DEFAULT '0',
66
+ Name CHAR(200) NOT NULL DEFAULT '',
67
+
68
+ PRIMARY KEY (IDAuthor)
69
+ ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
70
+
71
+
72
+
73
+ -- [ BookPrice ]
74
+ CREATE TABLE IF NOT EXISTS
75
+ BookPrice
76
+ (
77
+ IDBookPrice INT UNSIGNED NOT NULL AUTO_INCREMENT,
78
+ GUIDBookPrice CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
79
+ CreateDate DATETIME,
80
+ CreatingIDUser INT NOT NULL DEFAULT '0',
81
+ UpdateDate DATETIME,
82
+ UpdatingIDUser INT NOT NULL DEFAULT '0',
83
+ Deleted TINYINT NOT NULL DEFAULT '0',
84
+ DeleteDate DATETIME,
85
+ DeletingIDUser INT NOT NULL DEFAULT '0',
86
+ Price DECIMAL(8,2),
87
+ StartDate DATETIME,
88
+ EndDate DATETIME,
89
+ Discountable TINYINT NOT NULL DEFAULT '0',
90
+ CouponCode CHAR(16) NOT NULL DEFAULT '',
91
+ IDBook INT NOT NULL DEFAULT '0',
92
+
93
+ PRIMARY KEY (IDBookPrice)
94
+ ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
95
+
96
+
97
+
98
+ -- [ Review ]
99
+ CREATE TABLE IF NOT EXISTS
100
+ Review
101
+ (
102
+ IDReviews INT UNSIGNED NOT NULL AUTO_INCREMENT,
103
+ GUIDReviews CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
104
+ CreateDate DATETIME,
105
+ CreatingIDUser INT NOT NULL DEFAULT '0',
106
+ UpdateDate DATETIME,
107
+ UpdatingIDUser INT NOT NULL DEFAULT '0',
108
+ Deleted TINYINT NOT NULL DEFAULT '0',
109
+ DeleteDate DATETIME,
110
+ DeletingIDUser INT NOT NULL DEFAULT '0',
111
+ Text TEXT,
112
+ Rating INT NOT NULL DEFAULT '0',
113
+ IDBook INT NOT NULL DEFAULT '0',
114
+
115
+ PRIMARY KEY (IDReviews)
116
+ ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -0,0 +1 @@
1
+ This is where the MYSQL Create statement for the data model will generate.