@dbml/cli 9.0.0-optional-ref.5 → 9.0.0-optional-ref.6
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 +30 -0
- package/__tests__/db2dbml/mysql/dbml-error.log +39 -0
- package/__tests__/db2dbml/oracle/dbml-error.log +42 -0
- package/__tests__/db2dbml/postgres/dbml-error.log +21 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
- 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 +5 -0
- package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +446 -0
- package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +5 -0
- package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +4 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
- 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/out-files/multiple_schema.out.sql +1 -1
- package/__tests__/dbml2sql/syntax-error/dbml-error.log +5 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +20 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +2 -2
- package/__tests__/sql2dbml/filename --mysql --out-file/expect-out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --mysql stdout/stdout.txt +6 -6
- package/__tests__/sql2dbml/filename --oracle --out-file/expect-out-files/schema.dbml +11 -11
- package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
- package/__tests__/sql2dbml/filename --out-file/expect-out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres --out-file/expect-out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
- package/__tests__/sql2dbml/filename --postgres stdout/stdout.txt +6 -6
- package/__tests__/sql2dbml/filename --snowflake stdout/stdout.txt +13 -13
- package/__tests__/sql2dbml/filename stdout/stdout.txt +6 -6
- package/__tests__/sql2dbml/filenames --mysql --out-file/expect-out-files/schema.dbml +14 -14
- package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --mysql stdout/stdout.txt +14 -14
- package/__tests__/sql2dbml/filenames --out-file/expect-out-files/schema.dbml +14 -14
- package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres --out-file/expect-out-files/schema.dbml +14 -14
- package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
- package/__tests__/sql2dbml/filenames --postgres stdout/stdout.txt +14 -14
- package/__tests__/sql2dbml/filenames stdout/stdout.txt +14 -14
- package/__tests__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +5 -5
- package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +1 -1
- package/__tests__/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
- package/__tests__/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +20 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +20 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +20 -0
- package/lib/index.js +5 -5
- package/package.json +5 -5
package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -300,3 +300,23 @@ undefined
|
|
|
300
300
|
|
|
301
301
|
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
302
302
|
|
|
303
|
+
2026-07-08T04:46:30.528Z
|
|
304
|
+
|
|
305
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
306
|
+
|
|
307
|
+
2026-07-08T04:47:20.074Z
|
|
308
|
+
|
|
309
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
310
|
+
|
|
311
|
+
2026-07-08T04:48:13.234Z
|
|
312
|
+
|
|
313
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
314
|
+
|
|
315
|
+
2026-07-08T04:50:39.616Z
|
|
316
|
+
|
|
317
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
318
|
+
|
|
319
|
+
2026-07-08T04:51:27.847Z
|
|
320
|
+
|
|
321
|
+
You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
|
|
322
|
+
|
package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -300,3 +300,23 @@ undefined
|
|
|
300
300
|
|
|
301
301
|
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
302
302
|
|
|
303
|
+
2026-07-08T04:46:31.826Z
|
|
304
|
+
|
|
305
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
306
|
+
|
|
307
|
+
2026-07-08T04:47:21.362Z
|
|
308
|
+
|
|
309
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
310
|
+
|
|
311
|
+
2026-07-08T04:48:14.563Z
|
|
312
|
+
|
|
313
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
314
|
+
|
|
315
|
+
2026-07-08T04:50:40.973Z
|
|
316
|
+
|
|
317
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
318
|
+
|
|
319
|
+
2026-07-08T04:51:29.156Z
|
|
320
|
+
|
|
321
|
+
You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
|
|
322
|
+
|
package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log
CHANGED
|
@@ -300,3 +300,23 @@ undefined
|
|
|
300
300
|
|
|
301
301
|
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
302
302
|
|
|
303
|
+
2026-07-08T04:46:33.193Z
|
|
304
|
+
|
|
305
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
306
|
+
|
|
307
|
+
2026-07-08T04:47:22.636Z
|
|
308
|
+
|
|
309
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
310
|
+
|
|
311
|
+
2026-07-08T04:48:15.859Z
|
|
312
|
+
|
|
313
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
314
|
+
|
|
315
|
+
2026-07-08T04:50:42.333Z
|
|
316
|
+
|
|
317
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
318
|
+
|
|
319
|
+
2026-07-08T04:51:30.476Z
|
|
320
|
+
|
|
321
|
+
You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
|
|
322
|
+
|
|
@@ -20,6 +20,6 @@ Table "CodeDef" {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
Ref "fk__CodeDef__ParentCdKey__CodeDef__CdKey":"CodeDef"."CdKey"
|
|
23
|
+
Ref "fk__CodeDef__ParentCdKey__CodeDef__CdKey":"CodeDef"."CdKey" < "CodeDef"."ParentCdKey"
|
|
24
24
|
|
|
25
|
-
Ref "fk__CodeDef__UserMasterKeyLastEditedBy__UserMaster_UserMasterKey":"UserMaster"."UserMasterKey"
|
|
25
|
+
Ref "fk__CodeDef__UserMasterKeyLastEditedBy__UserMaster_UserMasterKey":"UserMaster"."UserMasterKey" < "CodeDef"."UserMasterKeyLastEditedBy"
|
|
@@ -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"
|
|
@@ -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"
|
|
@@ -61,15 +61,15 @@ 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"
|
|
75
75
|
|
|
@@ -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
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"
|
|
@@ -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"
|
|
@@ -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"
|
|
@@ -73,15 +73,15 @@ Table "comment_on_product" {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
Ref:"orders"."id"
|
|
76
|
+
Ref:"orders"."id" ?<? "order_items"."order_id"
|
|
77
77
|
|
|
78
|
-
Ref:"products"."id"
|
|
78
|
+
Ref:"products"."id" ?<? "order_items"."product_id"
|
|
79
79
|
|
|
80
|
-
Ref:"countries"."code"
|
|
80
|
+
Ref:"countries"."code" ?<? "users"."country_code"
|
|
81
81
|
|
|
82
|
-
Ref:"countries"."code"
|
|
82
|
+
Ref:"countries"."code" ?<? "merchants"."country_code"
|
|
83
83
|
|
|
84
|
-
Ref:"merchants"."id"
|
|
84
|
+
Ref:"merchants"."id" <? "products"."merchant_id"
|
|
85
85
|
|
|
86
|
-
Ref:"users"."id"
|
|
86
|
+
Ref:"users"."id" ?<? "merchants"."admin_id"
|
|
87
87
|
|
|
@@ -446,29 +446,29 @@ Table "floor" {
|
|
|
446
446
|
"getdate" int
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
Ref:"HP_TEST"."CUSTOMERS"."CUSTOMER_ID"
|
|
449
|
+
Ref:"HP_TEST"."CUSTOMERS"."CUSTOMER_ID" < "HP_TEST"."ORDERS"."CUSTOMER_ID"
|
|
450
450
|
|
|
451
|
-
Ref:"HP_TEST"."ORDERS"."ORDER_ID"
|
|
451
|
+
Ref:"HP_TEST"."ORDERS"."ORDER_ID" ?<? "HP_TEST"."ORDER_ITEMS"."ORDER_ID"
|
|
452
452
|
|
|
453
|
-
Ref:"HP_TEST"."PRODUCTS"."PRODUCT_ID"
|
|
453
|
+
Ref:"HP_TEST"."PRODUCTS"."PRODUCT_ID" < "HP_TEST"."ORDER_ITEMS"."PRODUCT_ID"
|
|
454
454
|
|
|
455
|
-
Ref:"TEST_2024_06_28_10_01_ZQMIMY"."ONE".("BAR", "FOO")
|
|
455
|
+
Ref:"TEST_2024_06_28_10_01_ZQMIMY"."ONE".("BAR", "FOO") < "TEST_2024_06_28_10_01_ZQMIMY"."TWO".("XYZ", "ABC")
|
|
456
456
|
|
|
457
|
-
Ref:"TEST_2024_06_28_10_01_ZQMIMY"."ONE"."FOO"
|
|
457
|
+
Ref:"TEST_2024_06_28_10_01_ZQMIMY"."ONE"."FOO" < "TEST_2024_06_28_10_01_ZQMIMY"."TWO"."QWE"
|
|
458
458
|
|
|
459
|
-
Ref:"T_OUT_2"."C2"
|
|
459
|
+
Ref:"T_OUT_2"."C2" < "T_OUT_3"."C3"
|
|
460
460
|
|
|
461
|
-
Ref:"T_OUT_5"."C2"
|
|
461
|
+
Ref:"T_OUT_5"."C2" < "T_OUT_6"."C3"
|
|
462
462
|
|
|
463
|
-
Ref:"T_OUT_5"."C2"
|
|
463
|
+
Ref:"T_OUT_5"."C2" < "T_CONSTRAINT_3"."C3"
|
|
464
464
|
|
|
465
|
-
Ref:"T_OUT_5"."C2"
|
|
465
|
+
Ref:"T_OUT_5"."C2" < "T_CONSTRAINT_4"."C3"
|
|
466
466
|
|
|
467
|
-
Ref:"T_OUT_5"."C2"
|
|
467
|
+
Ref:"T_OUT_5"."C2" < "T_CONSTRAINT_5"."C3"
|
|
468
468
|
|
|
469
|
-
Ref:"T_OUT_5"."C2"
|
|
469
|
+
Ref:"T_OUT_5"."C2" < "T_CONSTRAINT_6"."C3"
|
|
470
470
|
|
|
471
|
-
Ref:"T_OUT_5"."C2"
|
|
471
|
+
Ref:"T_OUT_5"."C2" ?<? "T_CONSTRAINT_8"."C3"
|
|
472
472
|
|
|
473
|
-
Ref:"T_OUT_5"."C2"
|
|
473
|
+
Ref:"T_OUT_5"."C2" ?<? "T_CONSTRAINT_9"."C3"
|
|
474
474
|
|
|
@@ -61,15 +61,15 @@ 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"
|
|
75
75
|
|
|
@@ -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
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(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
|
|
|
52
52
|
Table "country" {
|
|
53
53
|
"id" int [pk]
|
|
@@ -89,11 +89,11 @@ Table "customer" {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
Ref:"country"."id"
|
|
92
|
+
Ref:"country"."id" ?<? "city"."country_id"
|
|
93
93
|
|
|
94
|
-
Ref:"city"."id"
|
|
94
|
+
Ref:"city"."id" ?<? "address"."city_id"
|
|
95
95
|
|
|
96
|
-
Ref:"address"."id"
|
|
96
|
+
Ref:"address"."id" ?<? "customer"."address_id"
|
|
97
97
|
|
|
98
98
|
Table "category" {
|
|
99
99
|
"id" int [pk]
|
|
@@ -157,17 +157,17 @@ Table "inventory" {
|
|
|
157
157
|
"last_update" timestamp
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
Ref:"category"."id"
|
|
160
|
+
Ref:"category"."id" ?<? "film_category"."category_id"
|
|
161
161
|
|
|
162
162
|
Ref:"inventory"."film_id" ?<? "film_text"."film_id"
|
|
163
163
|
|
|
164
|
-
Ref:"language"."id"
|
|
164
|
+
Ref:"language"."id" ?<? "film"."language_id"
|
|
165
165
|
|
|
166
|
-
Ref:"language"."id"
|
|
166
|
+
Ref:"language"."id" ?<? "film"."original_language_id"
|
|
167
167
|
|
|
168
|
-
Ref:"film"."id"
|
|
168
|
+
Ref:"film"."id" ?<? "film_actor"."film_id"
|
|
169
169
|
|
|
170
|
-
Ref:"actor"."id"
|
|
170
|
+
Ref:"actor"."id" ?<? "film_actor"."actor_id"
|
|
171
171
|
|
|
172
|
-
Ref:"film"."id"
|
|
172
|
+
Ref:"film"."id" ?<? "inventory"."film_id"
|
|
173
173
|
|