@dbml/cli 3.14.1 → 4.0.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.
Files changed (73) hide show
  1. package/__test__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +8 -56
  2. package/package.json +4 -4
  3. package/__test__/db2dbml/mssql/dbml-error.log +0 -636
  4. package/__test__/db2dbml/mssql/out-files/schema.dbml +0 -242
  5. package/__test__/db2dbml/mysql/dbml-error.log +0 -570
  6. package/__test__/db2dbml/mysql/out-files/schema.dbml +0 -180
  7. package/__test__/db2dbml/postgres/dbml-error.log +0 -375
  8. package/__test__/db2dbml/postgres/out-files/schema.dbml +0 -180
  9. package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -0
  10. package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +0 -65
  11. package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
  12. package/__test__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
  13. package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +0 -61
  14. package/__test__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
  15. package/__test__/dbml2sql/filename --out-file/dbml-error.log +0 -0
  16. package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +0 -77
  17. package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -0
  18. package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +0 -77
  19. package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
  20. package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
  21. package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -0
  22. package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +0 -172
  23. package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
  24. package/__test__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
  25. package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +0 -172
  26. package/__test__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
  27. package/__test__/dbml2sql/filenames --out-file/dbml-error.log +0 -0
  28. package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +0 -172
  29. package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -0
  30. package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +0 -172
  31. package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
  32. package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
  33. package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -0
  34. package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +0 -62
  35. package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -0
  36. package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +0 -50
  37. package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
  38. package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +0 -88
  39. package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -0
  40. package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +0 -67
  41. package/__test__/dbml2sql/syntax-error/dbml-error.log +0 -27
  42. package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -0
  43. package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -25
  44. package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -0
  45. package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -74
  46. package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
  47. package/__test__/sql2dbml/filename --out-file/dbml-error.log +0 -0
  48. package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -74
  49. package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -0
  50. package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -74
  51. package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
  52. package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -0
  53. package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
  54. package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -0
  55. package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -170
  56. package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
  57. package/__test__/sql2dbml/filenames --out-file/dbml-error.log +0 -0
  58. package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -170
  59. package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -0
  60. package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -170
  61. package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
  62. package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
  63. package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -0
  64. package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -106
  65. package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -0
  66. package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -136
  67. package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -0
  68. package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -101
  69. package/__test__/sql2dbml/syntax-error/dbml-error.log +0 -51
  70. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +0 -51
  71. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +0 -51
  72. package/dbml-error.log +0 -278
  73. package/snowflake.log +0 -129
@@ -1,170 +0,0 @@
1
- Table "staff" {
2
- "id" int [pk]
3
- "first_name" varchar
4
- "last_name" varchar
5
- "address_id" int
6
- "picture" blob
7
- "email" varchar
8
- "store_id" int
9
- "active" boolean
10
- "user_name" varchar
11
- "password" varchar
12
- "last_update" timestamp
13
- }
14
-
15
- Table "store" {
16
- "id" int [pk]
17
- "manager_staff_id" int
18
- "address_id" int
19
- "last_update" timestamp
20
- }
21
-
22
- Table "payment" {
23
- "id" int [pk]
24
- "customer_id" int
25
- "staff_id" int
26
- "rental_id" int
27
- "amount" decimal
28
- "payment_date" datetime
29
- "last_update" timestamp
30
- }
31
-
32
- Table "rental" {
33
- "id" int [pk]
34
- "rental_date" datetime
35
- "inventory_id" int
36
- "customer_id" int
37
- "return_date" ddatetime
38
- "staff_id" int
39
- "last_update" timestamp
40
- }
41
-
42
- Ref:"store"."id" < "staff"."store_id"
43
-
44
- Ref:"staff"."id" < "store"."manager_staff_id"
45
-
46
- Ref:"staff"."id" < "payment"."staff_id"
47
-
48
- Ref:"rental"."id" < "payment"."rental_id"
49
-
50
- Ref:"staff"."id" < "rental"."staff_id"
51
- Table "country" {
52
- "id" int [pk]
53
- "country" varchar
54
- "last_update" timestamp
55
- }
56
-
57
- Table "city" {
58
- "id" int [pk]
59
- "city" varchar
60
- "country_id" int
61
- "last_update" timestamp
62
- }
63
-
64
- Table "address" {
65
- "id" int [pk]
66
- "address" varchar
67
- "address2" varchar
68
- "district" varchar
69
- "city_id" int
70
- "postal_code" varchar
71
- "phone" varchar
72
- "last_update" timestamp
73
- }
74
-
75
- Table "customer" {
76
- "id" int [pk]
77
- "store_id" int
78
- "first_name" varchar
79
- "last_name" varchar
80
- "email" varchar
81
- "address_id" int
82
- "active" boolean
83
- "create_Date" timestamp
84
- "last_update" timestamp
85
-
86
- Indexes {
87
- (id, first_name) [type: btree]
88
- }
89
- }
90
-
91
- Ref:"country"."id" < "city"."country_id"
92
-
93
- Ref:"city"."id" < "address"."city_id"
94
-
95
- Ref:"address"."id" < "customer"."address_id"
96
- Table "category" {
97
- "id" int [pk]
98
- "name" varchar
99
- "last_update" timestamp
100
- }
101
-
102
- Table "film_category" {
103
- "id" int [pk]
104
- "category_id" int
105
- "last_update" timestamp
106
- }
107
-
108
- Table "language" {
109
- "id" int [pk]
110
- "name" varchar
111
- "last_update" timestamp
112
- }
113
-
114
- Table "film_text" {
115
- "id" int [pk]
116
- "film_id" int
117
- "title" varchar
118
- "description" text
119
- }
120
-
121
- Table "actor" {
122
- "id" int [pk]
123
- "first_name" varchar
124
- "last_name" varchar
125
- "last_update" timestamp
126
- }
127
-
128
- Table "film" {
129
- "id" int [pk]
130
- "title" varchar
131
- "description" text
132
- "releaase_year" int
133
- "language_id" int
134
- "original_language_id" int
135
- "rental_duration" int
136
- "rental_rate" decimal
137
- "length" int
138
- "replacement_cost" decimal
139
- "rating" varchar
140
- "special_feature" varchar
141
- "last_update" timestamp
142
- }
143
-
144
- Table "film_actor" {
145
- "id" int [pk]
146
- "film_id" int
147
- "actor_id" int
148
- "last_update" timestamp
149
- }
150
-
151
- Table "inventory" {
152
- "id" int [pk]
153
- "film_id" int
154
- "store_id" int
155
- "last_update" timestamp
156
- }
157
-
158
- Ref:"category"."id" < "film_category"."category_id"
159
-
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
161
-
162
- Ref:"language"."id" < "film"."language_id"
163
-
164
- Ref:"language"."id" < "film"."original_language_id"
165
-
166
- Ref:"film"."id" < "film_actor"."film_id"
167
-
168
- Ref:"actor"."id" < "film_actor"."actor_id"
169
-
170
- Ref:"film"."id" < "inventory"."film_id"
@@ -1,170 +0,0 @@
1
- Table "staff" {
2
- "id" int [pk]
3
- "first_name" varchar
4
- "last_name" varchar
5
- "address_id" int
6
- "picture" blob
7
- "email" varchar
8
- "store_id" int
9
- "active" boolean
10
- "user_name" varchar
11
- "password" varchar
12
- "last_update" timestamp
13
- }
14
-
15
- Table "store" {
16
- "id" int [pk]
17
- "manager_staff_id" int
18
- "address_id" int
19
- "last_update" timestamp
20
- }
21
-
22
- Table "payment" {
23
- "id" int [pk]
24
- "customer_id" int
25
- "staff_id" int
26
- "rental_id" int
27
- "amount" decimal
28
- "payment_date" datetime
29
- "last_update" timestamp
30
- }
31
-
32
- Table "rental" {
33
- "id" int [pk]
34
- "rental_date" datetime
35
- "inventory_id" int
36
- "customer_id" int
37
- "return_date" ddatetime
38
- "staff_id" int
39
- "last_update" timestamp
40
- }
41
-
42
- Ref:"store"."id" < "staff"."store_id"
43
-
44
- Ref:"staff"."id" < "store"."manager_staff_id"
45
-
46
- Ref:"staff"."id" < "payment"."staff_id"
47
-
48
- Ref:"rental"."id" < "payment"."rental_id"
49
-
50
- Ref:"staff"."id" < "rental"."staff_id"
51
- Table "country" {
52
- "id" int [pk]
53
- "country" varchar
54
- "last_update" timestamp
55
- }
56
-
57
- Table "city" {
58
- "id" int [pk]
59
- "city" varchar
60
- "country_id" int
61
- "last_update" timestamp
62
- }
63
-
64
- Table "address" {
65
- "id" int [pk]
66
- "address" varchar
67
- "address2" varchar
68
- "district" varchar
69
- "city_id" int
70
- "postal_code" varchar
71
- "phone" varchar
72
- "last_update" timestamp
73
- }
74
-
75
- Table "customer" {
76
- "id" int [pk]
77
- "store_id" int
78
- "first_name" varchar
79
- "last_name" varchar
80
- "email" varchar
81
- "address_id" int
82
- "active" boolean
83
- "create_Date" timestamp
84
- "last_update" timestamp
85
-
86
- Indexes {
87
- (id, first_name) [type: btree]
88
- }
89
- }
90
-
91
- Ref:"country"."id" < "city"."country_id"
92
-
93
- Ref:"city"."id" < "address"."city_id"
94
-
95
- Ref:"address"."id" < "customer"."address_id"
96
- Table "category" {
97
- "id" int [pk]
98
- "name" varchar
99
- "last_update" timestamp
100
- }
101
-
102
- Table "film_category" {
103
- "id" int [pk]
104
- "category_id" int
105
- "last_update" timestamp
106
- }
107
-
108
- Table "language" {
109
- "id" int [pk]
110
- "name" varchar
111
- "last_update" timestamp
112
- }
113
-
114
- Table "film_text" {
115
- "id" int [pk]
116
- "film_id" int
117
- "title" varchar
118
- "description" text
119
- }
120
-
121
- Table "actor" {
122
- "id" int [pk]
123
- "first_name" varchar
124
- "last_name" varchar
125
- "last_update" timestamp
126
- }
127
-
128
- Table "film" {
129
- "id" int [pk]
130
- "title" varchar
131
- "description" text
132
- "releaase_year" int
133
- "language_id" int
134
- "original_language_id" int
135
- "rental_duration" int
136
- "rental_rate" decimal
137
- "length" int
138
- "replacement_cost" decimal
139
- "rating" varchar
140
- "special_feature" varchar
141
- "last_update" timestamp
142
- }
143
-
144
- Table "film_actor" {
145
- "id" int [pk]
146
- "film_id" int
147
- "actor_id" int
148
- "last_update" timestamp
149
- }
150
-
151
- Table "inventory" {
152
- "id" int [pk]
153
- "film_id" int
154
- "store_id" int
155
- "last_update" timestamp
156
- }
157
-
158
- Ref:"category"."id" < "film_category"."category_id"
159
-
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
161
-
162
- Ref:"language"."id" < "film"."language_id"
163
-
164
- Ref:"language"."id" < "film"."original_language_id"
165
-
166
- Ref:"film"."id" < "film_actor"."film_id"
167
-
168
- Ref:"actor"."id" < "film_actor"."actor_id"
169
-
170
- Ref:"film"."id" < "inventory"."film_id"
File without changes
@@ -1,106 +0,0 @@
1
- Enum "users_pjs_enum" {
2
- "created2"
3
- "running2"
4
- "done2"
5
- "failure2"
6
- }
7
-
8
- Enum "users_pjs2_enum" {
9
- "created2"
10
- "running2"
11
- "done2"
12
- "failure2"
13
- }
14
-
15
- Enum "users_pg_enum" {
16
- "male"
17
- "female"
18
- }
19
-
20
- Enum "users_pg2_enum" {
21
- "male2"
22
- "female2"
23
- }
24
-
25
- Table "users" {
26
- "id" int [pk]
27
- "name" nvarchar(255)
28
- "pjs" users_pjs_enum [not null]
29
- "pjs2" users_pjs2_enum [not null]
30
- "pg" users_pg_enum [not null]
31
- "pg2" users_pg2_enum [not null]
32
- }
33
-
34
- Table "products" {
35
- "id" int [pk]
36
- "name" nvarchar(255) [note: 'Product name']
37
- }
38
-
39
- Ref:"schemaA"."locations"."id" < "schemaA"."products"."lid"
40
-
41
- Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid2"
42
-
43
- Ref:"users"."id" < "ecommerce"."users"."id"
44
-
45
- Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
46
-
47
- Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
48
-
49
- Ref:"users"."id" < "schemaA"."locations"."name"
50
-
51
- Enum "ecommerce"."users_ejs_enum" {
52
- "created2"
53
- "running2"
54
- "done2"
55
- "failure2"
56
- }
57
-
58
- Enum "ecommerce"."users_ejs2_enum" {
59
- "created2"
60
- "running2"
61
- "done2"
62
- "failure2"
63
- }
64
-
65
- Enum "ecommerce"."users_eg_enum" {
66
- "male"
67
- "female"
68
- }
69
-
70
- Enum "ecommerce"."users_eg2_enum" {
71
- "male2"
72
- "female2"
73
- }
74
-
75
- Table "ecommerce"."users" {
76
- "id" int [pk]
77
- "name" nvarchar(255)
78
- "ejs" ecommerce.users_ejs_enum [not null]
79
- "ejs2" ecommerce.users_ejs2_enum [not null]
80
- "eg" ecommerce.users_eg_enum [not null]
81
- "eg2" ecommerce.users_eg2_enum [not null]
82
-
83
- Indexes {
84
- (name, ejs) [name: "idx_1"]
85
- }
86
- Note: 'Note on table users of schema ecommerce'
87
- }
88
-
89
- Table "schemaA"."products" {
90
- "id" int [pk]
91
- "name" nvarchar(255)
92
- "created_at" varchar(255) [default: `now()`]
93
- "lid" int
94
- "lid2" int
95
-
96
- Indexes {
97
- (lid, lid2) [unique, name: "unique_lid_lid2"]
98
- }
99
- Note: 'Note on table products of schemaA'
100
- }
101
-
102
- Table "schemaA"."locations" {
103
- "id" int [pk]
104
- "name" nvarchar(255)
105
- Note: 'This is a note in table "schemaA"."locations"'
106
- }
@@ -1,136 +0,0 @@
1
- Enum "users_pjs_enum" {
2
- "created2"
3
- "running2"
4
- "done2"
5
- "failure2"
6
- }
7
-
8
- Enum "users_pjs2_enum" {
9
- "created2"
10
- "running2"
11
- "done2"
12
- "failure2"
13
- }
14
-
15
- Enum "users_pg_enum" {
16
- "male"
17
- "female"
18
- }
19
-
20
- Enum "users_pg2_enum" {
21
- "male2"
22
- "female2"
23
- }
24
-
25
- Table "users" {
26
- "id" int [pk]
27
- "name" varchar(255)
28
- "pjs" users_pjs_enum
29
- "pjs2" users_pjs2_enum
30
- "pg" users_pg_enum
31
- "pg2" users_pg2_enum
32
- }
33
-
34
- Table "products" {
35
- "id" int [pk]
36
- "name" varchar(255) [note: 'Product name']
37
- }
38
-
39
- Table "orders" {
40
- "id1" int
41
- "id2" int
42
- "pid" int
43
- "name" varchar(255)
44
- "name2" varchar(255)
45
-
46
- Indexes {
47
- (id1, id2) [pk, type: hash, name: "CPK_1"]
48
- (name, name2) [type: btree, unique, name: "I_UNIQUE_1"]
49
- (id1, id2) [type: hash, name: "INDEX_2"]
50
- }
51
- Note: 'this is table orders'
52
- }
53
-
54
- Table "orders2" {
55
- "id1" int
56
- "id2" int
57
- "pid" int
58
-
59
- Indexes {
60
- (id1, id2) [pk, name: "testCPK"]
61
- }
62
- }
63
-
64
- Table "orders4" {
65
- "id1" int
66
- "id2" int
67
-
68
- Indexes {
69
- (id1, id2) [pk, name: "PK_orders4_id1_id2"]
70
- }
71
- }
72
-
73
- Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid" [delete: cascade]
74
-
75
- Ref:"schemaA"."products"."id" < "orders"."pid"
76
-
77
- Ref:"schemaA"."products"."id" < "orders2"."pid"
78
-
79
- Ref "CFK_1":"orders".("id1", "id2") < "orders2".("id1", "id2") [update: set null, delete: cascade]
80
-
81
- Ref:"users"."id" < "ecommerce"."users"."id"
82
-
83
- Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
84
-
85
- Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
86
-
87
- Ref:"users"."id" < "schemaA"."locations"."name"
88
-
89
- Enum "ecommerce"."users_ejs_enum" {
90
- "created2"
91
- "running2"
92
- "done2"
93
- "failure2"
94
- }
95
-
96
- Enum "ecommerce"."users_ejs2_enum" {
97
- "created2"
98
- "running2"
99
- "done2"
100
- "failure2"
101
- }
102
-
103
- Enum "ecommerce"."users_eg_enum" {
104
- "male"
105
- "female"
106
- }
107
-
108
- Enum "ecommerce"."users_eg2_enum" {
109
- "male2"
110
- "female2"
111
- }
112
-
113
- Table "ecommerce"."users" {
114
- "id" int [pk]
115
- "name" varchar(255)
116
- "ejs" ecommerce.users_ejs_enum
117
- "ejs2" ecommerce.users_ejs2_enum
118
- "eg" ecommerce.users_eg_enum
119
- "eg2" ecommerce.users_eg2_enum
120
- }
121
-
122
- Table "schemaA"."products" {
123
- "id" int [pk]
124
- "name" varchar(255) [note: 'Sample field comment on multiples schema']
125
- "lid" int
126
- }
127
-
128
- Table "schemaA"."locations" {
129
- "id" int [pk]
130
- "name" varchar(255)
131
- }
132
-
133
- Table "schemaB"."orders3" {
134
- "id1" int [pk]
135
- "id2" int
136
- }
@@ -1,101 +0,0 @@
1
- Enum "job_status" {
2
- "created2"
3
- "running2"
4
- "done2"
5
- "failure2"
6
- }
7
-
8
- Enum "gender" {
9
- "male2"
10
- "female2"
11
- }
12
-
13
- Table "users" {
14
- "id" int [pk]
15
- "name" varchar
16
- "pjs" job_status
17
- "pjs2" job_status
18
- "pg" schemaB.gender
19
- "pg2" gender
20
- "country_code" int
21
- Note: 'Sample note on table users'
22
- }
23
-
24
- Table "countries" {
25
- "code" int [pk]
26
- "name" varchar
27
- "continent_name" varchar
28
- }
29
-
30
- Table "products" {
31
- "id" int [pk]
32
- "name" varchar [note: 'Product name of table products in public schema']
33
-
34
- Indexes {
35
- id [type: hash, unique]
36
- }
37
- }
38
-
39
- Table "booking_reference" {
40
- "reference_id" NVARCHAR(10) [not null]
41
- "cust_id" NUMBER(10) [not null]
42
- "status" NVARCHAR(1) [not null]
43
-
44
- Indexes {
45
- (reference_id, cust_id) [pk]
46
- }
47
- }
48
-
49
- Table "br_flight" {
50
- "reference_id" NVARCHAR(10) [not null]
51
- "cust_id" NUMBER(10) [not null]
52
- "flight_id" NVARCHAR(10) [not null]
53
-
54
- Indexes {
55
- (reference_id, flight_id) [pk]
56
- }
57
- }
58
-
59
- Ref "fk_1":"schemaA"."locations"."id" < "schemaA"."products"."lid"
60
-
61
- Ref:"users"."id" < "ecommerce"."users"."id"
62
-
63
- Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
64
-
65
- Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
66
-
67
- Ref:"users"."id" < "schemaA"."locations"."name"
68
-
69
- Ref "fk_composite":"booking_reference".("reference_id", "cust_id") < "br_flight".("reference_id", "cust_id")
70
-
71
- Ref "fk_country_code":"countries"."code" < "users"."country_code"
72
-
73
- Enum "schemaB"."gender" {
74
- "male"
75
- "female"
76
- }
77
-
78
- Table "ecommerce"."users" {
79
- "id" int [pk]
80
- "name" varchar
81
- "ejs" job_status
82
- "ejs2" job_status
83
- "eg" schemaB.gender
84
- "eg2" gender
85
- }
86
-
87
- Table "schemaA"."products" {
88
- "id" int [pk]
89
- "name" varchar [note: 'Product name of schemaA']
90
- "lid" int
91
-
92
- Indexes {
93
- (id, name) [name: "product_status"]
94
- }
95
- }
96
-
97
- Table "schemaA"."locations" {
98
- "id" int [pk]
99
- "name" varchar
100
- Note: 'This is a note in table "locations"'
101
- }