dbgate-datalib 5.0.8 → 5.1.1

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,1775 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chinookDbInfo = void 0;
4
+ exports.chinookDbInfo = {
5
+ tables: [
6
+ {
7
+ pureName: 'Customer',
8
+ tableRowCount: '59',
9
+ modifyDate: '2022-04-09 09:26:46',
10
+ objectId: 'Customer',
11
+ contentHash: '2022-04-09 09:26:46',
12
+ columns: [
13
+ {
14
+ pureName: 'Customer',
15
+ notNull: true,
16
+ autoIncrement: true,
17
+ columnName: 'CustomerId',
18
+ columnComment: '',
19
+ dataType: 'int',
20
+ defaultValue: null,
21
+ isUnsigned: false,
22
+ isZerofill: false,
23
+ },
24
+ {
25
+ pureName: 'Customer',
26
+ notNull: true,
27
+ autoIncrement: false,
28
+ columnName: 'FirstName',
29
+ columnComment: '',
30
+ dataType: 'varchar(40)',
31
+ defaultValue: null,
32
+ isUnsigned: false,
33
+ isZerofill: false,
34
+ },
35
+ {
36
+ pureName: 'Customer',
37
+ notNull: true,
38
+ autoIncrement: false,
39
+ columnName: 'LastName',
40
+ columnComment: '',
41
+ dataType: 'varchar(20)',
42
+ defaultValue: null,
43
+ isUnsigned: false,
44
+ isZerofill: false,
45
+ },
46
+ {
47
+ pureName: 'Customer',
48
+ notNull: false,
49
+ autoIncrement: false,
50
+ columnName: 'Company',
51
+ columnComment: '',
52
+ dataType: 'varchar(80)',
53
+ defaultValue: 'NULL',
54
+ isUnsigned: false,
55
+ isZerofill: false,
56
+ },
57
+ {
58
+ pureName: 'Customer',
59
+ notNull: false,
60
+ autoIncrement: false,
61
+ columnName: 'Address',
62
+ columnComment: '',
63
+ dataType: 'varchar(70)',
64
+ defaultValue: 'NULL',
65
+ isUnsigned: false,
66
+ isZerofill: false,
67
+ },
68
+ {
69
+ pureName: 'Customer',
70
+ notNull: false,
71
+ autoIncrement: false,
72
+ columnName: 'City',
73
+ columnComment: '',
74
+ dataType: 'varchar(40)',
75
+ defaultValue: 'NULL',
76
+ isUnsigned: false,
77
+ isZerofill: false,
78
+ },
79
+ {
80
+ pureName: 'Customer',
81
+ notNull: false,
82
+ autoIncrement: false,
83
+ columnName: 'State',
84
+ columnComment: '',
85
+ dataType: 'varchar(40)',
86
+ defaultValue: 'NULL',
87
+ isUnsigned: false,
88
+ isZerofill: false,
89
+ },
90
+ {
91
+ pureName: 'Customer',
92
+ notNull: false,
93
+ autoIncrement: false,
94
+ columnName: 'Country',
95
+ columnComment: '',
96
+ dataType: 'varchar(40)',
97
+ defaultValue: 'NULL',
98
+ isUnsigned: false,
99
+ isZerofill: false,
100
+ },
101
+ {
102
+ pureName: 'Customer',
103
+ notNull: false,
104
+ autoIncrement: false,
105
+ columnName: 'PostalCode',
106
+ columnComment: '',
107
+ dataType: 'varchar(10)',
108
+ defaultValue: 'NULL',
109
+ isUnsigned: false,
110
+ isZerofill: false,
111
+ },
112
+ {
113
+ pureName: 'Customer',
114
+ notNull: false,
115
+ autoIncrement: false,
116
+ columnName: 'Phone',
117
+ columnComment: '',
118
+ dataType: 'varchar(24)',
119
+ defaultValue: 'NULL',
120
+ isUnsigned: false,
121
+ isZerofill: false,
122
+ },
123
+ {
124
+ pureName: 'Customer',
125
+ notNull: false,
126
+ autoIncrement: false,
127
+ columnName: 'Fax',
128
+ columnComment: '',
129
+ dataType: 'varchar(24)',
130
+ defaultValue: 'NULL',
131
+ isUnsigned: false,
132
+ isZerofill: false,
133
+ },
134
+ {
135
+ pureName: 'Customer',
136
+ notNull: true,
137
+ autoIncrement: false,
138
+ columnName: 'Email',
139
+ columnComment: '',
140
+ dataType: 'varchar(60)',
141
+ defaultValue: null,
142
+ isUnsigned: false,
143
+ isZerofill: false,
144
+ },
145
+ {
146
+ pureName: 'Customer',
147
+ notNull: false,
148
+ autoIncrement: false,
149
+ columnName: 'SupportRepId',
150
+ columnComment: '',
151
+ dataType: 'int',
152
+ defaultValue: 'NULL',
153
+ isUnsigned: false,
154
+ isZerofill: false,
155
+ },
156
+ ],
157
+ primaryKey: {
158
+ constraintName: 'PRIMARY',
159
+ pureName: 'Customer',
160
+ constraintType: 'primaryKey',
161
+ columns: [
162
+ {
163
+ columnName: 'CustomerId',
164
+ },
165
+ ],
166
+ },
167
+ foreignKeys: [
168
+ {
169
+ constraintName: 'FK_CustomerSupportRepId',
170
+ constraintType: 'foreignKey',
171
+ pureName: 'Customer',
172
+ refTableName: 'Employee',
173
+ updateAction: 'NO ACTION',
174
+ deleteAction: 'NO ACTION',
175
+ columns: [
176
+ {
177
+ columnName: 'SupportRepId',
178
+ refColumnName: 'EmployeeId',
179
+ },
180
+ ],
181
+ },
182
+ ],
183
+ indexes: [
184
+ {
185
+ constraintName: 'IFK_CustomerSupportRepId',
186
+ indexType: 'BTREE',
187
+ isUnique: false,
188
+ columns: [
189
+ {
190
+ columnName: 'SupportRepId',
191
+ },
192
+ ],
193
+ pureName: 'Customer',
194
+ constraintType: 'index',
195
+ },
196
+ ],
197
+ uniques: [],
198
+ engine: 'mariadb@dbgate-plugin-mysql',
199
+ dependencies: [
200
+ {
201
+ constraintName: 'FK_InvoiceCustomerId',
202
+ constraintType: 'foreignKey',
203
+ pureName: 'Invoice',
204
+ refTableName: 'Customer',
205
+ updateAction: 'NO ACTION',
206
+ deleteAction: 'NO ACTION',
207
+ columns: [
208
+ {
209
+ columnName: 'CustomerId',
210
+ refColumnName: 'CustomerId',
211
+ },
212
+ ],
213
+ },
214
+ ],
215
+ objectTypeField: 'tables',
216
+ checks: [],
217
+ },
218
+ {
219
+ pureName: 'Track',
220
+ tableRowCount: '3483',
221
+ modifyDate: '2022-04-09 09:26:46',
222
+ objectId: 'Track',
223
+ contentHash: '2022-04-09 09:26:46',
224
+ columns: [
225
+ {
226
+ pureName: 'Track',
227
+ notNull: true,
228
+ autoIncrement: true,
229
+ columnName: 'TrackId',
230
+ columnComment: '',
231
+ dataType: 'int',
232
+ defaultValue: null,
233
+ isUnsigned: false,
234
+ isZerofill: false,
235
+ },
236
+ {
237
+ pureName: 'Track',
238
+ notNull: true,
239
+ autoIncrement: false,
240
+ columnName: 'Name',
241
+ columnComment: '',
242
+ dataType: 'varchar(200)',
243
+ defaultValue: null,
244
+ isUnsigned: false,
245
+ isZerofill: false,
246
+ },
247
+ {
248
+ pureName: 'Track',
249
+ notNull: false,
250
+ autoIncrement: false,
251
+ columnName: 'AlbumId',
252
+ columnComment: '',
253
+ dataType: 'int',
254
+ defaultValue: 'NULL',
255
+ isUnsigned: false,
256
+ isZerofill: false,
257
+ },
258
+ {
259
+ pureName: 'Track',
260
+ notNull: true,
261
+ autoIncrement: false,
262
+ columnName: 'MediaTypeId',
263
+ columnComment: '',
264
+ dataType: 'int',
265
+ defaultValue: null,
266
+ isUnsigned: false,
267
+ isZerofill: false,
268
+ },
269
+ {
270
+ pureName: 'Track',
271
+ notNull: false,
272
+ autoIncrement: false,
273
+ columnName: 'GenreId',
274
+ columnComment: '',
275
+ dataType: 'int',
276
+ defaultValue: 'NULL',
277
+ isUnsigned: false,
278
+ isZerofill: false,
279
+ },
280
+ {
281
+ pureName: 'Track',
282
+ notNull: false,
283
+ autoIncrement: false,
284
+ columnName: 'Composer',
285
+ columnComment: '',
286
+ dataType: 'varchar(220)',
287
+ defaultValue: 'NULL',
288
+ isUnsigned: false,
289
+ isZerofill: false,
290
+ },
291
+ {
292
+ pureName: 'Track',
293
+ notNull: true,
294
+ autoIncrement: false,
295
+ columnName: 'Milliseconds',
296
+ columnComment: '',
297
+ dataType: 'int',
298
+ defaultValue: null,
299
+ isUnsigned: false,
300
+ isZerofill: false,
301
+ },
302
+ {
303
+ pureName: 'Track',
304
+ notNull: false,
305
+ autoIncrement: false,
306
+ columnName: 'Bytes',
307
+ columnComment: '',
308
+ dataType: 'int',
309
+ defaultValue: 'NULL',
310
+ isUnsigned: false,
311
+ isZerofill: false,
312
+ },
313
+ {
314
+ pureName: 'Track',
315
+ notNull: true,
316
+ autoIncrement: false,
317
+ columnName: 'UnitPrice',
318
+ columnComment: '',
319
+ dataType: 'decimal(10,2)',
320
+ defaultValue: null,
321
+ isUnsigned: false,
322
+ isZerofill: false,
323
+ },
324
+ ],
325
+ primaryKey: {
326
+ constraintName: 'PRIMARY',
327
+ pureName: 'Track',
328
+ constraintType: 'primaryKey',
329
+ columns: [
330
+ {
331
+ columnName: 'TrackId',
332
+ },
333
+ ],
334
+ },
335
+ foreignKeys: [
336
+ {
337
+ constraintName: 'FK_TrackMediaTypeId',
338
+ constraintType: 'foreignKey',
339
+ pureName: 'Track',
340
+ refTableName: 'MediaType',
341
+ updateAction: 'NO ACTION',
342
+ deleteAction: 'NO ACTION',
343
+ columns: [
344
+ {
345
+ columnName: 'MediaTypeId',
346
+ refColumnName: 'MediaTypeId',
347
+ },
348
+ ],
349
+ },
350
+ {
351
+ constraintName: 'FK_TrackAlbumId',
352
+ constraintType: 'foreignKey',
353
+ pureName: 'Track',
354
+ refTableName: 'Album',
355
+ updateAction: 'NO ACTION',
356
+ deleteAction: 'NO ACTION',
357
+ columns: [
358
+ {
359
+ columnName: 'AlbumId',
360
+ refColumnName: 'AlbumId',
361
+ },
362
+ ],
363
+ },
364
+ {
365
+ constraintName: 'FK_TrackGenreId',
366
+ constraintType: 'foreignKey',
367
+ pureName: 'Track',
368
+ refTableName: 'Genre',
369
+ updateAction: 'NO ACTION',
370
+ deleteAction: 'NO ACTION',
371
+ columns: [
372
+ {
373
+ columnName: 'GenreId',
374
+ refColumnName: 'GenreId',
375
+ },
376
+ ],
377
+ },
378
+ ],
379
+ indexes: [
380
+ {
381
+ constraintName: 'IFK_TrackGenreId',
382
+ indexType: 'BTREE',
383
+ isUnique: false,
384
+ columns: [
385
+ {
386
+ columnName: 'GenreId',
387
+ },
388
+ ],
389
+ pureName: 'Track',
390
+ constraintType: 'index',
391
+ },
392
+ {
393
+ constraintName: 'IFK_TrackMediaTypeId',
394
+ indexType: 'BTREE',
395
+ isUnique: false,
396
+ columns: [
397
+ {
398
+ columnName: 'MediaTypeId',
399
+ },
400
+ ],
401
+ pureName: 'Track',
402
+ constraintType: 'index',
403
+ },
404
+ {
405
+ constraintName: 'IFK_TrackAlbumId',
406
+ indexType: 'BTREE',
407
+ isUnique: false,
408
+ columns: [
409
+ {
410
+ columnName: 'AlbumId',
411
+ },
412
+ ],
413
+ pureName: 'Track',
414
+ constraintType: 'index',
415
+ },
416
+ ],
417
+ uniques: [],
418
+ engine: 'mariadb@dbgate-plugin-mysql',
419
+ dependencies: [
420
+ {
421
+ constraintName: 'FK_InvoiceLineTrackId',
422
+ constraintType: 'foreignKey',
423
+ pureName: 'InvoiceLine',
424
+ refTableName: 'Track',
425
+ updateAction: 'NO ACTION',
426
+ deleteAction: 'NO ACTION',
427
+ columns: [
428
+ {
429
+ columnName: 'TrackId',
430
+ refColumnName: 'TrackId',
431
+ },
432
+ ],
433
+ },
434
+ {
435
+ constraintName: 'FK_PlaylistTrackTrackId',
436
+ constraintType: 'foreignKey',
437
+ pureName: 'PlaylistTrack',
438
+ refTableName: 'Track',
439
+ updateAction: 'NO ACTION',
440
+ deleteAction: 'NO ACTION',
441
+ columns: [
442
+ {
443
+ columnName: 'TrackId',
444
+ refColumnName: 'TrackId',
445
+ },
446
+ ],
447
+ },
448
+ ],
449
+ objectTypeField: 'tables',
450
+ checks: [],
451
+ },
452
+ {
453
+ pureName: 'InvoiceLine',
454
+ tableRowCount: '2240',
455
+ modifyDate: '2022-04-09 09:26:46',
456
+ objectId: 'InvoiceLine',
457
+ contentHash: '2022-04-09 09:26:46',
458
+ columns: [
459
+ {
460
+ pureName: 'InvoiceLine',
461
+ notNull: true,
462
+ autoIncrement: true,
463
+ columnName: 'InvoiceLineId',
464
+ columnComment: '',
465
+ dataType: 'int',
466
+ defaultValue: null,
467
+ isUnsigned: false,
468
+ isZerofill: false,
469
+ },
470
+ {
471
+ pureName: 'InvoiceLine',
472
+ notNull: true,
473
+ autoIncrement: false,
474
+ columnName: 'InvoiceId',
475
+ columnComment: '',
476
+ dataType: 'int',
477
+ defaultValue: null,
478
+ isUnsigned: false,
479
+ isZerofill: false,
480
+ },
481
+ {
482
+ pureName: 'InvoiceLine',
483
+ notNull: true,
484
+ autoIncrement: false,
485
+ columnName: 'TrackId',
486
+ columnComment: '',
487
+ dataType: 'int',
488
+ defaultValue: null,
489
+ isUnsigned: false,
490
+ isZerofill: false,
491
+ },
492
+ {
493
+ pureName: 'InvoiceLine',
494
+ notNull: true,
495
+ autoIncrement: false,
496
+ columnName: 'UnitPrice',
497
+ columnComment: '',
498
+ dataType: 'decimal(10,2)',
499
+ defaultValue: null,
500
+ isUnsigned: false,
501
+ isZerofill: false,
502
+ },
503
+ {
504
+ pureName: 'InvoiceLine',
505
+ notNull: true,
506
+ autoIncrement: false,
507
+ columnName: 'Quantity',
508
+ columnComment: '',
509
+ dataType: 'int',
510
+ defaultValue: null,
511
+ isUnsigned: false,
512
+ isZerofill: false,
513
+ },
514
+ ],
515
+ primaryKey: {
516
+ constraintName: 'PRIMARY',
517
+ pureName: 'InvoiceLine',
518
+ constraintType: 'primaryKey',
519
+ columns: [
520
+ {
521
+ columnName: 'InvoiceLineId',
522
+ },
523
+ ],
524
+ },
525
+ foreignKeys: [
526
+ {
527
+ constraintName: 'FK_InvoiceLineInvoiceId',
528
+ constraintType: 'foreignKey',
529
+ pureName: 'InvoiceLine',
530
+ refTableName: 'Invoice',
531
+ updateAction: 'NO ACTION',
532
+ deleteAction: 'NO ACTION',
533
+ columns: [
534
+ {
535
+ columnName: 'InvoiceId',
536
+ refColumnName: 'InvoiceId',
537
+ },
538
+ ],
539
+ },
540
+ {
541
+ constraintName: 'FK_InvoiceLineTrackId',
542
+ constraintType: 'foreignKey',
543
+ pureName: 'InvoiceLine',
544
+ refTableName: 'Track',
545
+ updateAction: 'NO ACTION',
546
+ deleteAction: 'NO ACTION',
547
+ columns: [
548
+ {
549
+ columnName: 'TrackId',
550
+ refColumnName: 'TrackId',
551
+ },
552
+ ],
553
+ },
554
+ ],
555
+ indexes: [
556
+ {
557
+ constraintName: 'IFK_InvoiceLineTrackId',
558
+ indexType: 'BTREE',
559
+ isUnique: false,
560
+ columns: [
561
+ {
562
+ columnName: 'TrackId',
563
+ },
564
+ ],
565
+ pureName: 'InvoiceLine',
566
+ constraintType: 'index',
567
+ },
568
+ {
569
+ constraintName: 'IFK_InvoiceLineInvoiceId',
570
+ indexType: 'BTREE',
571
+ isUnique: false,
572
+ columns: [
573
+ {
574
+ columnName: 'InvoiceId',
575
+ },
576
+ ],
577
+ pureName: 'InvoiceLine',
578
+ constraintType: 'index',
579
+ },
580
+ ],
581
+ uniques: [],
582
+ engine: 'mariadb@dbgate-plugin-mysql',
583
+ dependencies: [],
584
+ objectTypeField: 'tables',
585
+ checks: [],
586
+ },
587
+ {
588
+ pureName: 'Album',
589
+ tableRowCount: '347',
590
+ modifyDate: '2022-04-09 09:26:46',
591
+ objectId: 'Album',
592
+ contentHash: '2022-04-09 09:26:46',
593
+ columns: [
594
+ {
595
+ pureName: 'Album',
596
+ notNull: true,
597
+ autoIncrement: true,
598
+ columnName: 'AlbumId',
599
+ columnComment: '',
600
+ dataType: 'int',
601
+ defaultValue: null,
602
+ isUnsigned: false,
603
+ isZerofill: false,
604
+ },
605
+ {
606
+ pureName: 'Album',
607
+ notNull: true,
608
+ autoIncrement: false,
609
+ columnName: 'Title',
610
+ columnComment: '',
611
+ dataType: 'varchar(160)',
612
+ defaultValue: null,
613
+ isUnsigned: false,
614
+ isZerofill: false,
615
+ },
616
+ {
617
+ pureName: 'Album',
618
+ notNull: true,
619
+ autoIncrement: false,
620
+ columnName: 'ArtistId',
621
+ columnComment: '',
622
+ dataType: 'int',
623
+ defaultValue: null,
624
+ isUnsigned: false,
625
+ isZerofill: false,
626
+ },
627
+ ],
628
+ primaryKey: {
629
+ constraintName: 'PRIMARY',
630
+ pureName: 'Album',
631
+ constraintType: 'primaryKey',
632
+ columns: [
633
+ {
634
+ columnName: 'AlbumId',
635
+ },
636
+ ],
637
+ },
638
+ foreignKeys: [
639
+ {
640
+ constraintName: 'FK_AlbumArtistId',
641
+ constraintType: 'foreignKey',
642
+ pureName: 'Album',
643
+ refTableName: 'Artist',
644
+ updateAction: 'NO ACTION',
645
+ deleteAction: 'NO ACTION',
646
+ columns: [
647
+ {
648
+ columnName: 'ArtistId',
649
+ refColumnName: 'ArtistId',
650
+ },
651
+ ],
652
+ },
653
+ ],
654
+ indexes: [
655
+ {
656
+ constraintName: 'IFK_AlbumArtistId',
657
+ indexType: 'BTREE',
658
+ isUnique: false,
659
+ columns: [
660
+ {
661
+ columnName: 'ArtistId',
662
+ },
663
+ ],
664
+ pureName: 'Album',
665
+ constraintType: 'index',
666
+ },
667
+ ],
668
+ uniques: [],
669
+ engine: 'mariadb@dbgate-plugin-mysql',
670
+ dependencies: [
671
+ {
672
+ constraintName: 'FK_TrackAlbumId',
673
+ constraintType: 'foreignKey',
674
+ pureName: 'Track',
675
+ refTableName: 'Album',
676
+ updateAction: 'NO ACTION',
677
+ deleteAction: 'NO ACTION',
678
+ columns: [
679
+ {
680
+ columnName: 'AlbumId',
681
+ refColumnName: 'AlbumId',
682
+ },
683
+ ],
684
+ },
685
+ ],
686
+ objectTypeField: 'tables',
687
+ checks: [],
688
+ },
689
+ {
690
+ pureName: 'Invoice',
691
+ tableRowCount: '412',
692
+ modifyDate: '2022-04-09 09:26:46',
693
+ objectId: 'Invoice',
694
+ contentHash: '2022-04-09 09:26:46',
695
+ columns: [
696
+ {
697
+ pureName: 'Invoice',
698
+ notNull: true,
699
+ autoIncrement: true,
700
+ columnName: 'InvoiceId',
701
+ columnComment: '',
702
+ dataType: 'int',
703
+ defaultValue: null,
704
+ isUnsigned: false,
705
+ isZerofill: false,
706
+ },
707
+ {
708
+ pureName: 'Invoice',
709
+ notNull: true,
710
+ autoIncrement: false,
711
+ columnName: 'CustomerId',
712
+ columnComment: '',
713
+ dataType: 'int',
714
+ defaultValue: null,
715
+ isUnsigned: false,
716
+ isZerofill: false,
717
+ },
718
+ {
719
+ pureName: 'Invoice',
720
+ notNull: true,
721
+ autoIncrement: false,
722
+ columnName: 'InvoiceDate',
723
+ columnComment: '',
724
+ dataType: 'datetime',
725
+ defaultValue: null,
726
+ isUnsigned: false,
727
+ isZerofill: false,
728
+ },
729
+ {
730
+ pureName: 'Invoice',
731
+ notNull: false,
732
+ autoIncrement: false,
733
+ columnName: 'BillingAddress',
734
+ columnComment: '',
735
+ dataType: 'varchar(70)',
736
+ defaultValue: 'NULL',
737
+ isUnsigned: false,
738
+ isZerofill: false,
739
+ },
740
+ {
741
+ pureName: 'Invoice',
742
+ notNull: false,
743
+ autoIncrement: false,
744
+ columnName: 'BillingCity',
745
+ columnComment: '',
746
+ dataType: 'varchar(40)',
747
+ defaultValue: 'NULL',
748
+ isUnsigned: false,
749
+ isZerofill: false,
750
+ },
751
+ {
752
+ pureName: 'Invoice',
753
+ notNull: false,
754
+ autoIncrement: false,
755
+ columnName: 'BillingState',
756
+ columnComment: '',
757
+ dataType: 'varchar(40)',
758
+ defaultValue: 'NULL',
759
+ isUnsigned: false,
760
+ isZerofill: false,
761
+ },
762
+ {
763
+ pureName: 'Invoice',
764
+ notNull: false,
765
+ autoIncrement: false,
766
+ columnName: 'BillingCountry',
767
+ columnComment: '',
768
+ dataType: 'varchar(40)',
769
+ defaultValue: 'NULL',
770
+ isUnsigned: false,
771
+ isZerofill: false,
772
+ },
773
+ {
774
+ pureName: 'Invoice',
775
+ notNull: false,
776
+ autoIncrement: false,
777
+ columnName: 'BillingPostalCode',
778
+ columnComment: '',
779
+ dataType: 'varchar(10)',
780
+ defaultValue: 'NULL',
781
+ isUnsigned: false,
782
+ isZerofill: false,
783
+ },
784
+ {
785
+ pureName: 'Invoice',
786
+ notNull: true,
787
+ autoIncrement: false,
788
+ columnName: 'Total',
789
+ columnComment: '',
790
+ dataType: 'decimal(10,2)',
791
+ defaultValue: null,
792
+ isUnsigned: false,
793
+ isZerofill: false,
794
+ },
795
+ ],
796
+ primaryKey: {
797
+ constraintName: 'PRIMARY',
798
+ pureName: 'Invoice',
799
+ constraintType: 'primaryKey',
800
+ columns: [
801
+ {
802
+ columnName: 'InvoiceId',
803
+ },
804
+ ],
805
+ },
806
+ foreignKeys: [
807
+ {
808
+ constraintName: 'FK_InvoiceCustomerId',
809
+ constraintType: 'foreignKey',
810
+ pureName: 'Invoice',
811
+ refTableName: 'Customer',
812
+ updateAction: 'NO ACTION',
813
+ deleteAction: 'NO ACTION',
814
+ columns: [
815
+ {
816
+ columnName: 'CustomerId',
817
+ refColumnName: 'CustomerId',
818
+ },
819
+ ],
820
+ },
821
+ ],
822
+ indexes: [
823
+ {
824
+ constraintName: 'IFK_InvoiceCustomerId',
825
+ indexType: 'BTREE',
826
+ isUnique: false,
827
+ columns: [
828
+ {
829
+ columnName: 'CustomerId',
830
+ },
831
+ ],
832
+ pureName: 'Invoice',
833
+ constraintType: 'index',
834
+ },
835
+ ],
836
+ uniques: [],
837
+ engine: 'mariadb@dbgate-plugin-mysql',
838
+ dependencies: [
839
+ {
840
+ constraintName: 'FK_InvoiceLineInvoiceId',
841
+ constraintType: 'foreignKey',
842
+ pureName: 'InvoiceLine',
843
+ refTableName: 'Invoice',
844
+ updateAction: 'NO ACTION',
845
+ deleteAction: 'NO ACTION',
846
+ columns: [
847
+ {
848
+ columnName: 'InvoiceId',
849
+ refColumnName: 'InvoiceId',
850
+ },
851
+ ],
852
+ },
853
+ ],
854
+ objectTypeField: 'tables',
855
+ checks: [],
856
+ },
857
+ {
858
+ pureName: 'Genre_copy',
859
+ tableRowCount: '412',
860
+ modifyDate: '2022-04-28 12:59:29',
861
+ objectId: 'Genre_copy',
862
+ contentHash: '2022-04-28 12:59:29',
863
+ columns: [
864
+ {
865
+ pureName: 'Genre_copy',
866
+ notNull: false,
867
+ autoIncrement: false,
868
+ columnName: 'GenreId',
869
+ columnComment: '',
870
+ dataType: 'longtext',
871
+ defaultValue: 'NULL',
872
+ isUnsigned: false,
873
+ isZerofill: false,
874
+ },
875
+ {
876
+ pureName: 'Genre_copy',
877
+ notNull: false,
878
+ autoIncrement: false,
879
+ columnName: 'Name',
880
+ columnComment: '',
881
+ dataType: 'longtext',
882
+ defaultValue: 'NULL',
883
+ isUnsigned: false,
884
+ isZerofill: false,
885
+ },
886
+ ],
887
+ foreignKeys: [],
888
+ indexes: [],
889
+ uniques: [],
890
+ engine: 'mariadb@dbgate-plugin-mysql',
891
+ dependencies: [],
892
+ objectTypeField: 'tables',
893
+ checks: [],
894
+ },
895
+ {
896
+ pureName: 'MediaType',
897
+ tableRowCount: '5',
898
+ modifyDate: '2022-04-09 09:26:46',
899
+ objectId: 'MediaType',
900
+ contentHash: '2022-04-09 09:26:46',
901
+ columns: [
902
+ {
903
+ pureName: 'MediaType',
904
+ notNull: true,
905
+ autoIncrement: true,
906
+ columnName: 'MediaTypeId',
907
+ columnComment: '',
908
+ dataType: 'int',
909
+ defaultValue: null,
910
+ isUnsigned: false,
911
+ isZerofill: false,
912
+ },
913
+ {
914
+ pureName: 'MediaType',
915
+ notNull: false,
916
+ autoIncrement: false,
917
+ columnName: 'Name',
918
+ columnComment: '',
919
+ dataType: 'varchar(120)',
920
+ defaultValue: 'NULL',
921
+ isUnsigned: false,
922
+ isZerofill: false,
923
+ },
924
+ ],
925
+ primaryKey: {
926
+ constraintName: 'PRIMARY',
927
+ pureName: 'MediaType',
928
+ constraintType: 'primaryKey',
929
+ columns: [
930
+ {
931
+ columnName: 'MediaTypeId',
932
+ },
933
+ ],
934
+ },
935
+ foreignKeys: [],
936
+ indexes: [],
937
+ uniques: [],
938
+ engine: 'mariadb@dbgate-plugin-mysql',
939
+ dependencies: [
940
+ {
941
+ constraintName: 'FK_TrackMediaTypeId',
942
+ constraintType: 'foreignKey',
943
+ pureName: 'Track',
944
+ refTableName: 'MediaType',
945
+ updateAction: 'NO ACTION',
946
+ deleteAction: 'NO ACTION',
947
+ columns: [
948
+ {
949
+ columnName: 'MediaTypeId',
950
+ refColumnName: 'MediaTypeId',
951
+ },
952
+ ],
953
+ },
954
+ ],
955
+ objectTypeField: 'tables',
956
+ checks: [],
957
+ },
958
+ {
959
+ pureName: 'Genre',
960
+ tableRowCount: '25',
961
+ modifyDate: '2022-04-09 09:26:46',
962
+ objectId: 'Genre',
963
+ contentHash: '2022-04-09 09:26:46',
964
+ columns: [
965
+ {
966
+ pureName: 'Genre',
967
+ notNull: true,
968
+ autoIncrement: true,
969
+ columnName: 'GenreId',
970
+ columnComment: '',
971
+ dataType: 'int',
972
+ defaultValue: null,
973
+ isUnsigned: false,
974
+ isZerofill: false,
975
+ },
976
+ {
977
+ pureName: 'Genre',
978
+ notNull: false,
979
+ autoIncrement: false,
980
+ columnName: 'Name',
981
+ columnComment: '',
982
+ dataType: 'varchar(120)',
983
+ defaultValue: 'NULL',
984
+ isUnsigned: false,
985
+ isZerofill: false,
986
+ },
987
+ ],
988
+ primaryKey: {
989
+ constraintName: 'PRIMARY',
990
+ pureName: 'Genre',
991
+ constraintType: 'primaryKey',
992
+ columns: [
993
+ {
994
+ columnName: 'GenreId',
995
+ },
996
+ ],
997
+ },
998
+ foreignKeys: [],
999
+ indexes: [],
1000
+ uniques: [],
1001
+ engine: 'mariadb@dbgate-plugin-mysql',
1002
+ dependencies: [
1003
+ {
1004
+ constraintName: 'FK_TrackGenreId',
1005
+ constraintType: 'foreignKey',
1006
+ pureName: 'Track',
1007
+ refTableName: 'Genre',
1008
+ updateAction: 'NO ACTION',
1009
+ deleteAction: 'NO ACTION',
1010
+ columns: [
1011
+ {
1012
+ columnName: 'GenreId',
1013
+ refColumnName: 'GenreId',
1014
+ },
1015
+ ],
1016
+ },
1017
+ ],
1018
+ objectTypeField: 'tables',
1019
+ checks: [],
1020
+ },
1021
+ {
1022
+ pureName: 'Playlist',
1023
+ tableRowCount: '18',
1024
+ modifyDate: '2022-04-09 09:26:46',
1025
+ objectId: 'Playlist',
1026
+ contentHash: '2022-04-09 09:26:46',
1027
+ columns: [
1028
+ {
1029
+ pureName: 'Playlist',
1030
+ notNull: true,
1031
+ autoIncrement: true,
1032
+ columnName: 'PlaylistId',
1033
+ columnComment: '',
1034
+ dataType: 'int',
1035
+ defaultValue: null,
1036
+ isUnsigned: false,
1037
+ isZerofill: false,
1038
+ },
1039
+ {
1040
+ pureName: 'Playlist',
1041
+ notNull: false,
1042
+ autoIncrement: false,
1043
+ columnName: 'Name',
1044
+ columnComment: '',
1045
+ dataType: 'varchar(120)',
1046
+ defaultValue: 'NULL',
1047
+ isUnsigned: false,
1048
+ isZerofill: false,
1049
+ },
1050
+ ],
1051
+ primaryKey: {
1052
+ constraintName: 'PRIMARY',
1053
+ pureName: 'Playlist',
1054
+ constraintType: 'primaryKey',
1055
+ columns: [
1056
+ {
1057
+ columnName: 'PlaylistId',
1058
+ },
1059
+ ],
1060
+ },
1061
+ foreignKeys: [],
1062
+ indexes: [],
1063
+ uniques: [],
1064
+ engine: 'mariadb@dbgate-plugin-mysql',
1065
+ dependencies: [
1066
+ {
1067
+ constraintName: 'FK_PlaylistTrackPlaylistId',
1068
+ constraintType: 'foreignKey',
1069
+ pureName: 'PlaylistTrack',
1070
+ refTableName: 'Playlist',
1071
+ updateAction: 'NO ACTION',
1072
+ deleteAction: 'NO ACTION',
1073
+ columns: [
1074
+ {
1075
+ columnName: 'PlaylistId',
1076
+ refColumnName: 'PlaylistId',
1077
+ },
1078
+ ],
1079
+ },
1080
+ ],
1081
+ objectTypeField: 'tables',
1082
+ checks: [],
1083
+ },
1084
+ {
1085
+ pureName: 'Artist',
1086
+ tableRowCount: '275',
1087
+ modifyDate: '2022-04-09 09:26:46',
1088
+ objectId: 'Artist',
1089
+ contentHash: '2022-04-09 09:26:46',
1090
+ columns: [
1091
+ {
1092
+ pureName: 'Artist',
1093
+ notNull: true,
1094
+ autoIncrement: true,
1095
+ columnName: 'ArtistId',
1096
+ columnComment: '',
1097
+ dataType: 'int',
1098
+ defaultValue: null,
1099
+ isUnsigned: false,
1100
+ isZerofill: false,
1101
+ },
1102
+ {
1103
+ pureName: 'Artist',
1104
+ notNull: false,
1105
+ autoIncrement: false,
1106
+ columnName: 'Name',
1107
+ columnComment: '',
1108
+ dataType: 'varchar(120)',
1109
+ defaultValue: 'NULL',
1110
+ isUnsigned: false,
1111
+ isZerofill: false,
1112
+ },
1113
+ ],
1114
+ primaryKey: {
1115
+ constraintName: 'PRIMARY',
1116
+ pureName: 'Artist',
1117
+ constraintType: 'primaryKey',
1118
+ columns: [
1119
+ {
1120
+ columnName: 'ArtistId',
1121
+ },
1122
+ ],
1123
+ },
1124
+ foreignKeys: [],
1125
+ indexes: [],
1126
+ uniques: [],
1127
+ engine: 'mariadb@dbgate-plugin-mysql',
1128
+ dependencies: [
1129
+ {
1130
+ constraintName: 'FK_AlbumArtistId',
1131
+ constraintType: 'foreignKey',
1132
+ pureName: 'Album',
1133
+ refTableName: 'Artist',
1134
+ updateAction: 'NO ACTION',
1135
+ deleteAction: 'NO ACTION',
1136
+ columns: [
1137
+ {
1138
+ columnName: 'ArtistId',
1139
+ refColumnName: 'ArtistId',
1140
+ },
1141
+ ],
1142
+ },
1143
+ ],
1144
+ objectTypeField: 'tables',
1145
+ checks: [],
1146
+ },
1147
+ {
1148
+ pureName: 'Employee',
1149
+ tableRowCount: '8',
1150
+ modifyDate: '2022-04-09 09:26:46',
1151
+ objectId: 'Employee',
1152
+ contentHash: '2022-04-09 09:26:46',
1153
+ columns: [
1154
+ {
1155
+ pureName: 'Employee',
1156
+ notNull: true,
1157
+ autoIncrement: true,
1158
+ columnName: 'EmployeeId',
1159
+ columnComment: '',
1160
+ dataType: 'int',
1161
+ defaultValue: null,
1162
+ isUnsigned: false,
1163
+ isZerofill: false,
1164
+ },
1165
+ {
1166
+ pureName: 'Employee',
1167
+ notNull: true,
1168
+ autoIncrement: false,
1169
+ columnName: 'LastName',
1170
+ columnComment: '',
1171
+ dataType: 'varchar(20)',
1172
+ defaultValue: null,
1173
+ isUnsigned: false,
1174
+ isZerofill: false,
1175
+ },
1176
+ {
1177
+ pureName: 'Employee',
1178
+ notNull: true,
1179
+ autoIncrement: false,
1180
+ columnName: 'FirstName',
1181
+ columnComment: '',
1182
+ dataType: 'varchar(20)',
1183
+ defaultValue: null,
1184
+ isUnsigned: false,
1185
+ isZerofill: false,
1186
+ },
1187
+ {
1188
+ pureName: 'Employee',
1189
+ notNull: false,
1190
+ autoIncrement: false,
1191
+ columnName: 'Title',
1192
+ columnComment: '',
1193
+ dataType: 'varchar(30)',
1194
+ defaultValue: 'NULL',
1195
+ isUnsigned: false,
1196
+ isZerofill: false,
1197
+ },
1198
+ {
1199
+ pureName: 'Employee',
1200
+ notNull: false,
1201
+ autoIncrement: false,
1202
+ columnName: 'ReportsTo',
1203
+ columnComment: '',
1204
+ dataType: 'int',
1205
+ defaultValue: 'NULL',
1206
+ isUnsigned: false,
1207
+ isZerofill: false,
1208
+ },
1209
+ {
1210
+ pureName: 'Employee',
1211
+ notNull: false,
1212
+ autoIncrement: false,
1213
+ columnName: 'BirthDate',
1214
+ columnComment: '',
1215
+ dataType: 'datetime',
1216
+ defaultValue: 'NULL',
1217
+ isUnsigned: false,
1218
+ isZerofill: false,
1219
+ },
1220
+ {
1221
+ pureName: 'Employee',
1222
+ notNull: false,
1223
+ autoIncrement: false,
1224
+ columnName: 'HireDate',
1225
+ columnComment: '',
1226
+ dataType: 'datetime',
1227
+ defaultValue: 'NULL',
1228
+ isUnsigned: false,
1229
+ isZerofill: false,
1230
+ },
1231
+ {
1232
+ pureName: 'Employee',
1233
+ notNull: false,
1234
+ autoIncrement: false,
1235
+ columnName: 'Address',
1236
+ columnComment: '',
1237
+ dataType: 'varchar(70)',
1238
+ defaultValue: 'NULL',
1239
+ isUnsigned: false,
1240
+ isZerofill: false,
1241
+ },
1242
+ {
1243
+ pureName: 'Employee',
1244
+ notNull: false,
1245
+ autoIncrement: false,
1246
+ columnName: 'City',
1247
+ columnComment: '',
1248
+ dataType: 'varchar(40)',
1249
+ defaultValue: 'NULL',
1250
+ isUnsigned: false,
1251
+ isZerofill: false,
1252
+ },
1253
+ {
1254
+ pureName: 'Employee',
1255
+ notNull: false,
1256
+ autoIncrement: false,
1257
+ columnName: 'State',
1258
+ columnComment: '',
1259
+ dataType: 'varchar(40)',
1260
+ defaultValue: 'NULL',
1261
+ isUnsigned: false,
1262
+ isZerofill: false,
1263
+ },
1264
+ {
1265
+ pureName: 'Employee',
1266
+ notNull: false,
1267
+ autoIncrement: false,
1268
+ columnName: 'Country',
1269
+ columnComment: '',
1270
+ dataType: 'varchar(40)',
1271
+ defaultValue: 'NULL',
1272
+ isUnsigned: false,
1273
+ isZerofill: false,
1274
+ },
1275
+ {
1276
+ pureName: 'Employee',
1277
+ notNull: false,
1278
+ autoIncrement: false,
1279
+ columnName: 'PostalCode',
1280
+ columnComment: '',
1281
+ dataType: 'varchar(10)',
1282
+ defaultValue: 'NULL',
1283
+ isUnsigned: false,
1284
+ isZerofill: false,
1285
+ },
1286
+ {
1287
+ pureName: 'Employee',
1288
+ notNull: false,
1289
+ autoIncrement: false,
1290
+ columnName: 'Phone',
1291
+ columnComment: '',
1292
+ dataType: 'varchar(24)',
1293
+ defaultValue: 'NULL',
1294
+ isUnsigned: false,
1295
+ isZerofill: false,
1296
+ },
1297
+ {
1298
+ pureName: 'Employee',
1299
+ notNull: false,
1300
+ autoIncrement: false,
1301
+ columnName: 'Fax',
1302
+ columnComment: '',
1303
+ dataType: 'varchar(24)',
1304
+ defaultValue: 'NULL',
1305
+ isUnsigned: false,
1306
+ isZerofill: false,
1307
+ },
1308
+ {
1309
+ pureName: 'Employee',
1310
+ notNull: false,
1311
+ autoIncrement: false,
1312
+ columnName: 'Email',
1313
+ columnComment: '',
1314
+ dataType: 'varchar(60)',
1315
+ defaultValue: 'NULL',
1316
+ isUnsigned: false,
1317
+ isZerofill: false,
1318
+ },
1319
+ ],
1320
+ primaryKey: {
1321
+ constraintName: 'PRIMARY',
1322
+ pureName: 'Employee',
1323
+ constraintType: 'primaryKey',
1324
+ columns: [
1325
+ {
1326
+ columnName: 'EmployeeId',
1327
+ },
1328
+ ],
1329
+ },
1330
+ foreignKeys: [
1331
+ {
1332
+ constraintName: 'FK_EmployeeReportsTo',
1333
+ constraintType: 'foreignKey',
1334
+ pureName: 'Employee',
1335
+ refTableName: 'Employee',
1336
+ updateAction: 'NO ACTION',
1337
+ deleteAction: 'NO ACTION',
1338
+ columns: [
1339
+ {
1340
+ columnName: 'ReportsTo',
1341
+ refColumnName: 'EmployeeId',
1342
+ },
1343
+ ],
1344
+ },
1345
+ ],
1346
+ indexes: [
1347
+ {
1348
+ constraintName: 'IFK_EmployeeReportsTo',
1349
+ indexType: 'BTREE',
1350
+ isUnique: false,
1351
+ columns: [
1352
+ {
1353
+ columnName: 'ReportsTo',
1354
+ },
1355
+ ],
1356
+ pureName: 'Employee',
1357
+ constraintType: 'index',
1358
+ },
1359
+ ],
1360
+ uniques: [],
1361
+ engine: 'mariadb@dbgate-plugin-mysql',
1362
+ dependencies: [
1363
+ {
1364
+ constraintName: 'FK_CustomerSupportRepId',
1365
+ constraintType: 'foreignKey',
1366
+ pureName: 'Customer',
1367
+ refTableName: 'Employee',
1368
+ updateAction: 'NO ACTION',
1369
+ deleteAction: 'NO ACTION',
1370
+ columns: [
1371
+ {
1372
+ columnName: 'SupportRepId',
1373
+ refColumnName: 'EmployeeId',
1374
+ },
1375
+ ],
1376
+ },
1377
+ {
1378
+ constraintName: 'FK_EmployeeReportsTo',
1379
+ constraintType: 'foreignKey',
1380
+ pureName: 'Employee',
1381
+ refTableName: 'Employee',
1382
+ updateAction: 'NO ACTION',
1383
+ deleteAction: 'NO ACTION',
1384
+ columns: [
1385
+ {
1386
+ columnName: 'ReportsTo',
1387
+ refColumnName: 'EmployeeId',
1388
+ },
1389
+ ],
1390
+ },
1391
+ ],
1392
+ objectTypeField: 'tables',
1393
+ checks: [],
1394
+ },
1395
+ {
1396
+ pureName: 'PlaylistTrack',
1397
+ tableRowCount: '8715',
1398
+ modifyDate: '2022-04-09 09:26:46',
1399
+ objectId: 'PlaylistTrack',
1400
+ contentHash: '2022-04-09 09:26:46',
1401
+ columns: [
1402
+ {
1403
+ pureName: 'PlaylistTrack',
1404
+ notNull: true,
1405
+ autoIncrement: false,
1406
+ columnName: 'PlaylistId',
1407
+ columnComment: '',
1408
+ dataType: 'int',
1409
+ defaultValue: null,
1410
+ isUnsigned: false,
1411
+ isZerofill: false,
1412
+ },
1413
+ {
1414
+ pureName: 'PlaylistTrack',
1415
+ notNull: true,
1416
+ autoIncrement: false,
1417
+ columnName: 'TrackId',
1418
+ columnComment: '',
1419
+ dataType: 'int',
1420
+ defaultValue: null,
1421
+ isUnsigned: false,
1422
+ isZerofill: false,
1423
+ },
1424
+ ],
1425
+ primaryKey: {
1426
+ constraintName: 'PRIMARY',
1427
+ pureName: 'PlaylistTrack',
1428
+ constraintType: 'primaryKey',
1429
+ columns: [
1430
+ {
1431
+ columnName: 'PlaylistId',
1432
+ },
1433
+ {
1434
+ columnName: 'TrackId',
1435
+ },
1436
+ ],
1437
+ },
1438
+ foreignKeys: [
1439
+ {
1440
+ constraintName: 'FK_PlaylistTrackPlaylistId',
1441
+ constraintType: 'foreignKey',
1442
+ pureName: 'PlaylistTrack',
1443
+ refTableName: 'Playlist',
1444
+ updateAction: 'NO ACTION',
1445
+ deleteAction: 'NO ACTION',
1446
+ columns: [
1447
+ {
1448
+ columnName: 'PlaylistId',
1449
+ refColumnName: 'PlaylistId',
1450
+ },
1451
+ ],
1452
+ },
1453
+ {
1454
+ constraintName: 'FK_PlaylistTrackTrackId',
1455
+ constraintType: 'foreignKey',
1456
+ pureName: 'PlaylistTrack',
1457
+ refTableName: 'Track',
1458
+ updateAction: 'NO ACTION',
1459
+ deleteAction: 'NO ACTION',
1460
+ columns: [
1461
+ {
1462
+ columnName: 'TrackId',
1463
+ refColumnName: 'TrackId',
1464
+ },
1465
+ ],
1466
+ },
1467
+ ],
1468
+ indexes: [
1469
+ {
1470
+ constraintName: 'IFK_PlaylistTrackTrackId',
1471
+ indexType: 'BTREE',
1472
+ isUnique: false,
1473
+ columns: [
1474
+ {
1475
+ columnName: 'TrackId',
1476
+ },
1477
+ ],
1478
+ pureName: 'PlaylistTrack',
1479
+ constraintType: 'index',
1480
+ },
1481
+ ],
1482
+ uniques: [],
1483
+ engine: 'mariadb@dbgate-plugin-mysql',
1484
+ dependencies: [],
1485
+ objectTypeField: 'tables',
1486
+ checks: [],
1487
+ },
1488
+ ],
1489
+ views: [],
1490
+ procedures: [],
1491
+ functions: [],
1492
+ engine: 'mariadb@dbgate-plugin-mysql',
1493
+ collections: [],
1494
+ matviews: [],
1495
+ triggers: [],
1496
+ };
1497
+ // const ARTIST_TABLE: TableInfo = {
1498
+ // pureName: 'Artist',
1499
+ // columns: [
1500
+ // {
1501
+ // pureName: 'Artist',
1502
+ // notNull: true,
1503
+ // autoIncrement: true,
1504
+ // columnName: 'ArtistId',
1505
+ // columnComment: '',
1506
+ // dataType: 'int',
1507
+ // },
1508
+ // {
1509
+ // pureName: 'Artist',
1510
+ // notNull: false,
1511
+ // columnName: 'Name',
1512
+ // dataType: 'varchar(120)',
1513
+ // },
1514
+ // ],
1515
+ // primaryKey: {
1516
+ // constraintName: 'PRIMARY',
1517
+ // pureName: 'Artist',
1518
+ // constraintType: 'primaryKey',
1519
+ // columns: [
1520
+ // {
1521
+ // columnName: 'ArtistId',
1522
+ // },
1523
+ // ],
1524
+ // },
1525
+ // foreignKeys: [],
1526
+ // indexes: [],
1527
+ // uniques: [],
1528
+ // dependencies: [
1529
+ // {
1530
+ // constraintName: 'FK_AlbumArtistId',
1531
+ // constraintType: 'foreignKey',
1532
+ // pureName: 'Album',
1533
+ // refTableName: 'Artist',
1534
+ // columns: [
1535
+ // {
1536
+ // columnName: 'ArtistId',
1537
+ // refColumnName: 'ArtistId',
1538
+ // },
1539
+ // ],
1540
+ // },
1541
+ // ],
1542
+ // objectTypeField: 'tables',
1543
+ // checks: [],
1544
+ // };
1545
+ // const ALBUM_TABLE: TableInfo = {
1546
+ // pureName: 'Album',
1547
+ // columns: [
1548
+ // {
1549
+ // pureName: 'Album',
1550
+ // notNull: true,
1551
+ // autoIncrement: true,
1552
+ // columnName: 'AlbumId',
1553
+ // dataType: 'int',
1554
+ // },
1555
+ // {
1556
+ // pureName: 'Album',
1557
+ // notNull: true,
1558
+ // columnName: 'Title',
1559
+ // dataType: 'varchar(160)',
1560
+ // },
1561
+ // {
1562
+ // pureName: 'Album',
1563
+ // notNull: true,
1564
+ // autoIncrement: false,
1565
+ // columnName: 'ArtistId',
1566
+ // dataType: 'int',
1567
+ // },
1568
+ // ],
1569
+ // primaryKey: {
1570
+ // constraintName: 'PRIMARY',
1571
+ // pureName: 'Album',
1572
+ // constraintType: 'primaryKey',
1573
+ // columns: [
1574
+ // {
1575
+ // columnName: 'AlbumId',
1576
+ // },
1577
+ // ],
1578
+ // },
1579
+ // foreignKeys: [
1580
+ // {
1581
+ // constraintName: 'FK_AlbumArtistId',
1582
+ // constraintType: 'foreignKey',
1583
+ // pureName: 'Album',
1584
+ // refTableName: 'Artist',
1585
+ // columns: [
1586
+ // {
1587
+ // columnName: 'ArtistId',
1588
+ // refColumnName: 'ArtistId',
1589
+ // },
1590
+ // ],
1591
+ // },
1592
+ // ],
1593
+ // uniques: [],
1594
+ // dependencies: [
1595
+ // {
1596
+ // constraintName: 'FK_TrackAlbumId',
1597
+ // constraintType: 'foreignKey',
1598
+ // pureName: 'Track',
1599
+ // refTableName: 'Album',
1600
+ // columns: [
1601
+ // {
1602
+ // columnName: 'AlbumId',
1603
+ // refColumnName: 'AlbumId',
1604
+ // },
1605
+ // ],
1606
+ // },
1607
+ // ],
1608
+ // objectTypeField: 'tables',
1609
+ // checks: [],
1610
+ // };
1611
+ // const TRACK_TABLE: TableInfo = {
1612
+ // pureName: 'Track',
1613
+ // columns: [
1614
+ // {
1615
+ // pureName: 'Track',
1616
+ // notNull: true,
1617
+ // autoIncrement: true,
1618
+ // columnName: 'TrackId',
1619
+ // dataType: 'int',
1620
+ // },
1621
+ // {
1622
+ // pureName: 'Track',
1623
+ // notNull: true,
1624
+ // columnName: 'Name',
1625
+ // dataType: 'varchar(200)',
1626
+ // },
1627
+ // {
1628
+ // pureName: 'Track',
1629
+ // columnName: 'AlbumId',
1630
+ // dataType: 'int',
1631
+ // },
1632
+ // {
1633
+ // pureName: 'Track',
1634
+ // notNull: true,
1635
+ // columnName: 'MediaTypeId',
1636
+ // dataType: 'int',
1637
+ // },
1638
+ // {
1639
+ // pureName: 'Track',
1640
+ // columnName: 'GenreId',
1641
+ // dataType: 'int',
1642
+ // },
1643
+ // {
1644
+ // pureName: 'Track',
1645
+ // notNull: false,
1646
+ // autoIncrement: false,
1647
+ // columnName: 'Composer',
1648
+ // columnComment: '',
1649
+ // dataType: 'varchar(220)',
1650
+ // defaultValue: 'NULL',
1651
+ // isUnsigned: false,
1652
+ // isZerofill: false,
1653
+ // },
1654
+ // {
1655
+ // pureName: 'Track',
1656
+ // notNull: true,
1657
+ // autoIncrement: false,
1658
+ // columnName: 'Milliseconds',
1659
+ // columnComment: '',
1660
+ // dataType: 'int',
1661
+ // defaultValue: null,
1662
+ // isUnsigned: false,
1663
+ // isZerofill: false,
1664
+ // },
1665
+ // {
1666
+ // pureName: 'Track',
1667
+ // notNull: false,
1668
+ // autoIncrement: false,
1669
+ // columnName: 'Bytes',
1670
+ // columnComment: '',
1671
+ // dataType: 'int',
1672
+ // defaultValue: 'NULL',
1673
+ // isUnsigned: false,
1674
+ // isZerofill: false,
1675
+ // },
1676
+ // {
1677
+ // pureName: 'Track',
1678
+ // notNull: true,
1679
+ // autoIncrement: false,
1680
+ // columnName: 'UnitPrice',
1681
+ // columnComment: '',
1682
+ // dataType: 'decimal(10,2)',
1683
+ // defaultValue: null,
1684
+ // isUnsigned: false,
1685
+ // isZerofill: false,
1686
+ // },
1687
+ // ],
1688
+ // primaryKey: {
1689
+ // constraintName: 'PRIMARY',
1690
+ // pureName: 'Track',
1691
+ // constraintType: 'primaryKey',
1692
+ // columns: [
1693
+ // {
1694
+ // columnName: 'TrackId',
1695
+ // },
1696
+ // ],
1697
+ // },
1698
+ // foreignKeys: [
1699
+ // {
1700
+ // constraintName: 'FK_TrackMediaTypeId',
1701
+ // constraintType: 'foreignKey',
1702
+ // pureName: 'Track',
1703
+ // refTableName: 'MediaType',
1704
+ // updateAction: 'NO ACTION',
1705
+ // deleteAction: 'NO ACTION',
1706
+ // columns: [
1707
+ // {
1708
+ // columnName: 'MediaTypeId',
1709
+ // refColumnName: 'MediaTypeId',
1710
+ // },
1711
+ // ],
1712
+ // },
1713
+ // {
1714
+ // constraintName: 'FK_TrackAlbumId',
1715
+ // constraintType: 'foreignKey',
1716
+ // pureName: 'Track',
1717
+ // refTableName: 'Album',
1718
+ // updateAction: 'NO ACTION',
1719
+ // deleteAction: 'NO ACTION',
1720
+ // columns: [
1721
+ // {
1722
+ // columnName: 'AlbumId',
1723
+ // refColumnName: 'AlbumId',
1724
+ // },
1725
+ // ],
1726
+ // },
1727
+ // {
1728
+ // constraintName: 'FK_TrackGenreId',
1729
+ // constraintType: 'foreignKey',
1730
+ // pureName: 'Track',
1731
+ // refTableName: 'Genre',
1732
+ // updateAction: 'NO ACTION',
1733
+ // deleteAction: 'NO ACTION',
1734
+ // columns: [
1735
+ // {
1736
+ // columnName: 'GenreId',
1737
+ // refColumnName: 'GenreId',
1738
+ // },
1739
+ // ],
1740
+ // },
1741
+ // ],
1742
+ // uniques: [],
1743
+ // dependencies: [
1744
+ // {
1745
+ // constraintName: 'FK_InvoiceLineTrackId',
1746
+ // constraintType: 'foreignKey',
1747
+ // pureName: 'InvoiceLine',
1748
+ // refTableName: 'Track',
1749
+ // updateAction: 'NO ACTION',
1750
+ // deleteAction: 'NO ACTION',
1751
+ // columns: [
1752
+ // {
1753
+ // columnName: 'TrackId',
1754
+ // refColumnName: 'TrackId',
1755
+ // },
1756
+ // ],
1757
+ // },
1758
+ // {
1759
+ // constraintName: 'FK_PlaylistTrackTrackId',
1760
+ // constraintType: 'foreignKey',
1761
+ // pureName: 'PlaylistTrack',
1762
+ // refTableName: 'Track',
1763
+ // updateAction: 'NO ACTION',
1764
+ // deleteAction: 'NO ACTION',
1765
+ // columns: [
1766
+ // {
1767
+ // columnName: 'TrackId',
1768
+ // refColumnName: 'TrackId',
1769
+ // },
1770
+ // ],
1771
+ // },
1772
+ // ],
1773
+ // objectTypeField: 'tables',
1774
+ // checks: [],
1775
+ // };