retold-data-service 2.0.7 → 2.0.9

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 (54) hide show
  1. package/.vscode/settings.json +33 -14
  2. package/debug/Harness.js +81 -2
  3. package/package.json +4 -2
  4. package/source/Retold-Data-Service.js +58 -18
  5. package/test/model/{json/MeadowModel-Extended.json → MeadowModel-Extended.json} +969 -5
  6. package/{debug/model/generated_documentation → test/model/doc}/Dictionary.md +1 -1
  7. package/{debug/model/generated_documentation → test/model/doc}/Model-Author.md +5 -5
  8. package/{debug/model/generated_documentation → test/model/doc}/Model-Book.md +6 -6
  9. package/{debug/model/generated_documentation → test/model/doc}/Model-BookAuthorJoin.md +4 -4
  10. package/{debug/model/generated_documentation → test/model/doc}/Model-BookPrice.md +6 -6
  11. package/{debug/model/generated_documentation → test/model/doc}/Model-Review.md +7 -7
  12. package/{debug/model/generated_documentation → test/model/doc}/ModelChangeTracking.md +1 -1
  13. package/{debug/model/generated_diagram/Stricture_Output.dot → test/model/doc/diagrams/Relationships.dot} +1 -1
  14. package/test/model/doc/diagrams/RelationshipsFull.dot +13 -0
  15. package/test/model/doc/diagrams/RelationshipsFull.png +0 -0
  16. package/test/model/meadow/MeadowSchemaAuthor.json +431 -0
  17. package/test/model/meadow/MeadowSchemaBook.json +527 -0
  18. package/test/model/meadow/MeadowSchemaBookAuthorJoin.json +335 -0
  19. package/test/model/meadow/MeadowSchemaBookPrice.json +511 -0
  20. package/test/model/meadow/MeadowSchemaReview.json +463 -0
  21. package/{debug/model/sql_create/BookStore-CreateDatabase.mysql.sql → test/model/mysql_create/MeadowModel-CreateMySQLDatabase.mysql.sql} +6 -6
  22. package/debug/bookstore-configuration.json +0 -26
  23. package/debug/model/Model-Extended.json +0 -915
  24. package/debug/model/Model-PICT.json +0 -1
  25. package/debug/model/Model.json +0 -280
  26. package/debug/model/bookstore-api-endpoint-exercises.paw +0 -0
  27. package/debug/model/ddl/BookStore.ddl +0 -66
  28. package/debug/model/generated_diagram/README.md +0 -1
  29. package/debug/model/generated_documentation/README.md +0 -1
  30. package/debug/model/manual_scripts/DropTables.sql +0 -5
  31. package/debug/model/manual_scripts/MySQL-Laden-Entry-ServicesOnly.sh +0 -28
  32. package/debug/model/manual_scripts/MySQL-Laden-Entry.sh +0 -17
  33. package/debug/model/manual_scripts/MySQL-Security.sql +0 -5
  34. package/debug/model/manual_scripts/README.md +0 -2
  35. package/debug/model/manual_scripts/my.cnf +0 -4
  36. package/debug/model/meadow/Model-MeadowSchema-Author.json +0 -220
  37. package/debug/model/meadow/Model-MeadowSchema-Book.json +0 -268
  38. package/debug/model/meadow/Model-MeadowSchema-BookAuthorJoin.json +0 -172
  39. package/debug/model/meadow/Model-MeadowSchema-BookPrice.json +0 -260
  40. package/debug/model/meadow/Model-MeadowSchema-Review.json +0 -236
  41. package/debug/model/meadow/README.md +0 -1
  42. package/debug/model/sql_create/BookStore-CreateAndPopulateTables.sql +0 -194
  43. package/debug/model/sql_create/README.md +0 -1
  44. package/test/model/Model-Extended.json +0 -915
  45. package/test/model/Model.ddl +0 -66
  46. package/test/model/Model.json +0 -280
  47. package/test/model/meadow/Model-MeadowSchema-Author.json +0 -220
  48. package/test/model/meadow/Model-MeadowSchema-Book.json +0 -268
  49. package/test/model/meadow/Model-MeadowSchema-BookAuthorJoin.json +0 -172
  50. package/test/model/meadow/Model-MeadowSchema-BookPrice.json +0 -260
  51. package/test/model/meadow/Model-MeadowSchema-Review.json +0 -236
  52. /package/test/model/{json/MeadowModel-PICT.json → MeadowModel-PICT.json} +0 -0
  53. /package/test/model/{json/MeadowModel.json → MeadowModel.json} +0 -0
  54. /package/{debug/model/generated_diagram/Stricture_Output.png → test/model/doc/diagrams/Relationships.png} +0 -0
@@ -0,0 +1,463 @@
1
+ {
2
+ "Scope": "Review",
3
+ "DefaultIdentifier": "IDReviews",
4
+ "Domain": "Default",
5
+ "Schema": [
6
+ {
7
+ "Column": "IDReviews",
8
+ "Type": "AutoIdentity",
9
+ "Size": "Default"
10
+ },
11
+ {
12
+ "Column": "GUIDReviews",
13
+ "Type": "AutoGUID",
14
+ "Size": "36"
15
+ },
16
+ {
17
+ "Column": "CreateDate",
18
+ "Type": "CreateDate",
19
+ "Size": "Default"
20
+ },
21
+ {
22
+ "Column": "CreatingIDUser",
23
+ "Type": "CreateIDUser",
24
+ "Size": "int"
25
+ },
26
+ {
27
+ "Column": "UpdateDate",
28
+ "Type": "UpdateDate",
29
+ "Size": "Default"
30
+ },
31
+ {
32
+ "Column": "UpdatingIDUser",
33
+ "Type": "UpdateIDUser",
34
+ "Size": "int"
35
+ },
36
+ {
37
+ "Column": "Deleted",
38
+ "Type": "Deleted",
39
+ "Size": "Default"
40
+ },
41
+ {
42
+ "Column": "DeleteDate",
43
+ "Type": "DeleteDate",
44
+ "Size": "Default"
45
+ },
46
+ {
47
+ "Column": "DeletingIDUser",
48
+ "Type": "DeleteIDUser",
49
+ "Size": "int"
50
+ },
51
+ {
52
+ "Column": "Text",
53
+ "Type": "String",
54
+ "Size": "Default"
55
+ },
56
+ {
57
+ "Column": "Rating",
58
+ "Type": "Integer",
59
+ "Size": "int"
60
+ },
61
+ {
62
+ "Column": "IDBook",
63
+ "Type": "Integer",
64
+ "Size": "int"
65
+ }
66
+ ],
67
+ "DefaultObject": {
68
+ "IDReviews": 0,
69
+ "GUIDReviews": "0x0000000000000000",
70
+ "CreateDate": null,
71
+ "CreatingIDUser": 0,
72
+ "UpdateDate": null,
73
+ "UpdatingIDUser": 0,
74
+ "Deleted": false,
75
+ "DeleteDate": null,
76
+ "DeletingIDUser": 0,
77
+ "Text": "",
78
+ "Rating": 0,
79
+ "IDBook": 0
80
+ },
81
+ "JsonSchema": {
82
+ "title": "Review",
83
+ "type": "object",
84
+ "properties": {
85
+ "IDReviews": {
86
+ "type": "integer",
87
+ "size": "Default"
88
+ },
89
+ "GUIDReviews": {
90
+ "type": "string",
91
+ "size": "36"
92
+ },
93
+ "CreateDate": {
94
+ "type": "string",
95
+ "size": "Default"
96
+ },
97
+ "CreatingIDUser": {
98
+ "type": "integer",
99
+ "size": "int"
100
+ },
101
+ "UpdateDate": {
102
+ "type": "string",
103
+ "size": "Default"
104
+ },
105
+ "UpdatingIDUser": {
106
+ "type": "integer",
107
+ "size": "int"
108
+ },
109
+ "Deleted": {
110
+ "type": "boolean",
111
+ "size": "Default"
112
+ },
113
+ "DeleteDate": {
114
+ "type": "string",
115
+ "size": "Default"
116
+ },
117
+ "DeletingIDUser": {
118
+ "type": "integer",
119
+ "size": "int"
120
+ },
121
+ "Text": {
122
+ "type": "string",
123
+ "size": "Default"
124
+ },
125
+ "Rating": {
126
+ "type": "integer",
127
+ "size": "int"
128
+ },
129
+ "IDBook": {
130
+ "type": "integer",
131
+ "size": "int"
132
+ }
133
+ },
134
+ "required": [
135
+ "IDReviews"
136
+ ],
137
+ "MeadowSchema": {
138
+ "Scope": "Review",
139
+ "DefaultIdentifier": "IDReviews",
140
+ "Domain": "Default",
141
+ "Schema": [
142
+ {
143
+ "Column": "IDReviews",
144
+ "Type": "AutoIdentity",
145
+ "Size": "Default"
146
+ },
147
+ {
148
+ "Column": "GUIDReviews",
149
+ "Type": "AutoGUID",
150
+ "Size": "36"
151
+ },
152
+ {
153
+ "Column": "CreateDate",
154
+ "Type": "CreateDate",
155
+ "Size": "Default"
156
+ },
157
+ {
158
+ "Column": "CreatingIDUser",
159
+ "Type": "CreateIDUser",
160
+ "Size": "int"
161
+ },
162
+ {
163
+ "Column": "UpdateDate",
164
+ "Type": "UpdateDate",
165
+ "Size": "Default"
166
+ },
167
+ {
168
+ "Column": "UpdatingIDUser",
169
+ "Type": "UpdateIDUser",
170
+ "Size": "int"
171
+ },
172
+ {
173
+ "Column": "Deleted",
174
+ "Type": "Deleted",
175
+ "Size": "Default"
176
+ },
177
+ {
178
+ "Column": "DeleteDate",
179
+ "Type": "DeleteDate",
180
+ "Size": "Default"
181
+ },
182
+ {
183
+ "Column": "DeletingIDUser",
184
+ "Type": "DeleteIDUser",
185
+ "Size": "int"
186
+ },
187
+ {
188
+ "Column": "Text",
189
+ "Type": "String",
190
+ "Size": "Default"
191
+ },
192
+ {
193
+ "Column": "Rating",
194
+ "Type": "Integer",
195
+ "Size": "int"
196
+ },
197
+ {
198
+ "Column": "IDBook",
199
+ "Type": "Integer",
200
+ "Size": "int"
201
+ }
202
+ ],
203
+ "DefaultObject": {
204
+ "IDReviews": 0,
205
+ "GUIDReviews": "0x0000000000000000",
206
+ "CreateDate": null,
207
+ "CreatingIDUser": 0,
208
+ "UpdateDate": null,
209
+ "UpdatingIDUser": 0,
210
+ "Deleted": false,
211
+ "DeleteDate": null,
212
+ "DeletingIDUser": 0,
213
+ "Text": "",
214
+ "Rating": 0,
215
+ "IDBook": 0
216
+ },
217
+ "Authorization": {
218
+ "__DefaultAPISecurity": {
219
+ "Create": "Deny",
220
+ "Read": "Deny",
221
+ "Reads": "Deny",
222
+ "ReadsBy": "Deny",
223
+ "ReadMax": "Deny",
224
+ "ReadSelectList": "Deny",
225
+ "Update": "Deny",
226
+ "Delete": "Deny",
227
+ "Count": "Deny",
228
+ "CountBy": "Deny",
229
+ "Schema": "Deny",
230
+ "Validate": "Deny",
231
+ "New": "Deny"
232
+ },
233
+ "Unauthenticated": {
234
+ "Create": "Deny",
235
+ "Read": "Deny",
236
+ "Reads": "Deny",
237
+ "ReadsBy": "Deny",
238
+ "ReadMax": "Deny",
239
+ "ReadSelectList": "Deny",
240
+ "Update": "Deny",
241
+ "Delete": "Deny",
242
+ "Count": "Deny",
243
+ "CountBy": "Deny",
244
+ "Schema": "Deny",
245
+ "Validate": "Deny",
246
+ "New": "Deny"
247
+ },
248
+ "Readonly": {
249
+ "Create": "Deny",
250
+ "Read": "Allow",
251
+ "Reads": "Allow",
252
+ "ReadsBy": "Allow",
253
+ "ReadMax": "Allow",
254
+ "ReadSelectList": "Allow",
255
+ "Update": "Deny",
256
+ "Delete": "Deny",
257
+ "Count": "Allow",
258
+ "CountBy": "Allow",
259
+ "Schema": "Allow",
260
+ "Validate": "Allow",
261
+ "New": "Deny"
262
+ },
263
+ "User": {
264
+ "Create": "Allow",
265
+ "Read": "MyCustomer",
266
+ "Reads": "MyCustomer",
267
+ "ReadsBy": "MyCustomer",
268
+ "ReadMax": "MyCustomer",
269
+ "ReadSelectList": "MyCustomer",
270
+ "Update": "Mine",
271
+ "Delete": "Mine",
272
+ "Count": "MyCustomer",
273
+ "CountBy": "MyCustomer",
274
+ "Schema": "MyCustomer",
275
+ "Validate": "MyCustomer",
276
+ "New": "MyCustomer"
277
+ },
278
+ "Manager": {
279
+ "Create": "Allow",
280
+ "Read": "MyCustomer",
281
+ "Reads": "MyCustomer",
282
+ "ReadsBy": "MyCustomer",
283
+ "ReadMax": "MyCustomer",
284
+ "ReadSelectList": "MyCustomer",
285
+ "Update": "Mine",
286
+ "Delete": "Mine",
287
+ "Count": "MyCustomer",
288
+ "CountBy": "MyCustomer",
289
+ "Schema": "MyCustomer",
290
+ "Validate": "MyCustomer",
291
+ "New": "MyCustomer"
292
+ },
293
+ "Director": {
294
+ "Create": "Allow",
295
+ "Read": "MyCustomer",
296
+ "Reads": "MyCustomer",
297
+ "ReadsBy": "MyCustomer",
298
+ "ReadMax": "MyCustomer",
299
+ "ReadSelectList": "MyCustomer",
300
+ "Update": "MyCustomer",
301
+ "Delete": "MyCustomer",
302
+ "Count": "MyCustomer",
303
+ "CountBy": "MyCustomer",
304
+ "Schema": "MyCustomer",
305
+ "Validate": "MyCustomer",
306
+ "New": "MyCustomer"
307
+ },
308
+ "Executive": {
309
+ "Create": "Allow",
310
+ "Read": "MyCustomer",
311
+ "Reads": "MyCustomer",
312
+ "ReadsBy": "MyCustomer",
313
+ "ReadMax": "MyCustomer",
314
+ "ReadSelectList": "MyCustomer",
315
+ "Update": "MyCustomer",
316
+ "Delete": "MyCustomer",
317
+ "Count": "MyCustomer",
318
+ "CountBy": "MyCustomer",
319
+ "Schema": "MyCustomer",
320
+ "Validate": "MyCustomer",
321
+ "New": "MyCustomer"
322
+ },
323
+ "Administrator": {
324
+ "Create": "Allow",
325
+ "Read": "Allow",
326
+ "Reads": "Allow",
327
+ "ReadsBy": "Allow",
328
+ "ReadMax": "Allow",
329
+ "ReadSelectList": "Allow",
330
+ "Update": "Allow",
331
+ "Delete": "Allow",
332
+ "Count": "Allow",
333
+ "CountBy": "Allow",
334
+ "Schema": "Allow",
335
+ "Validate": "Allow",
336
+ "New": "Allow"
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "Authorization": {
342
+ "__DefaultAPISecurity": {
343
+ "Create": "Deny",
344
+ "Read": "Deny",
345
+ "Reads": "Deny",
346
+ "ReadsBy": "Deny",
347
+ "ReadMax": "Deny",
348
+ "ReadSelectList": "Deny",
349
+ "Update": "Deny",
350
+ "Delete": "Deny",
351
+ "Count": "Deny",
352
+ "CountBy": "Deny",
353
+ "Schema": "Deny",
354
+ "Validate": "Deny",
355
+ "New": "Deny"
356
+ },
357
+ "Unauthenticated": {
358
+ "Create": "Deny",
359
+ "Read": "Deny",
360
+ "Reads": "Deny",
361
+ "ReadsBy": "Deny",
362
+ "ReadMax": "Deny",
363
+ "ReadSelectList": "Deny",
364
+ "Update": "Deny",
365
+ "Delete": "Deny",
366
+ "Count": "Deny",
367
+ "CountBy": "Deny",
368
+ "Schema": "Deny",
369
+ "Validate": "Deny",
370
+ "New": "Deny"
371
+ },
372
+ "Readonly": {
373
+ "Create": "Deny",
374
+ "Read": "Allow",
375
+ "Reads": "Allow",
376
+ "ReadsBy": "Allow",
377
+ "ReadMax": "Allow",
378
+ "ReadSelectList": "Allow",
379
+ "Update": "Deny",
380
+ "Delete": "Deny",
381
+ "Count": "Allow",
382
+ "CountBy": "Allow",
383
+ "Schema": "Allow",
384
+ "Validate": "Allow",
385
+ "New": "Deny"
386
+ },
387
+ "User": {
388
+ "Create": "Allow",
389
+ "Read": "MyCustomer",
390
+ "Reads": "MyCustomer",
391
+ "ReadsBy": "MyCustomer",
392
+ "ReadMax": "MyCustomer",
393
+ "ReadSelectList": "MyCustomer",
394
+ "Update": "Mine",
395
+ "Delete": "Mine",
396
+ "Count": "MyCustomer",
397
+ "CountBy": "MyCustomer",
398
+ "Schema": "MyCustomer",
399
+ "Validate": "MyCustomer",
400
+ "New": "MyCustomer"
401
+ },
402
+ "Manager": {
403
+ "Create": "Allow",
404
+ "Read": "MyCustomer",
405
+ "Reads": "MyCustomer",
406
+ "ReadsBy": "MyCustomer",
407
+ "ReadMax": "MyCustomer",
408
+ "ReadSelectList": "MyCustomer",
409
+ "Update": "Mine",
410
+ "Delete": "Mine",
411
+ "Count": "MyCustomer",
412
+ "CountBy": "MyCustomer",
413
+ "Schema": "MyCustomer",
414
+ "Validate": "MyCustomer",
415
+ "New": "MyCustomer"
416
+ },
417
+ "Director": {
418
+ "Create": "Allow",
419
+ "Read": "MyCustomer",
420
+ "Reads": "MyCustomer",
421
+ "ReadsBy": "MyCustomer",
422
+ "ReadMax": "MyCustomer",
423
+ "ReadSelectList": "MyCustomer",
424
+ "Update": "MyCustomer",
425
+ "Delete": "MyCustomer",
426
+ "Count": "MyCustomer",
427
+ "CountBy": "MyCustomer",
428
+ "Schema": "MyCustomer",
429
+ "Validate": "MyCustomer",
430
+ "New": "MyCustomer"
431
+ },
432
+ "Executive": {
433
+ "Create": "Allow",
434
+ "Read": "MyCustomer",
435
+ "Reads": "MyCustomer",
436
+ "ReadsBy": "MyCustomer",
437
+ "ReadMax": "MyCustomer",
438
+ "ReadSelectList": "MyCustomer",
439
+ "Update": "MyCustomer",
440
+ "Delete": "MyCustomer",
441
+ "Count": "MyCustomer",
442
+ "CountBy": "MyCustomer",
443
+ "Schema": "MyCustomer",
444
+ "Validate": "MyCustomer",
445
+ "New": "MyCustomer"
446
+ },
447
+ "Administrator": {
448
+ "Create": "Allow",
449
+ "Read": "Allow",
450
+ "Reads": "Allow",
451
+ "ReadsBy": "Allow",
452
+ "ReadMax": "Allow",
453
+ "ReadSelectList": "Allow",
454
+ "Update": "Allow",
455
+ "Delete": "Allow",
456
+ "Count": "Allow",
457
+ "CountBy": "Allow",
458
+ "Schema": "Allow",
459
+ "Validate": "Allow",
460
+ "New": "Allow"
461
+ }
462
+ }
463
+ }
@@ -1,4 +1,4 @@
1
- -- Data Model -- Generated 2022-03-29T11:36:36.684Z
1
+ -- Data Model -- Generated 2025-11-12T19:14:56.701Z
2
2
 
3
3
  -- This script creates the following tables:
4
4
  -- Table ----------------------------------------- Column Count ----------------
@@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS
15
15
  Book
16
16
  (
17
17
  IDBook INT UNSIGNED NOT NULL AUTO_INCREMENT,
18
- GUIDBook CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
18
+ GUIDBook CHAR(36) NOT NULL DEFAULT '0xDe',
19
19
  CreateDate DATETIME,
20
20
  CreatingIDUser INT NOT NULL DEFAULT '0',
21
21
  UpdateDate DATETIME,
@@ -41,7 +41,7 @@ CREATE TABLE IF NOT EXISTS
41
41
  BookAuthorJoin
42
42
  (
43
43
  IDBookAuthorJoin INT UNSIGNED NOT NULL AUTO_INCREMENT,
44
- GUIDBookAuthorJoin CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
44
+ GUIDBookAuthorJoin CHAR(36) NOT NULL DEFAULT '0xDe',
45
45
  IDBook INT NOT NULL DEFAULT '0',
46
46
  IDAuthor INT NOT NULL DEFAULT '0',
47
47
 
@@ -55,7 +55,7 @@ CREATE TABLE IF NOT EXISTS
55
55
  Author
56
56
  (
57
57
  IDAuthor INT UNSIGNED NOT NULL AUTO_INCREMENT,
58
- GUIDAuthor CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
58
+ GUIDAuthor CHAR(36) NOT NULL DEFAULT '0xDe',
59
59
  CreateDate DATETIME,
60
60
  CreatingIDUser INT NOT NULL DEFAULT '0',
61
61
  UpdateDate DATETIME,
@@ -75,7 +75,7 @@ CREATE TABLE IF NOT EXISTS
75
75
  BookPrice
76
76
  (
77
77
  IDBookPrice INT UNSIGNED NOT NULL AUTO_INCREMENT,
78
- GUIDBookPrice CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
78
+ GUIDBookPrice CHAR(36) NOT NULL DEFAULT '0xDe',
79
79
  CreateDate DATETIME,
80
80
  CreatingIDUser INT NOT NULL DEFAULT '0',
81
81
  UpdateDate DATETIME,
@@ -100,7 +100,7 @@ CREATE TABLE IF NOT EXISTS
100
100
  Review
101
101
  (
102
102
  IDReviews INT UNSIGNED NOT NULL AUTO_INCREMENT,
103
- GUIDReviews CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
103
+ GUIDReviews CHAR(36) NOT NULL DEFAULT '0xDe',
104
104
  CreateDate DATETIME,
105
105
  CreatingIDUser INT NOT NULL DEFAULT '0',
106
106
  UpdateDate DATETIME,
@@ -1,26 +0,0 @@
1
- {
2
- "Product": "MeadowEndpointsTestBookStore",
3
- "ProductVersion": "1.0.0",
4
- "UUID":
5
- {
6
- "DataCenter": 0,
7
- "Worker": 0
8
- },
9
- "LogStreams":
10
- [
11
- {
12
- "streamtype": "console"
13
- }
14
- ],
15
- "APIServerPort": 8087,
16
- "MySQL":
17
- {
18
- "Server": "127.0.0.1",
19
- "Port": 3306,
20
- "User": "root",
21
- "Password": "123456789",
22
- "Database": "bookstore",
23
- "ConnectionPoolLimit": 20
24
- },
25
- "MeadowConnectionMySQLAutoConnect": true
26
- }