@sava-info-systems/api-maker-with-extensions 2.2.1 → 2.3.0

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.
@@ -0,0 +1,1886 @@
1
+ [
2
+ {
3
+ "_id": "aaa000000000000000000001",
4
+ "guid": "01MONGO_CATALOG_CATEGORIES",
5
+ "instanceName": "mongodb",
6
+ "databaseName": "catalog_db",
7
+ "collectionName": "Categories",
8
+ "properties": {
9
+ "_id": "objectId",
10
+ "name": {
11
+ "__type": "string",
12
+ "validations": {
13
+ "required": true,
14
+ "unique": true,
15
+ "minLength": 2,
16
+ "maxLength": 100
17
+ }
18
+ },
19
+ "slug": {
20
+ "__type": "string",
21
+ "validations": {
22
+ "required": true,
23
+ "unique": true
24
+ }
25
+ },
26
+ "parent_id": {
27
+ "__type": "objectId",
28
+ "instance": "mongodb",
29
+ "database": "catalog_db",
30
+ "collection": "Categories"
31
+ },
32
+ "description": {
33
+ "__type": "string"
34
+ },
35
+ "image": {
36
+ "url": {
37
+ "__type": "string"
38
+ },
39
+ "alt": {
40
+ "__type": "string"
41
+ },
42
+ "width": {
43
+ "__type": "number"
44
+ },
45
+ "height": {
46
+ "__type": "number"
47
+ }
48
+ },
49
+ "seo": {
50
+ "meta_title": {
51
+ "__type": "string",
52
+ "validations": {
53
+ "maxLength": 70
54
+ }
55
+ },
56
+ "meta_description": {
57
+ "__type": "string",
58
+ "validations": {
59
+ "maxLength": 160
60
+ }
61
+ },
62
+ "keywords": {
63
+ "__type": "string"
64
+ }
65
+ },
66
+ "is_active": {
67
+ "__type": "boolean",
68
+ "conversions": {
69
+ "defaults": {
70
+ "defaultFun": {
71
+ "code": "()=>{ return true; }",
72
+ "hash": "111111111"
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "sort_order": {
78
+ "__type": "number"
79
+ },
80
+ "products": [
81
+ {
82
+ "__type": "objectId",
83
+ "isVirtualField": true,
84
+ "instance": "mongodb",
85
+ "database": "catalog_db",
86
+ "collection": "Products",
87
+ "s_columnVirtualLinker": "_id",
88
+ "t_columnVirtualLinker": "category_id"
89
+ }
90
+ ],
91
+ "addressList": [
92
+ {
93
+ "url": {
94
+ "__type": "string"
95
+ },
96
+ "alt": {
97
+ "__type": "string"
98
+ },
99
+ "width": {
100
+ "__type": "number"
101
+ },
102
+ "height": {
103
+ "__type": "number"
104
+ }
105
+ }
106
+ ],
107
+ "createdAt": {
108
+ "__type": "date",
109
+ "conversions": {
110
+ "defaults": {
111
+ "defaultFun": {
112
+ "code": "()=>{ return new Date(); }",
113
+ "hash": "222222222"
114
+ }
115
+ }
116
+ }
117
+ },
118
+ "updatedAt": {
119
+ "__type": "date",
120
+ "conversions": {
121
+ "conversionFun": {
122
+ "code": "(val, data)=>{ return new Date(); }",
123
+ "hash": "333333333"
124
+ }
125
+ }
126
+ }
127
+ },
128
+ "validations": [],
129
+ "calculated": {
130
+ "primaryKey": "_id",
131
+ "hasSuperKey": false
132
+ },
133
+ "user": "6875b871e952f1c779aaf5d2",
134
+ "active": true,
135
+ "__v": 0
136
+ },
137
+ {
138
+ "_id": "aaa000000000000000000002",
139
+ "guid": "01MONGO_CATALOG_PRODUCTS",
140
+ "instanceName": "mongodb",
141
+ "databaseName": "catalog_db",
142
+ "collectionName": "Products",
143
+ "properties": {
144
+ "_id": "objectId",
145
+ "sku": {
146
+ "__type": "string",
147
+ "validations": {
148
+ "required": true,
149
+ "unique": true,
150
+ "minLength": 3,
151
+ "maxLength": 50
152
+ }
153
+ },
154
+ "name": {
155
+ "__type": "string",
156
+ "validations": {
157
+ "required": true,
158
+ "minLength": 2,
159
+ "maxLength": 200
160
+ }
161
+ },
162
+ "category_id": {
163
+ "__type": "objectId",
164
+ "instance": "mongodb",
165
+ "database": "catalog_db",
166
+ "collection": "Categories"
167
+ },
168
+ "supplier_id": {
169
+ "__type": "objectId",
170
+ "instance": "mongodb",
171
+ "database": "catalog_db",
172
+ "collection": "Suppliers"
173
+ },
174
+ "description": {
175
+ "__type": "string"
176
+ },
177
+ "pricing": {
178
+ "unit_price": {
179
+ "__type": "number",
180
+ "validations": {
181
+ "required": true,
182
+ "min": 0
183
+ }
184
+ },
185
+ "cost_price": {
186
+ "__type": "number",
187
+ "validations": {
188
+ "min": 0
189
+ }
190
+ },
191
+ "currency": {
192
+ "__type": "string",
193
+ "validations": {
194
+ "enum": [
195
+ "USD",
196
+ "EUR",
197
+ "GBP",
198
+ "INR"
199
+ ]
200
+ }
201
+ },
202
+ "discount_percent": {
203
+ "__type": "number",
204
+ "validations": {
205
+ "min": 0,
206
+ "max": 100
207
+ }
208
+ }
209
+ },
210
+ "physical": {
211
+ "weight_kg": {
212
+ "__type": "number"
213
+ },
214
+ "dimensions": {
215
+ "length_cm": {
216
+ "__type": "number"
217
+ },
218
+ "width_cm": {
219
+ "__type": "number"
220
+ },
221
+ "height_cm": {
222
+ "__type": "number"
223
+ }
224
+ }
225
+ },
226
+ "unit_of_measure": {
227
+ "__type": "string",
228
+ "validations": {
229
+ "required": true,
230
+ "enum": [
231
+ "piece",
232
+ "kg",
233
+ "litre",
234
+ "meter",
235
+ "box",
236
+ "pack"
237
+ ]
238
+ }
239
+ },
240
+ "tags": {
241
+ "__type": "string"
242
+ },
243
+ "images": [
244
+ {
245
+ "url": {
246
+ "__type": "string",
247
+ "validations": { "required": true }
248
+ },
249
+ "alt": {
250
+ "__type": "string"
251
+ },
252
+ "is_primary": {
253
+ "__type": "boolean"
254
+ },
255
+ "sort_order": {
256
+ "__type": "number"
257
+ }
258
+ }
259
+ ],
260
+ "is_active": {
261
+ "__type": "boolean",
262
+ "conversions": {
263
+ "defaults": {
264
+ "defaultFun": {
265
+ "code": "()=>{ return true; }",
266
+ "hash": "444444444"
267
+ }
268
+ }
269
+ }
270
+ },
271
+ "category": {
272
+ "__type": "objectId",
273
+ "isVirtualField": true,
274
+ "instance": "mongodb",
275
+ "database": "catalog_db",
276
+ "collection": "Categories",
277
+ "s_columnVirtualLinker": "category_id"
278
+ },
279
+ "supplier": {
280
+ "__type": "objectId",
281
+ "isVirtualField": true,
282
+ "instance": "mongodb",
283
+ "database": "catalog_db",
284
+ "collection": "Suppliers",
285
+ "s_columnVirtualLinker": "supplier_id"
286
+ },
287
+ "createdAt": {
288
+ "__type": "date",
289
+ "conversions": {
290
+ "defaults": {
291
+ "defaultFun": {
292
+ "code": "()=>{ return new Date(); }",
293
+ "hash": "555555555"
294
+ }
295
+ }
296
+ }
297
+ },
298
+ "updatedAt": {
299
+ "__type": "date",
300
+ "conversions": {
301
+ "conversionFun": {
302
+ "code": "(val, data)=>{ return new Date(); }",
303
+ "hash": "666666666"
304
+ }
305
+ }
306
+ }
307
+ },
308
+ "validations": [],
309
+ "calculated": {
310
+ "primaryKey": "_id",
311
+ "hasSuperKey": false
312
+ },
313
+ "user": "6875b871e952f1c779aaf5d2",
314
+ "active": true,
315
+ "__v": 0
316
+ },
317
+ {
318
+ "_id": "aaa000000000000000000003",
319
+ "guid": "01MONGO_CATALOG_SUPPLIERS",
320
+ "instanceName": "mongodb",
321
+ "databaseName": "catalog_db",
322
+ "collectionName": "Suppliers",
323
+ "properties": {
324
+ "_id": "objectId",
325
+ "name": {
326
+ "__type": "string",
327
+ "validations": {
328
+ "required": true,
329
+ "minLength": 2,
330
+ "maxLength": 150
331
+ }
332
+ },
333
+ "code": {
334
+ "__type": "string",
335
+ "validations": {
336
+ "required": true,
337
+ "unique": true
338
+ }
339
+ },
340
+ "contact": {
341
+ "email": {
342
+ "__type": "string",
343
+ "validations": {
344
+ "required": true,
345
+ "email": true
346
+ }
347
+ },
348
+ "phone": {
349
+ "__type": "string"
350
+ },
351
+ "website": {
352
+ "__type": "string"
353
+ }
354
+ },
355
+ "address": {
356
+ "street": {
357
+ "__type": "string"
358
+ },
359
+ "city": {
360
+ "__type": "string"
361
+ },
362
+ "state": {
363
+ "__type": "string"
364
+ },
365
+ "zip": {
366
+ "__type": "string"
367
+ },
368
+ "country": {
369
+ "__type": "string"
370
+ }
371
+ },
372
+ "currency": {
373
+ "__type": "string",
374
+ "validations": {
375
+ "enum": [
376
+ "USD",
377
+ "EUR",
378
+ "GBP",
379
+ "INR",
380
+ "JPY",
381
+ "CAD",
382
+ "AUD"
383
+ ]
384
+ }
385
+ },
386
+ "payment_terms_days": {
387
+ "__type": "number"
388
+ },
389
+ "rating": {
390
+ "__type": "number",
391
+ "validations": {
392
+ "min": 0,
393
+ "max": 5
394
+ }
395
+ },
396
+ "is_active": {
397
+ "__type": "boolean",
398
+ "conversions": {
399
+ "defaults": {
400
+ "defaultFun": {
401
+ "code": "()=>{ return true; }",
402
+ "hash": "777777771"
403
+ }
404
+ }
405
+ }
406
+ },
407
+ "products": {
408
+ "__type": "objectId",
409
+ "isVirtualField": true,
410
+ "instance": "mongodb",
411
+ "database": "catalog_db",
412
+ "collection": "Products",
413
+ "s_columnVirtualLinker": "_id",
414
+ "t_columnVirtualLinker": "supplier_id"
415
+ },
416
+ "createdAt": {
417
+ "__type": "date",
418
+ "conversions": {
419
+ "defaults": {
420
+ "defaultFun": {
421
+ "code": "()=>{ return new Date(); }",
422
+ "hash": "777777772"
423
+ }
424
+ }
425
+ }
426
+ }
427
+ },
428
+ "validations": [],
429
+ "calculated": {
430
+ "primaryKey": "_id",
431
+ "hasSuperKey": false
432
+ },
433
+ "user": "6875b871e952f1c779aaf5d2",
434
+ "active": true,
435
+ "__v": 0
436
+ },
437
+ {
438
+ "_id": "aaa000000000000000000004",
439
+ "guid": "01MONGO_USERS_USERS",
440
+ "instanceName": "mongodb",
441
+ "databaseName": "users_db",
442
+ "collectionName": "Users",
443
+ "properties": {
444
+ "_id": "objectId",
445
+ "email": {
446
+ "__type": "string",
447
+ "validations": {
448
+ "required": true,
449
+ "unique": true,
450
+ "email": true
451
+ }
452
+ },
453
+ "password_hash": {
454
+ "__type": "string",
455
+ "validations": {
456
+ "required": true
457
+ },
458
+ "conversions": {
459
+ "hashing": true
460
+ }
461
+ },
462
+ "profile": {
463
+ "first_name": {
464
+ "__type": "string",
465
+ "validations": {
466
+ "required": true
467
+ }
468
+ },
469
+ "last_name": {
470
+ "__type": "string",
471
+ "validations": {
472
+ "required": true
473
+ }
474
+ },
475
+ "phone": {
476
+ "__type": "string"
477
+ },
478
+ "avatar_url": {
479
+ "__type": "string"
480
+ },
481
+ "date_of_birth": {
482
+ "__type": "date"
483
+ }
484
+ },
485
+ "addressList": [
486
+ {
487
+ "type": {
488
+ "__type": "string",
489
+ "validations": { "enum": ["home", "work", "billing", "shipping"] }
490
+ },
491
+ "line1": {
492
+ "__type": "string"
493
+ },
494
+ "line2": {
495
+ "__type": "string"
496
+ },
497
+ "city": {
498
+ "__type": "string"
499
+ },
500
+ "state": {
501
+ "__type": "string"
502
+ },
503
+ "zip": {
504
+ "__type": "string"
505
+ },
506
+ "country": {
507
+ "__type": "string"
508
+ },
509
+ "is_default": {
510
+ "__type": "boolean"
511
+ }
512
+ }
513
+ ],
514
+ "role_id": {
515
+ "__type": "objectId",
516
+ "instance": "mongodb",
517
+ "database": "users_db",
518
+ "collection": "Roles"
519
+ },
520
+ "status": {
521
+ "__type": "string",
522
+ "validations": {
523
+ "required": true,
524
+ "enum": [
525
+ "Active",
526
+ "Inactive",
527
+ "Suspended",
528
+ "Pending"
529
+ ]
530
+ }
531
+ },
532
+ "last_login": {
533
+ "__type": "date"
534
+ },
535
+ "role": {
536
+ "__type": "objectId",
537
+ "isVirtualField": true,
538
+ "instance": "mongodb",
539
+ "database": "users_db",
540
+ "collection": "Roles",
541
+ "s_columnVirtualLinker": "role_id"
542
+ },
543
+ "sessions": {
544
+ "__type": "objectId",
545
+ "isVirtualField": true,
546
+ "instance": "mongodb",
547
+ "database": "users_db",
548
+ "collection": "Sessions",
549
+ "s_columnVirtualLinker": "_id",
550
+ "t_columnVirtualLinker": "user_id"
551
+ },
552
+ "createdAt": {
553
+ "__type": "date",
554
+ "conversions": {
555
+ "defaults": {
556
+ "defaultFun": {
557
+ "code": "()=>{ return new Date(); }",
558
+ "hash": "888888882"
559
+ }
560
+ }
561
+ }
562
+ },
563
+ "updatedAt": {
564
+ "__type": "date",
565
+ "conversions": {
566
+ "conversionFun": {
567
+ "code": "(val, data)=>{ return new Date(); }",
568
+ "hash": "888888883"
569
+ }
570
+ }
571
+ }
572
+ },
573
+ "validations": [],
574
+ "calculated": {
575
+ "primaryKey": "_id",
576
+ "hasSuperKey": false
577
+ },
578
+ "user": "6875b871e952f1c779aaf5d2",
579
+ "active": true,
580
+ "__v": 0
581
+ },
582
+ {
583
+ "_id": "aaa000000000000000000005",
584
+ "guid": "01MONGO_USERS_ROLES",
585
+ "instanceName": "mongodb",
586
+ "databaseName": "users_db",
587
+ "collectionName": "Roles",
588
+ "properties": {
589
+ "_id": "objectId",
590
+ "name": {
591
+ "__type": "string",
592
+ "validations": {
593
+ "required": true,
594
+ "unique": true
595
+ }
596
+ },
597
+ "code": {
598
+ "__type": "string",
599
+ "validations": {
600
+ "required": true,
601
+ "unique": true
602
+ }
603
+ },
604
+ "permissions": {
605
+ "can_read": {
606
+ "__type": "boolean"
607
+ },
608
+ "can_write": {
609
+ "__type": "boolean"
610
+ },
611
+ "can_delete": {
612
+ "__type": "boolean"
613
+ },
614
+ "can_export": {
615
+ "__type": "boolean"
616
+ },
617
+ "can_manage_users": {
618
+ "__type": "boolean"
619
+ }
620
+ },
621
+ "description": {
622
+ "__type": "string"
623
+ },
624
+ "is_system": {
625
+ "__type": "boolean"
626
+ },
627
+ "users": {
628
+ "__type": "objectId",
629
+ "isVirtualField": true,
630
+ "instance": "mongodb",
631
+ "database": "users_db",
632
+ "collection": "Users",
633
+ "s_columnVirtualLinker": "_id",
634
+ "t_columnVirtualLinker": "role_id"
635
+ },
636
+ "createdAt": {
637
+ "__type": "date",
638
+ "conversions": {
639
+ "defaults": {
640
+ "defaultFun": {
641
+ "code": "()=>{ return new Date(); }",
642
+ "hash": "999999991"
643
+ }
644
+ }
645
+ }
646
+ }
647
+ },
648
+ "validations": [],
649
+ "calculated": {
650
+ "primaryKey": "_id",
651
+ "hasSuperKey": false
652
+ },
653
+ "user": "6875b871e952f1c779aaf5d2",
654
+ "active": true,
655
+ "__v": 0
656
+ },
657
+ {
658
+ "_id": "aaa000000000000000000006",
659
+ "guid": "01MONGO_USERS_SESSIONS",
660
+ "instanceName": "mongodb",
661
+ "databaseName": "users_db",
662
+ "collectionName": "Sessions",
663
+ "properties": {
664
+ "_id": "objectId",
665
+ "user_id": {
666
+ "__type": "objectId",
667
+ "instance": "mongodb",
668
+ "database": "users_db",
669
+ "collection": "Users"
670
+ },
671
+ "token": {
672
+ "__type": "string",
673
+ "validations": {
674
+ "required": true,
675
+ "unique": true
676
+ }
677
+ },
678
+ "device": {
679
+ "ip_address": {
680
+ "__type": "string"
681
+ },
682
+ "user_agent": {
683
+ "__type": "string"
684
+ },
685
+ "platform": {
686
+ "__type": "string"
687
+ }
688
+ },
689
+ "expires_at": {
690
+ "__type": "date",
691
+ "validations": {
692
+ "required": true
693
+ }
694
+ },
695
+ "is_revoked": {
696
+ "__type": "boolean",
697
+ "conversions": {
698
+ "defaults": {
699
+ "defaultFun": {
700
+ "code": "()=>{ return false; }",
701
+ "hash": "101010101"
702
+ }
703
+ }
704
+ }
705
+ },
706
+ "user": {
707
+ "__type": "objectId",
708
+ "isVirtualField": true,
709
+ "instance": "mongodb",
710
+ "database": "users_db",
711
+ "collection": "Users",
712
+ "s_columnVirtualLinker": "user_id"
713
+ },
714
+ "createdAt": {
715
+ "__type": "date",
716
+ "conversions": {
717
+ "defaults": {
718
+ "defaultFun": {
719
+ "code": "()=>{ return new Date(); }",
720
+ "hash": "101010102"
721
+ }
722
+ }
723
+ }
724
+ }
725
+ },
726
+ "validations": [],
727
+ "calculated": {
728
+ "primaryKey": "_id",
729
+ "hasSuperKey": false
730
+ },
731
+ "user": "6875b871e952f1c779aaf5d2",
732
+ "active": true,
733
+ "__v": 0
734
+ },
735
+ {
736
+ "_id": "bbb000000000000000000001",
737
+ "guid": "01MYSQL_INVENTORY_WAREHOUSES",
738
+ "instanceName": "mysql",
739
+ "databaseName": "inventory_db",
740
+ "collectionName": "Warehouses",
741
+ "properties": {
742
+ "_id": {
743
+ "__type": "number",
744
+ "isPrimaryKey": true,
745
+ "isAutoIncrementByDB": true
746
+ },
747
+ "code": {
748
+ "__type": "string",
749
+ "validations": {
750
+ "required": true,
751
+ "unique": true,
752
+ "maxLength": 20
753
+ }
754
+ },
755
+ "name": {
756
+ "__type": "string",
757
+ "validations": {
758
+ "required": true,
759
+ "maxLength": 150
760
+ }
761
+ },
762
+ "location": {
763
+ "address": {
764
+ "__type": "string"
765
+ },
766
+ "city": {
767
+ "__type": "string"
768
+ },
769
+ "state": {
770
+ "__type": "string"
771
+ },
772
+ "country": {
773
+ "__type": "string",
774
+ "validations": {
775
+ "required": true
776
+ }
777
+ },
778
+ "coordinates": {
779
+ "lat": {
780
+ "__type": "number"
781
+ },
782
+ "lng": {
783
+ "__type": "number"
784
+ }
785
+ }
786
+ },
787
+ "manager_id": {
788
+ "__type": "objectId",
789
+ "instance": "mongodb",
790
+ "database": "users_db",
791
+ "collection": "Users"
792
+ },
793
+ "capacity_sqm": {
794
+ "__type": "number"
795
+ },
796
+ "is_active": {
797
+ "__type": "boolean",
798
+ "conversions": {
799
+ "defaults": {
800
+ "defaultFun": {
801
+ "code": "()=>{ return true; }",
802
+ "hash": "202020201"
803
+ }
804
+ }
805
+ }
806
+ },
807
+ "manager": {
808
+ "__type": "objectId",
809
+ "isVirtualField": true,
810
+ "instance": "mongodb",
811
+ "database": "users_db",
812
+ "collection": "Users",
813
+ "s_columnVirtualLinker": "manager_id"
814
+ },
815
+ "createdAt": {
816
+ "__type": "date",
817
+ "conversions": {
818
+ "defaults": {
819
+ "defaultFun": {
820
+ "code": "()=>{ return new Date(); }",
821
+ "hash": "202020202"
822
+ }
823
+ }
824
+ }
825
+ }
826
+ },
827
+ "validations": [],
828
+ "calculated": {
829
+ "primaryKey": "_id",
830
+ "hasSuperKey": false
831
+ },
832
+ "user": "6875b871e952f1c779aaf5d2",
833
+ "active": true,
834
+ "__v": 0
835
+ },
836
+ {
837
+ "_id": "bbb000000000000000000002",
838
+ "guid": "01MYSQL_INVENTORY_ITEMS",
839
+ "instanceName": "mysql",
840
+ "databaseName": "inventory_db",
841
+ "collectionName": "InventoryItems",
842
+ "properties": {
843
+ "_id": {
844
+ "__type": "number",
845
+ "isPrimaryKey": true,
846
+ "isAutoIncrementByDB": true
847
+ },
848
+ "product_id": {
849
+ "__type": "objectId",
850
+ "instance": "mongodb",
851
+ "database": "catalog_db",
852
+ "collection": "Products"
853
+ },
854
+ "warehouse_id": {
855
+ "__type": "objectId",
856
+ "instance": "mysql",
857
+ "database": "inventory_db",
858
+ "collection": "Warehouses"
859
+ },
860
+ "quantity": {
861
+ "on_hand": {
862
+ "__type": "number",
863
+ "validations": {
864
+ "required": true,
865
+ "min": 0
866
+ }
867
+ },
868
+ "reserved": {
869
+ "__type": "number",
870
+ "validations": {
871
+ "min": 0
872
+ }
873
+ },
874
+ "available": {
875
+ "__type": "number"
876
+ }
877
+ },
878
+ "reorder": {
879
+ "point": {
880
+ "__type": "number"
881
+ },
882
+ "quantity": {
883
+ "__type": "number"
884
+ }
885
+ },
886
+ "bin_location": {
887
+ "__type": "string"
888
+ },
889
+ "last_counted_at": {
890
+ "__type": "date"
891
+ },
892
+ "product": {
893
+ "__type": "objectId",
894
+ "isVirtualField": true,
895
+ "instance": "mongodb",
896
+ "database": "catalog_db",
897
+ "collection": "Products",
898
+ "s_columnVirtualLinker": "product_id"
899
+ },
900
+ "warehouse": {
901
+ "__type": "objectId",
902
+ "isVirtualField": true,
903
+ "instance": "mysql",
904
+ "database": "inventory_db",
905
+ "collection": "Warehouses",
906
+ "s_columnVirtualLinker": "warehouse_id"
907
+ },
908
+ "updatedAt": {
909
+ "__type": "date",
910
+ "conversions": {
911
+ "conversionFun": {
912
+ "code": "(val, data)=>{ return new Date(); }",
913
+ "hash": "303030301"
914
+ }
915
+ }
916
+ }
917
+ },
918
+ "validations": [],
919
+ "calculated": {
920
+ "primaryKey": "_id",
921
+ "hasSuperKey": false
922
+ },
923
+ "user": "6875b871e952f1c779aaf5d2",
924
+ "active": true,
925
+ "__v": 0
926
+ },
927
+ {
928
+ "_id": "bbb000000000000000000003",
929
+ "guid": "01MYSQL_INVENTORY_STOCKMOVEMENTS",
930
+ "instanceName": "mysql",
931
+ "databaseName": "inventory_db",
932
+ "collectionName": "StockMovements",
933
+ "properties": {
934
+ "_id": {
935
+ "__type": "number",
936
+ "isPrimaryKey": true,
937
+ "isAutoIncrementByDB": true
938
+ },
939
+ "product_id": {
940
+ "__type": "objectId",
941
+ "instance": "mongodb",
942
+ "database": "catalog_db",
943
+ "collection": "Products"
944
+ },
945
+ "warehouse_id": {
946
+ "__type": "objectId",
947
+ "instance": "mysql",
948
+ "database": "inventory_db",
949
+ "collection": "Warehouses"
950
+ },
951
+ "movement_type": {
952
+ "__type": "string",
953
+ "validations": {
954
+ "required": true,
955
+ "enum": [
956
+ "IN",
957
+ "OUT",
958
+ "TRANSFER",
959
+ "ADJUSTMENT",
960
+ "RETURN"
961
+ ]
962
+ }
963
+ },
964
+ "quantity": {
965
+ "__type": "number",
966
+ "validations": {
967
+ "required": true
968
+ }
969
+ },
970
+ "reference": {
971
+ "type": {
972
+ "__type": "string",
973
+ "validations": {
974
+ "enum": [
975
+ "ORDER",
976
+ "PURCHASE",
977
+ "ADJUSTMENT",
978
+ "TRANSFER"
979
+ ]
980
+ }
981
+ },
982
+ "id": {
983
+ "__type": "string"
984
+ }
985
+ },
986
+ "performed_by": {
987
+ "__type": "objectId",
988
+ "instance": "mongodb",
989
+ "database": "users_db",
990
+ "collection": "Users"
991
+ },
992
+ "notes": {
993
+ "__type": "string"
994
+ },
995
+ "product": {
996
+ "__type": "objectId",
997
+ "isVirtualField": true,
998
+ "instance": "mongodb",
999
+ "database": "catalog_db",
1000
+ "collection": "Products",
1001
+ "s_columnVirtualLinker": "product_id"
1002
+ },
1003
+ "warehouse": {
1004
+ "__type": "objectId",
1005
+ "isVirtualField": true,
1006
+ "instance": "mysql",
1007
+ "database": "inventory_db",
1008
+ "collection": "Warehouses",
1009
+ "s_columnVirtualLinker": "warehouse_id"
1010
+ },
1011
+ "performer": {
1012
+ "__type": "objectId",
1013
+ "isVirtualField": true,
1014
+ "instance": "mongodb",
1015
+ "database": "users_db",
1016
+ "collection": "Users",
1017
+ "s_columnVirtualLinker": "performed_by"
1018
+ },
1019
+ "createdAt": {
1020
+ "__type": "date",
1021
+ "conversions": {
1022
+ "defaults": {
1023
+ "defaultFun": {
1024
+ "code": "()=>{ return new Date(); }",
1025
+ "hash": "404040401"
1026
+ }
1027
+ }
1028
+ }
1029
+ }
1030
+ },
1031
+ "validations": [],
1032
+ "calculated": {
1033
+ "primaryKey": "_id",
1034
+ "hasSuperKey": false
1035
+ },
1036
+ "user": "6875b871e952f1c779aaf5d2",
1037
+ "active": true,
1038
+ "__v": 0
1039
+ },
1040
+ {
1041
+ "_id": "bbb000000000000000000004",
1042
+ "guid": "01MYSQL_INVENTORY_PURCHASEORDERS",
1043
+ "instanceName": "mysql",
1044
+ "databaseName": "inventory_db",
1045
+ "collectionName": "PurchaseOrders",
1046
+ "properties": {
1047
+ "_id": {
1048
+ "__type": "number",
1049
+ "isPrimaryKey": true,
1050
+ "isAutoIncrementByDB": true
1051
+ },
1052
+ "po_number": {
1053
+ "__type": "string",
1054
+ "validations": {
1055
+ "required": true,
1056
+ "unique": true
1057
+ }
1058
+ },
1059
+ "supplier_id": {
1060
+ "__type": "objectId",
1061
+ "instance": "mongodb",
1062
+ "database": "catalog_db",
1063
+ "collection": "Suppliers"
1064
+ },
1065
+ "warehouse_id": {
1066
+ "__type": "objectId",
1067
+ "instance": "mysql",
1068
+ "database": "inventory_db",
1069
+ "collection": "Warehouses"
1070
+ },
1071
+ "status": {
1072
+ "__type": "string",
1073
+ "validations": {
1074
+ "required": true,
1075
+ "enum": [
1076
+ "Draft",
1077
+ "Submitted",
1078
+ "Approved",
1079
+ "Received",
1080
+ "Cancelled"
1081
+ ]
1082
+ }
1083
+ },
1084
+ "financials": {
1085
+ "total_amount": {
1086
+ "__type": "number"
1087
+ },
1088
+ "currency": {
1089
+ "__type": "string",
1090
+ "validations": {
1091
+ "enum": [
1092
+ "USD",
1093
+ "EUR",
1094
+ "GBP",
1095
+ "INR"
1096
+ ]
1097
+ }
1098
+ },
1099
+ "tax_amount": {
1100
+ "__type": "number"
1101
+ },
1102
+ "shipping_cost": {
1103
+ "__type": "number"
1104
+ }
1105
+ },
1106
+ "expected_delivery": {
1107
+ "__type": "date"
1108
+ },
1109
+ "approved_by": {
1110
+ "__type": "objectId",
1111
+ "instance": "mongodb",
1112
+ "database": "users_db",
1113
+ "collection": "Users"
1114
+ },
1115
+ "supplier": {
1116
+ "__type": "objectId",
1117
+ "isVirtualField": true,
1118
+ "instance": "mongodb",
1119
+ "database": "catalog_db",
1120
+ "collection": "Suppliers",
1121
+ "s_columnVirtualLinker": "supplier_id"
1122
+ },
1123
+ "warehouse": {
1124
+ "__type": "objectId",
1125
+ "isVirtualField": true,
1126
+ "instance": "mysql",
1127
+ "database": "inventory_db",
1128
+ "collection": "Warehouses",
1129
+ "s_columnVirtualLinker": "warehouse_id"
1130
+ },
1131
+ "approver": {
1132
+ "__type": "objectId",
1133
+ "isVirtualField": true,
1134
+ "instance": "mongodb",
1135
+ "database": "users_db",
1136
+ "collection": "Users",
1137
+ "s_columnVirtualLinker": "approved_by"
1138
+ },
1139
+ "createdAt": {
1140
+ "__type": "date",
1141
+ "conversions": {
1142
+ "defaults": {
1143
+ "defaultFun": {
1144
+ "code": "()=>{ return new Date(); }",
1145
+ "hash": "505050501"
1146
+ }
1147
+ }
1148
+ }
1149
+ },
1150
+ "updatedAt": {
1151
+ "__type": "date",
1152
+ "conversions": {
1153
+ "conversionFun": {
1154
+ "code": "(val, data)=>{ return new Date(); }",
1155
+ "hash": "505050502"
1156
+ }
1157
+ }
1158
+ }
1159
+ },
1160
+ "validations": [],
1161
+ "calculated": {
1162
+ "primaryKey": "_id",
1163
+ "hasSuperKey": false
1164
+ },
1165
+ "user": "6875b871e952f1c779aaf5d2",
1166
+ "active": true,
1167
+ "__v": 0
1168
+ },
1169
+ {
1170
+ "_id": "bbb000000000000000000005",
1171
+ "guid": "01MYSQL_ORDERS_ORDERS",
1172
+ "instanceName": "mysql",
1173
+ "databaseName": "orders_db",
1174
+ "collectionName": "Orders",
1175
+ "properties": {
1176
+ "_id": {
1177
+ "__type": "number",
1178
+ "isPrimaryKey": true,
1179
+ "isAutoIncrementByDB": true
1180
+ },
1181
+ "order_number": {
1182
+ "__type": "string",
1183
+ "validations": {
1184
+ "required": true,
1185
+ "unique": true
1186
+ }
1187
+ },
1188
+ "customer_id": {
1189
+ "__type": "objectId",
1190
+ "instance": "mongodb",
1191
+ "database": "users_db",
1192
+ "collection": "Users"
1193
+ },
1194
+ "status": {
1195
+ "__type": "string",
1196
+ "validations": {
1197
+ "required": true,
1198
+ "enum": [
1199
+ "Pending",
1200
+ "Confirmed",
1201
+ "Processing",
1202
+ "Shipped",
1203
+ "Delivered",
1204
+ "Cancelled",
1205
+ "Refunded"
1206
+ ]
1207
+ }
1208
+ },
1209
+ "financials": {
1210
+ "subtotal": {
1211
+ "__type": "number",
1212
+ "validations": {
1213
+ "required": true,
1214
+ "min": 0
1215
+ }
1216
+ },
1217
+ "tax_amount": {
1218
+ "__type": "number"
1219
+ },
1220
+ "shipping_amount": {
1221
+ "__type": "number"
1222
+ },
1223
+ "discount_amount": {
1224
+ "__type": "number"
1225
+ },
1226
+ "total_amount": {
1227
+ "__type": "number",
1228
+ "validations": {
1229
+ "required": true,
1230
+ "min": 0
1231
+ }
1232
+ },
1233
+ "currency": {
1234
+ "__type": "string",
1235
+ "validations": {
1236
+ "required": true
1237
+ }
1238
+ }
1239
+ },
1240
+ "shipping_address": {
1241
+ "line1": {
1242
+ "__type": "string"
1243
+ },
1244
+ "line2": {
1245
+ "__type": "string"
1246
+ },
1247
+ "city": {
1248
+ "__type": "string"
1249
+ },
1250
+ "state": {
1251
+ "__type": "string"
1252
+ },
1253
+ "zip": {
1254
+ "__type": "string"
1255
+ },
1256
+ "country": {
1257
+ "__type": "string"
1258
+ }
1259
+ },
1260
+ "notes": {
1261
+ "__type": "string"
1262
+ },
1263
+ "customer": {
1264
+ "__type": "objectId",
1265
+ "isVirtualField": true,
1266
+ "instance": "mongodb",
1267
+ "database": "users_db",
1268
+ "collection": "Users",
1269
+ "s_columnVirtualLinker": "customer_id"
1270
+ },
1271
+ "items": {
1272
+ "__type": "objectId",
1273
+ "isVirtualField": true,
1274
+ "instance": "mysql",
1275
+ "database": "orders_db",
1276
+ "collection": "OrderItems",
1277
+ "s_columnVirtualLinker": "_id",
1278
+ "t_columnVirtualLinker": "order_id"
1279
+ },
1280
+ "shipments": {
1281
+ "__type": "objectId",
1282
+ "isVirtualField": true,
1283
+ "instance": "mysql",
1284
+ "database": "orders_db",
1285
+ "collection": "Shipments",
1286
+ "s_columnVirtualLinker": "_id",
1287
+ "t_columnVirtualLinker": "order_id"
1288
+ },
1289
+ "placed_at": {
1290
+ "__type": "date",
1291
+ "conversions": {
1292
+ "defaults": {
1293
+ "defaultFun": {
1294
+ "code": "()=>{ return new Date(); }",
1295
+ "hash": "606060601"
1296
+ }
1297
+ }
1298
+ }
1299
+ },
1300
+ "updatedAt": {
1301
+ "__type": "date",
1302
+ "conversions": {
1303
+ "conversionFun": {
1304
+ "code": "(val, data)=>{ return new Date(); }",
1305
+ "hash": "606060602"
1306
+ }
1307
+ }
1308
+ }
1309
+ },
1310
+ "validations": [],
1311
+ "calculated": {
1312
+ "primaryKey": "_id",
1313
+ "hasSuperKey": false
1314
+ },
1315
+ "user": "6875b871e952f1c779aaf5d2",
1316
+ "active": true,
1317
+ "__v": 0
1318
+ },
1319
+ {
1320
+ "_id": "bbb000000000000000000006",
1321
+ "guid": "01MYSQL_ORDERS_ORDERITEMS",
1322
+ "instanceName": "mysql",
1323
+ "databaseName": "orders_db",
1324
+ "collectionName": "OrderItems",
1325
+ "properties": {
1326
+ "_id": {
1327
+ "__type": "number",
1328
+ "isPrimaryKey": true,
1329
+ "isAutoIncrementByDB": true
1330
+ },
1331
+ "order_id": {
1332
+ "__type": "objectId",
1333
+ "instance": "mysql",
1334
+ "database": "orders_db",
1335
+ "collection": "Orders"
1336
+ },
1337
+ "product_id": {
1338
+ "__type": "objectId",
1339
+ "instance": "mongodb",
1340
+ "database": "catalog_db",
1341
+ "collection": "Products"
1342
+ },
1343
+ "quantity": {
1344
+ "__type": "number",
1345
+ "validations": {
1346
+ "required": true,
1347
+ "min": 1
1348
+ }
1349
+ },
1350
+ "unit_price": {
1351
+ "__type": "number",
1352
+ "validations": {
1353
+ "required": true,
1354
+ "min": 0
1355
+ }
1356
+ },
1357
+ "discount_percent": {
1358
+ "__type": "number",
1359
+ "validations": {
1360
+ "min": 0,
1361
+ "max": 100
1362
+ }
1363
+ },
1364
+ "line_total": {
1365
+ "__type": "number"
1366
+ },
1367
+ "warehouse_id": {
1368
+ "__type": "objectId",
1369
+ "instance": "mysql",
1370
+ "database": "inventory_db",
1371
+ "collection": "Warehouses"
1372
+ },
1373
+ "order": {
1374
+ "__type": "objectId",
1375
+ "isVirtualField": true,
1376
+ "instance": "mysql",
1377
+ "database": "orders_db",
1378
+ "collection": "Orders",
1379
+ "s_columnVirtualLinker": "order_id"
1380
+ },
1381
+ "product": {
1382
+ "__type": "objectId",
1383
+ "isVirtualField": true,
1384
+ "instance": "mongodb",
1385
+ "database": "catalog_db",
1386
+ "collection": "Products",
1387
+ "s_columnVirtualLinker": "product_id"
1388
+ },
1389
+ "warehouse": {
1390
+ "__type": "objectId",
1391
+ "isVirtualField": true,
1392
+ "instance": "mysql",
1393
+ "database": "inventory_db",
1394
+ "collection": "Warehouses",
1395
+ "s_columnVirtualLinker": "warehouse_id"
1396
+ }
1397
+ },
1398
+ "validations": [],
1399
+ "calculated": {
1400
+ "primaryKey": "_id",
1401
+ "hasSuperKey": false
1402
+ },
1403
+ "user": "6875b871e952f1c779aaf5d2",
1404
+ "active": true,
1405
+ "__v": 0
1406
+ },
1407
+ {
1408
+ "_id": "bbb000000000000000000007",
1409
+ "guid": "01MYSQL_ORDERS_SHIPMENTS",
1410
+ "instanceName": "mysql",
1411
+ "databaseName": "orders_db",
1412
+ "collectionName": "Shipments",
1413
+ "properties": {
1414
+ "_id": {
1415
+ "__type": "number",
1416
+ "isPrimaryKey": true,
1417
+ "isAutoIncrementByDB": true
1418
+ },
1419
+ "order_id": {
1420
+ "__type": "objectId",
1421
+ "instance": "mysql",
1422
+ "database": "orders_db",
1423
+ "collection": "Orders"
1424
+ },
1425
+ "tracking_number": {
1426
+ "__type": "string"
1427
+ },
1428
+ "carrier": {
1429
+ "__type": "string",
1430
+ "validations": {
1431
+ "enum": [
1432
+ "FedEx",
1433
+ "UPS",
1434
+ "DHL",
1435
+ "USPS",
1436
+ "Local"
1437
+ ]
1438
+ }
1439
+ },
1440
+ "status": {
1441
+ "__type": "string",
1442
+ "validations": {
1443
+ "required": true,
1444
+ "enum": [
1445
+ "Preparing",
1446
+ "Dispatched",
1447
+ "In Transit",
1448
+ "Out for Delivery",
1449
+ "Delivered",
1450
+ "Failed"
1451
+ ]
1452
+ }
1453
+ },
1454
+ "dates": {
1455
+ "shipped_at": {
1456
+ "__type": "date"
1457
+ },
1458
+ "estimated_delivery": {
1459
+ "__type": "date"
1460
+ },
1461
+ "delivered_at": {
1462
+ "__type": "date"
1463
+ }
1464
+ },
1465
+ "warehouse_id": {
1466
+ "__type": "objectId",
1467
+ "instance": "mysql",
1468
+ "database": "inventory_db",
1469
+ "collection": "Warehouses"
1470
+ },
1471
+ "order": {
1472
+ "__type": "objectId",
1473
+ "isVirtualField": true,
1474
+ "instance": "mysql",
1475
+ "database": "orders_db",
1476
+ "collection": "Orders",
1477
+ "s_columnVirtualLinker": "order_id"
1478
+ },
1479
+ "warehouse": {
1480
+ "__type": "objectId",
1481
+ "isVirtualField": true,
1482
+ "instance": "mysql",
1483
+ "database": "inventory_db",
1484
+ "collection": "Warehouses",
1485
+ "s_columnVirtualLinker": "warehouse_id"
1486
+ },
1487
+ "createdAt": {
1488
+ "__type": "date",
1489
+ "conversions": {
1490
+ "defaults": {
1491
+ "defaultFun": {
1492
+ "code": "()=>{ return new Date(); }",
1493
+ "hash": "707070701"
1494
+ }
1495
+ }
1496
+ }
1497
+ }
1498
+ },
1499
+ "validations": [],
1500
+ "calculated": {
1501
+ "primaryKey": "_id",
1502
+ "hasSuperKey": false
1503
+ },
1504
+ "user": "6875b871e952f1c779aaf5d2",
1505
+ "active": true,
1506
+ "__v": 0
1507
+ },
1508
+ {
1509
+ "_id": "ccc000000000000000000001",
1510
+ "guid": "01PG_ANALYTICS_CUSTOMERMETRICS",
1511
+ "instanceName": "postgresql",
1512
+ "databaseName": "analytics_db",
1513
+ "collectionName": "CustomerMetrics",
1514
+ "properties": {
1515
+ "_id": {
1516
+ "__type": "number",
1517
+ "isPrimaryKey": true,
1518
+ "isAutoIncrementByDB": true
1519
+ },
1520
+ "customer_id": {
1521
+ "__type": "objectId",
1522
+ "instance": "mongodb",
1523
+ "database": "users_db",
1524
+ "collection": "Users"
1525
+ },
1526
+ "orders": {
1527
+ "total_orders": {
1528
+ "__type": "number"
1529
+ },
1530
+ "total_spent": {
1531
+ "__type": "number"
1532
+ },
1533
+ "avg_order_value": {
1534
+ "__type": "number"
1535
+ },
1536
+ "first_order_at": {
1537
+ "__type": "date"
1538
+ },
1539
+ "last_order_at": {
1540
+ "__type": "date"
1541
+ }
1542
+ },
1543
+ "lifetime_value": {
1544
+ "__type": "number"
1545
+ },
1546
+ "churn_risk_score": {
1547
+ "__type": "number",
1548
+ "validations": {
1549
+ "min": 0,
1550
+ "max": 1
1551
+ }
1552
+ },
1553
+ "segment": {
1554
+ "__type": "string",
1555
+ "validations": {
1556
+ "enum": [
1557
+ "VIP",
1558
+ "Regular",
1559
+ "Occasional",
1560
+ "At Risk",
1561
+ "Churned"
1562
+ ]
1563
+ }
1564
+ },
1565
+ "customer": {
1566
+ "__type": "objectId",
1567
+ "isVirtualField": true,
1568
+ "instance": "mongodb",
1569
+ "database": "users_db",
1570
+ "collection": "Users",
1571
+ "s_columnVirtualLinker": "customer_id"
1572
+ },
1573
+ "computed_at": {
1574
+ "__type": "date",
1575
+ "conversions": {
1576
+ "defaults": {
1577
+ "defaultFun": {
1578
+ "code": "()=>{ return new Date(); }",
1579
+ "hash": "808080801"
1580
+ }
1581
+ }
1582
+ }
1583
+ }
1584
+ },
1585
+ "validations": [],
1586
+ "calculated": {
1587
+ "primaryKey": "_id",
1588
+ "hasSuperKey": false
1589
+ },
1590
+ "user": "6875b871e952f1c779aaf5d2",
1591
+ "active": true,
1592
+ "__v": 0
1593
+ },
1594
+ {
1595
+ "_id": "ccc000000000000000000002",
1596
+ "guid": "01PG_ANALYTICS_SALESREPORTS",
1597
+ "instanceName": "postgresql",
1598
+ "databaseName": "analytics_db",
1599
+ "collectionName": "SalesReports",
1600
+ "properties": {
1601
+ "_id": {
1602
+ "__type": "number",
1603
+ "isPrimaryKey": true,
1604
+ "isAutoIncrementByDB": true
1605
+ },
1606
+ "report_date": {
1607
+ "__type": "date",
1608
+ "validations": {
1609
+ "required": true
1610
+ }
1611
+ },
1612
+ "period_type": {
1613
+ "__type": "string",
1614
+ "validations": {
1615
+ "required": true,
1616
+ "enum": [
1617
+ "daily",
1618
+ "weekly",
1619
+ "monthly",
1620
+ "quarterly",
1621
+ "yearly"
1622
+ ]
1623
+ }
1624
+ },
1625
+ "revenue": {
1626
+ "total_orders": {
1627
+ "__type": "number"
1628
+ },
1629
+ "total_revenue": {
1630
+ "__type": "number"
1631
+ },
1632
+ "total_cost": {
1633
+ "__type": "number"
1634
+ },
1635
+ "gross_profit": {
1636
+ "__type": "number"
1637
+ }
1638
+ },
1639
+ "customers": {
1640
+ "new_customers": {
1641
+ "__type": "number"
1642
+ },
1643
+ "returning_customers": {
1644
+ "__type": "number"
1645
+ }
1646
+ },
1647
+ "top_product_id": {
1648
+ "__type": "objectId",
1649
+ "instance": "mongodb",
1650
+ "database": "catalog_db",
1651
+ "collection": "Products"
1652
+ },
1653
+ "top_category_id": {
1654
+ "__type": "objectId",
1655
+ "instance": "mongodb",
1656
+ "database": "catalog_db",
1657
+ "collection": "Categories"
1658
+ },
1659
+ "generated_by": {
1660
+ "__type": "objectId",
1661
+ "instance": "mongodb",
1662
+ "database": "users_db",
1663
+ "collection": "Users"
1664
+ },
1665
+ "top_product": {
1666
+ "__type": "objectId",
1667
+ "isVirtualField": true,
1668
+ "instance": "mongodb",
1669
+ "database": "catalog_db",
1670
+ "collection": "Products",
1671
+ "s_columnVirtualLinker": "top_product_id"
1672
+ },
1673
+ "top_category": {
1674
+ "__type": "objectId",
1675
+ "isVirtualField": true,
1676
+ "instance": "mongodb",
1677
+ "database": "catalog_db",
1678
+ "collection": "Categories",
1679
+ "s_columnVirtualLinker": "top_category_id"
1680
+ },
1681
+ "generator": {
1682
+ "__type": "objectId",
1683
+ "isVirtualField": true,
1684
+ "instance": "mongodb",
1685
+ "database": "users_db",
1686
+ "collection": "Users",
1687
+ "s_columnVirtualLinker": "generated_by"
1688
+ },
1689
+ "createdAt": {
1690
+ "__type": "date",
1691
+ "conversions": {
1692
+ "defaults": {
1693
+ "defaultFun": {
1694
+ "code": "()=>{ return new Date(); }",
1695
+ "hash": "909090901"
1696
+ }
1697
+ }
1698
+ }
1699
+ }
1700
+ },
1701
+ "validations": [],
1702
+ "calculated": {
1703
+ "primaryKey": "_id",
1704
+ "hasSuperKey": false
1705
+ },
1706
+ "user": "6875b871e952f1c779aaf5d2",
1707
+ "active": true,
1708
+ "__v": 0
1709
+ },
1710
+ {
1711
+ "_id": "ccc000000000000000000003",
1712
+ "guid": "01PG_ANALYTICS_PRODUCTPERFORMANCE",
1713
+ "instanceName": "postgresql",
1714
+ "databaseName": "analytics_db",
1715
+ "collectionName": "ProductPerformance",
1716
+ "properties": {
1717
+ "_id": {
1718
+ "__type": "number",
1719
+ "isPrimaryKey": true,
1720
+ "isAutoIncrementByDB": true
1721
+ },
1722
+ "product_id": {
1723
+ "__type": "objectId",
1724
+ "instance": "mongodb",
1725
+ "database": "catalog_db",
1726
+ "collection": "Products"
1727
+ },
1728
+ "period": {
1729
+ "start": {
1730
+ "__type": "date",
1731
+ "validations": {
1732
+ "required": true
1733
+ }
1734
+ },
1735
+ "end": {
1736
+ "__type": "date",
1737
+ "validations": {
1738
+ "required": true
1739
+ }
1740
+ }
1741
+ },
1742
+ "sales": {
1743
+ "units_sold": {
1744
+ "__type": "number"
1745
+ },
1746
+ "revenue": {
1747
+ "__type": "number"
1748
+ },
1749
+ "returns_count": {
1750
+ "__type": "number"
1751
+ }
1752
+ },
1753
+ "ratings": {
1754
+ "avg_rating": {
1755
+ "__type": "number",
1756
+ "validations": {
1757
+ "min": 0,
1758
+ "max": 5
1759
+ }
1760
+ },
1761
+ "review_count": {
1762
+ "__type": "number"
1763
+ }
1764
+ },
1765
+ "stock_turnover_rate": {
1766
+ "__type": "number"
1767
+ },
1768
+ "product": {
1769
+ "__type": "objectId",
1770
+ "isVirtualField": true,
1771
+ "instance": "mongodb",
1772
+ "database": "catalog_db",
1773
+ "collection": "Products",
1774
+ "s_columnVirtualLinker": "product_id"
1775
+ },
1776
+ "computed_at": {
1777
+ "__type": "date",
1778
+ "conversions": {
1779
+ "defaults": {
1780
+ "defaultFun": {
1781
+ "code": "()=>{ return new Date(); }",
1782
+ "hash": "121212121"
1783
+ }
1784
+ }
1785
+ }
1786
+ }
1787
+ },
1788
+ "validations": [],
1789
+ "calculated": {
1790
+ "primaryKey": "_id",
1791
+ "hasSuperKey": false
1792
+ },
1793
+ "user": "6875b871e952f1c779aaf5d2",
1794
+ "active": true,
1795
+ "__v": 0
1796
+ },
1797
+ {
1798
+ "_id": "ccc000000000000000000004",
1799
+ "guid": "01PG_ANALYTICS_INVENTORYSNAPSHOTS",
1800
+ "instanceName": "postgresql",
1801
+ "databaseName": "analytics_db",
1802
+ "collectionName": "InventorySnapshots",
1803
+ "properties": {
1804
+ "_id": {
1805
+ "__type": "number",
1806
+ "isPrimaryKey": true,
1807
+ "isAutoIncrementByDB": true
1808
+ },
1809
+ "snapshot_date": {
1810
+ "__type": "date",
1811
+ "validations": {
1812
+ "required": true
1813
+ }
1814
+ },
1815
+ "product_id": {
1816
+ "__type": "objectId",
1817
+ "instance": "mongodb",
1818
+ "database": "catalog_db",
1819
+ "collection": "Products"
1820
+ },
1821
+ "warehouse_id": {
1822
+ "__type": "objectId",
1823
+ "instance": "mysql",
1824
+ "database": "inventory_db",
1825
+ "collection": "Warehouses"
1826
+ },
1827
+ "stock": {
1828
+ "quantity_on_hand": {
1829
+ "__type": "number"
1830
+ },
1831
+ "quantity_reserved": {
1832
+ "__type": "number"
1833
+ },
1834
+ "stock_value": {
1835
+ "__type": "number"
1836
+ },
1837
+ "days_of_supply": {
1838
+ "__type": "number"
1839
+ }
1840
+ },
1841
+ "flags": {
1842
+ "is_low_stock": {
1843
+ "__type": "boolean"
1844
+ },
1845
+ "is_out_of_stock": {
1846
+ "__type": "boolean"
1847
+ }
1848
+ },
1849
+ "product": {
1850
+ "__type": "objectId",
1851
+ "isVirtualField": true,
1852
+ "instance": "mongodb",
1853
+ "database": "catalog_db",
1854
+ "collection": "Products",
1855
+ "s_columnVirtualLinker": "product_id"
1856
+ },
1857
+ "warehouse": {
1858
+ "__type": "objectId",
1859
+ "isVirtualField": true,
1860
+ "instance": "mysql",
1861
+ "database": "inventory_db",
1862
+ "collection": "Warehouses",
1863
+ "s_columnVirtualLinker": "warehouse_id"
1864
+ },
1865
+ "createdAt": {
1866
+ "__type": "date",
1867
+ "conversions": {
1868
+ "defaults": {
1869
+ "defaultFun": {
1870
+ "code": "()=>{ return new Date(); }",
1871
+ "hash": "131313131"
1872
+ }
1873
+ }
1874
+ }
1875
+ }
1876
+ },
1877
+ "validations": [],
1878
+ "calculated": {
1879
+ "primaryKey": "_id",
1880
+ "hasSuperKey": false
1881
+ },
1882
+ "user": "6875b871e952f1c779aaf5d2",
1883
+ "active": true,
1884
+ "__v": 0
1885
+ }
1886
+ ]