@dbml/cli 10.1.1 → 10.2.1-expose-diagnostic-filepath.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.
- package/__tests__/db2dbml/mssql/dbml-error.log +54 -859
- package/__tests__/db2dbml/mysql/dbml-error.log +10 -1113
- package/__tests__/db2dbml/oracle/dbml-error.log +69 -1203
- package/__tests__/db2dbml/postgres/dbml-error.log +25 -599
- package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --oracle --out-file/expect-out-files/schema.sql +2 -2
- package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --oracle stdout/stdout.txt +2 -2
- package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +7 -279
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +5117 -30821
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +7 -210
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +5 -173
- package/__tests__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -30
- package/__tests__/dbml2sql/multiple_schema_mssql/expect-out-files/multiple_schema.out.sql +8 -8
- package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -30
- package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -30
- package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/syntax-error/dbml-error.log +7 -426
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +5 -343
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +5 -343
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +5 -343
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +5 -339
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +5 -339
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +5 -339
- package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
- package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +8 -8
- package/__tests__/sql2dbml/multiple_schema_mssql/in-files/multiple_schema.in.sql +8 -8
- package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +1 -1
- package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
- package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +5 -314
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +5 -311
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +5 -307
- package/lib/index.js +207 -151
- package/package.json +5 -5
- package/dbml-error.log +0 -3
|
@@ -61,14 +61,14 @@ Table "countries" {
|
|
|
61
61
|
"continent_name" varchar(255)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
Ref:"orders"."id"
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
65
|
|
|
66
|
-
Ref:"products"."id"
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
67
|
|
|
68
|
-
Ref:"countries"."code"
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
69
|
|
|
70
|
-
Ref:"countries"."code"
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
71
|
|
|
72
|
-
Ref:"merchants"."id"
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
73
|
|
|
74
|
-
Ref:"users"."id"
|
|
74
|
+
Ref:"users"."id" < "merchants"."admin_id"
|
|
@@ -58,26 +58,26 @@ Table "task_hours" {
|
|
|
58
58
|
"hours_worked" NUMBER(5,2)
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
Ref "fk_emp_dept":"departments"."dept_id"
|
|
61
|
+
Ref "fk_emp_dept":"departments"."dept_id" < "employees"."department_id"
|
|
62
62
|
|
|
63
|
-
Ref "fk_dept_location":"locations"."location_id"
|
|
63
|
+
Ref "fk_dept_location":"locations"."location_id" < "departments"."location_id"
|
|
64
64
|
|
|
65
|
-
Ref "fk_loc_country":"countries"."country_code"
|
|
65
|
+
Ref "fk_loc_country":"countries"."country_code" < "locations"."country_code"
|
|
66
66
|
|
|
67
|
-
Ref "fk_emp_manager":"employees"."emp_id"
|
|
67
|
+
Ref "fk_emp_manager":"employees"."emp_id" < "employees"."manager_id"
|
|
68
68
|
|
|
69
|
-
Ref "fk_dept_manager":"employees"."emp_id"
|
|
69
|
+
Ref "fk_dept_manager":"employees"."emp_id" < "departments"."manager_id"
|
|
70
70
|
|
|
71
|
-
Ref:"departments"."dept_id"
|
|
71
|
+
Ref:"departments"."dept_id" < "projects"."dept_id"
|
|
72
72
|
|
|
73
|
-
Ref:"employees"."emp_id"
|
|
73
|
+
Ref:"employees"."emp_id" < "assignments"."emp_id"
|
|
74
74
|
|
|
75
|
-
Ref:"projects"."project_id"
|
|
75
|
+
Ref:"projects"."project_id" < "assignments"."project_id"
|
|
76
76
|
|
|
77
|
-
Ref "fk_task_hours_project_task":"project_tasks".("project_id", "task_id")
|
|
77
|
+
Ref "fk_task_hours_project_task":"project_tasks".("project_id", "task_id") < "task_hours".("project_id", "task_id")
|
|
78
78
|
|
|
79
|
-
Ref "fk_proj_lead_emp":"employees"."emp_id"
|
|
79
|
+
Ref "fk_proj_lead_emp":"employees"."emp_id" < "projects"."lead_emp_id"
|
|
80
80
|
|
|
81
|
-
Ref "fk_proj_backup_emp":"employees"."emp_id"
|
|
81
|
+
Ref "fk_proj_backup_emp":"employees"."emp_id" < "projects"."backup_emp_id"
|
|
82
82
|
|
|
83
|
-
Ref "fk_task_assigned_emp":"employees"."emp_id"
|
|
83
|
+
Ref "fk_task_assigned_emp":"employees"."emp_id" < "project_tasks"."assigned_emp_id"
|
|
@@ -61,14 +61,14 @@ Table "countries" {
|
|
|
61
61
|
"continent_name" varchar
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
Ref:"orders"."id"
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
65
|
|
|
66
|
-
Ref:"products"."id"
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
67
|
|
|
68
|
-
Ref:"countries"."code"
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
69
|
|
|
70
|
-
Ref:"countries"."code"
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
71
|
|
|
72
|
-
Ref:"merchants"."id"
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
73
|
|
|
74
|
-
Ref:"users"."id"
|
|
74
|
+
Ref:"users"."id" < "merchants"."admin_id"
|
|
@@ -61,14 +61,14 @@ Table "countries" {
|
|
|
61
61
|
"continent_name" varchar
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
Ref:"orders"."id"
|
|
64
|
+
Ref:"orders"."id" < "order_items"."order_id"
|
|
65
65
|
|
|
66
|
-
Ref:"products"."id"
|
|
66
|
+
Ref:"products"."id" < "order_items"."product_id"
|
|
67
67
|
|
|
68
|
-
Ref:"countries"."code"
|
|
68
|
+
Ref:"countries"."code" < "users"."country_code"
|
|
69
69
|
|
|
70
|
-
Ref:"countries"."code"
|
|
70
|
+
Ref:"countries"."code" < "merchants"."country_code"
|
|
71
71
|
|
|
72
|
-
Ref:"merchants"."id"
|
|
72
|
+
Ref:"merchants"."id" < "products"."merchant_id"
|
|
73
73
|
|
|
74
|
-
Ref:"users"."id"
|
|
74
|
+
Ref:"users"."id" < "merchants"."admin_id"
|
|
@@ -39,15 +39,15 @@ Table "rental" {
|
|
|
39
39
|
"last_update" timestamp
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
Ref:"store"."id"
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
43
|
|
|
44
|
-
Ref:"staff"."id"
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
45
|
|
|
46
|
-
Ref:"staff"."id"
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
47
|
|
|
48
|
-
Ref:"rental"."id"
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
49
|
|
|
50
|
-
Ref:"staff"."id"
|
|
50
|
+
Ref:"staff"."id" < "rental"."staff_id"
|
|
51
51
|
Table "country" {
|
|
52
52
|
"id" int [pk]
|
|
53
53
|
"country" varchar(255)
|
|
@@ -88,11 +88,11 @@ Table "customer" {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
Ref:"country"."id"
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
92
|
|
|
93
|
-
Ref:"city"."id"
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
94
|
|
|
95
|
-
Ref:"address"."id"
|
|
95
|
+
Ref:"address"."id" < "customer"."address_id"
|
|
96
96
|
Table "category" {
|
|
97
97
|
"id" int [pk]
|
|
98
98
|
"name" varchar(255)
|
|
@@ -155,16 +155,16 @@ Table "inventory" {
|
|
|
155
155
|
"last_update" timestamp
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
Ref:"category"."id"
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
159
|
|
|
160
|
-
Ref:"inventory"."film_id"
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
161
|
|
|
162
|
-
Ref:"language"."id"
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"film"."id"
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
167
|
|
|
168
|
-
Ref:"actor"."id"
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
169
|
|
|
170
|
-
Ref:"film"."id"
|
|
170
|
+
Ref:"film"."id" < "inventory"."film_id"
|
|
@@ -39,15 +39,15 @@ Table "rental" {
|
|
|
39
39
|
"last_update" timestamp
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
Ref:"store"."id"
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
43
|
|
|
44
|
-
Ref:"staff"."id"
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
45
|
|
|
46
|
-
Ref:"staff"."id"
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
47
|
|
|
48
|
-
Ref:"rental"."id"
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
49
|
|
|
50
|
-
Ref:"staff"."id"
|
|
50
|
+
Ref:"staff"."id" < "rental"."staff_id"
|
|
51
51
|
Table "country" {
|
|
52
52
|
"id" int [pk]
|
|
53
53
|
"country" varchar
|
|
@@ -88,11 +88,11 @@ Table "customer" {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
Ref:"country"."id"
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
92
|
|
|
93
|
-
Ref:"city"."id"
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
94
|
|
|
95
|
-
Ref:"address"."id"
|
|
95
|
+
Ref:"address"."id" < "customer"."address_id"
|
|
96
96
|
Table "category" {
|
|
97
97
|
"id" int [pk]
|
|
98
98
|
"name" varchar
|
|
@@ -155,16 +155,16 @@ Table "inventory" {
|
|
|
155
155
|
"last_update" timestamp
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
Ref:"category"."id"
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
159
|
|
|
160
|
-
Ref:"inventory"."film_id"
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
161
|
|
|
162
|
-
Ref:"language"."id"
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"film"."id"
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
167
|
|
|
168
|
-
Ref:"actor"."id"
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
169
|
|
|
170
|
-
Ref:"film"."id"
|
|
170
|
+
Ref:"film"."id" < "inventory"."film_id"
|
|
@@ -39,15 +39,15 @@ Table "rental" {
|
|
|
39
39
|
"last_update" timestamp
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
Ref:"store"."id"
|
|
42
|
+
Ref:"store"."id" < "staff"."store_id"
|
|
43
43
|
|
|
44
|
-
Ref:"staff"."id"
|
|
44
|
+
Ref:"staff"."id" < "store"."manager_staff_id"
|
|
45
45
|
|
|
46
|
-
Ref:"staff"."id"
|
|
46
|
+
Ref:"staff"."id" < "payment"."staff_id"
|
|
47
47
|
|
|
48
|
-
Ref:"rental"."id"
|
|
48
|
+
Ref:"rental"."id" < "payment"."rental_id"
|
|
49
49
|
|
|
50
|
-
Ref:"staff"."id"
|
|
50
|
+
Ref:"staff"."id" < "rental"."staff_id"
|
|
51
51
|
Table "country" {
|
|
52
52
|
"id" int [pk]
|
|
53
53
|
"country" varchar
|
|
@@ -88,11 +88,11 @@ Table "customer" {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
Ref:"country"."id"
|
|
91
|
+
Ref:"country"."id" < "city"."country_id"
|
|
92
92
|
|
|
93
|
-
Ref:"city"."id"
|
|
93
|
+
Ref:"city"."id" < "address"."city_id"
|
|
94
94
|
|
|
95
|
-
Ref:"address"."id"
|
|
95
|
+
Ref:"address"."id" < "customer"."address_id"
|
|
96
96
|
Table "category" {
|
|
97
97
|
"id" int [pk]
|
|
98
98
|
"name" varchar
|
|
@@ -155,16 +155,16 @@ Table "inventory" {
|
|
|
155
155
|
"last_update" timestamp
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
Ref:"category"."id"
|
|
158
|
+
Ref:"category"."id" < "film_category"."category_id"
|
|
159
159
|
|
|
160
|
-
Ref:"inventory"."film_id"
|
|
160
|
+
Ref:"inventory"."film_id" < "film_text"."film_id"
|
|
161
161
|
|
|
162
|
-
Ref:"language"."id"
|
|
162
|
+
Ref:"language"."id" < "film"."language_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" < "film"."original_language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"film"."id"
|
|
166
|
+
Ref:"film"."id" < "film_actor"."film_id"
|
|
167
167
|
|
|
168
|
-
Ref:"actor"."id"
|
|
168
|
+
Ref:"actor"."id" < "film_actor"."actor_id"
|
|
169
169
|
|
|
170
|
-
Ref:"film"."id"
|
|
170
|
+
Ref:"film"."id" < "inventory"."film_id"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Table "users" {
|
|
2
2
|
"id" int [pk]
|
|
3
3
|
"name" nvarchar(255)
|
|
4
|
-
"pjs" nvarchar(255) [
|
|
5
|
-
"pjs2" nvarchar(255) [
|
|
6
|
-
"pg" nvarchar(255) [
|
|
7
|
-
"pg2" nvarchar(255) [
|
|
4
|
+
"pjs" nvarchar(255) [check: `[pjs] IN ('created2', 'running2', 'done2', 'failure2')`]
|
|
5
|
+
"pjs2" nvarchar(255) [check: `[pjs2] IN ('created2', 'running2', 'done2', 'failure2')`]
|
|
6
|
+
"pg" nvarchar(255) [check: `[pg] IN ('male', 'female')`]
|
|
7
|
+
"pg2" nvarchar(255) [check: `[pg2] IN ('male2', 'female2')`]
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
Table "products" {
|
|
@@ -27,10 +27,10 @@ Ref:"users"."id" < "schemaA"."locations"."name"
|
|
|
27
27
|
Table "ecommerce"."users" {
|
|
28
28
|
"id" int [pk]
|
|
29
29
|
"name" nvarchar(255)
|
|
30
|
-
"ejs" nvarchar(255) [
|
|
31
|
-
"ejs2" nvarchar(255) [
|
|
32
|
-
"eg" nvarchar(255) [
|
|
33
|
-
"eg2" nvarchar(255) [
|
|
30
|
+
"ejs" nvarchar(255) [check: `[ejs] IN ('created2', 'running2', 'done2', 'failure2')`]
|
|
31
|
+
"ejs2" nvarchar(255) [check: `[ejs2] IN ('created2', 'running2', 'done2', 'failure2')`]
|
|
32
|
+
"eg" nvarchar(255) [check: `[eg] IN ('male', 'female')`]
|
|
33
|
+
"eg2" nvarchar(255) [check: `[eg2] IN ('male2', 'female2')`]
|
|
34
34
|
|
|
35
35
|
Indexes {
|
|
36
36
|
(name, ejs) [name: "idx_1"]
|
|
@@ -10,10 +10,10 @@ GO
|
|
|
10
10
|
CREATE TABLE [users] (
|
|
11
11
|
[id] int PRIMARY KEY,
|
|
12
12
|
[name] nvarchar(255),
|
|
13
|
-
[pjs] nvarchar(255)
|
|
14
|
-
[pjs2] nvarchar(255)
|
|
15
|
-
[pg] nvarchar(255)
|
|
16
|
-
[pg2] nvarchar(255)
|
|
13
|
+
[pjs] nvarchar(255) CHECK ([pjs] IN ('created2', 'running2', 'done2', 'failure2')),
|
|
14
|
+
[pjs2] nvarchar(255) CHECK ([pjs2] IN ('created2', 'running2', 'done2', 'failure2')),
|
|
15
|
+
[pg] nvarchar(255) CHECK ([pg] IN ('male', 'female')),
|
|
16
|
+
[pg2] nvarchar(255) CHECK ([pg2] IN ('male2', 'female2'))
|
|
17
17
|
)
|
|
18
18
|
GO
|
|
19
19
|
|
|
@@ -26,10 +26,10 @@ GO
|
|
|
26
26
|
CREATE TABLE [ecommerce].[users] (
|
|
27
27
|
[id] int PRIMARY KEY,
|
|
28
28
|
[name] nvarchar(255),
|
|
29
|
-
[ejs] nvarchar(255)
|
|
30
|
-
[ejs2] nvarchar(255)
|
|
31
|
-
[eg] nvarchar(255)
|
|
32
|
-
[eg2] nvarchar(255)
|
|
29
|
+
[ejs] nvarchar(255) CHECK ([ejs] IN ('created2', 'running2', 'done2', 'failure2')),
|
|
30
|
+
[ejs2] nvarchar(255) CHECK ([ejs2] IN ('created2', 'running2', 'done2', 'failure2')),
|
|
31
|
+
[eg] nvarchar(255) CHECK ([eg] IN ('male', 'female')),
|
|
32
|
+
[eg2] nvarchar(255) CHECK ([eg2] IN ('male2', 'female2'))
|
|
33
33
|
)
|
|
34
34
|
GO
|
|
35
35
|
|
|
@@ -12,7 +12,7 @@ Table "products" {
|
|
|
12
12
|
"name" nvarchar(255) [note: 'Product name']
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
Ref:"schemaA"."locations"."id"
|
|
15
|
+
Ref:"schemaA"."locations"."id" < "schemaA"."products"."lid"
|
|
16
16
|
|
|
17
17
|
Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid2"
|
|
18
18
|
|
|
@@ -70,21 +70,21 @@ Table "orders4" {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
Ref "FK_1":"schemaA"."locations"."id"
|
|
73
|
+
Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid" [delete: cascade]
|
|
74
74
|
|
|
75
|
-
Ref:"schemaA"."products"."id"
|
|
75
|
+
Ref:"schemaA"."products"."id" < "orders"."pid"
|
|
76
76
|
|
|
77
|
-
Ref:"schemaA"."products"."id"
|
|
77
|
+
Ref:"schemaA"."products"."id" < "orders2"."pid"
|
|
78
78
|
|
|
79
|
-
Ref "CFK_1":"orders".("id1", "id2")
|
|
79
|
+
Ref "CFK_1":"orders".("id1", "id2") < "orders2".("id1", "id2") [update: set null, delete: cascade]
|
|
80
80
|
|
|
81
|
-
Ref:"users"."id"
|
|
81
|
+
Ref:"users"."id" < "ecommerce"."users"."id"
|
|
82
82
|
|
|
83
|
-
Ref "name_optional":"users"."name"
|
|
83
|
+
Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
|
|
84
84
|
|
|
85
|
-
Ref:"ecommerce"."users"."id"
|
|
85
|
+
Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
|
|
86
86
|
|
|
87
|
-
Ref:"users"."id"
|
|
87
|
+
Ref:"users"."id" < "schemaA"."locations"."name"
|
|
88
88
|
|
|
89
89
|
Enum "ecommerce"."users_ejs_enum" {
|
|
90
90
|
"created2"
|
|
@@ -56,19 +56,19 @@ Table "br_flight" {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
Ref "fk_1":"schemaA"."locations"."id"
|
|
59
|
+
Ref "fk_1":"schemaA"."locations"."id" < "schemaA"."products"."lid"
|
|
60
60
|
|
|
61
|
-
Ref:"users"."id"
|
|
61
|
+
Ref:"users"."id" < "ecommerce"."users"."id"
|
|
62
62
|
|
|
63
|
-
Ref "name_optional":"users"."name"
|
|
63
|
+
Ref "name_optional":"users"."name" < "ecommerce"."users"."id"
|
|
64
64
|
|
|
65
|
-
Ref:"ecommerce"."users"."id"
|
|
65
|
+
Ref:"ecommerce"."users"."id" < "schemaA"."products"."name"
|
|
66
66
|
|
|
67
|
-
Ref:"users"."id"
|
|
67
|
+
Ref:"users"."id" < "schemaA"."locations"."name"
|
|
68
68
|
|
|
69
|
-
Ref "fk_composite":"booking_reference".("reference_id", "cust_id")
|
|
69
|
+
Ref "fk_composite":"booking_reference".("reference_id", "cust_id") < "br_flight".("reference_id", "cust_id")
|
|
70
70
|
|
|
71
|
-
Ref "fk_country_code":"countries"."code"
|
|
71
|
+
Ref "fk_country_code":"countries"."code" < "users"."country_code"
|
|
72
72
|
|
|
73
73
|
Enum "schemaB"."gender" {
|
|
74
74
|
"male"
|