@dbml/cli 10.4.0-alpha.1 → 10.4.0-metadata-ref-type.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 (48) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +44 -0
  2. package/__tests__/db2dbml/mysql/dbml-error.log +12 -0
  3. package/__tests__/db2dbml/oracle/dbml-error.log +42 -0
  4. package/__tests__/db2dbml/postgres/dbml-error.log +21 -0
  5. package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
  6. package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +3 -3
  7. package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
  8. package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
  9. package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
  10. package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
  11. package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
  12. package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
  13. package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +20 -0
  14. package/__tests__/dbml2sql/multifile error entry-syntax-error/stdout.txt +1 -1
  15. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +1784 -0
  16. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +20 -0
  17. package/__tests__/dbml2sql/multifile error imported-syntax-error/stdout.txt +1 -1
  18. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +16 -0
  19. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +9 -9
  20. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  21. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  22. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  23. package/__tests__/dbml2sql/syntax-error/dbml-error.log +20 -0
  24. package/__tests__/dbml2sql/syntax-error/stdout.txt +1 -1
  25. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +16 -0
  26. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/stdout.txt +1 -1
  27. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +16 -0
  28. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +16 -0
  29. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +16 -0
  30. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +16 -0
  31. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +16 -0
  32. package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
  33. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
  34. package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
  35. package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
  36. package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
  37. package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
  38. package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
  39. package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +9 -9
  40. package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
  41. package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
  42. package/__tests__/sql2dbml/syntax-error/dbml-error.log +16 -0
  43. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +16 -0
  44. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +1 -1
  45. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +16 -0
  46. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +1 -1
  47. package/lib/index.js +5 -5
  48. package/package.json +5 -5
@@ -23,3 +23,23 @@
23
23
  ./in-files/broken.dbml(4,1): Expect an identifier
24
24
  ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
25
25
 
26
+ 2026-10-19T04:21:56.473Z
27
+
28
+ ./in-files/broken.dbml(4,1): Expect an identifier
29
+ ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
30
+
31
+ 2026-10-19T04:25:06.491Z
32
+
33
+ ./in-files/broken.dbml(4,1): Expect an identifier
34
+ ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
35
+
36
+ 2026-10-19T08:37:38.016Z
37
+
38
+ ./in-files/broken.dbml(4,1): Expect an identifier
39
+ ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string, a color literal, a number literal, or a boolean literal
40
+
41
+ 2026-10-20T03:59:07.937Z
42
+
43
+ ./in-files/broken.dbml(4,1): Expect an identifier
44
+ ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
45
+
@@ -1,5 +1,5 @@
1
1
  ERROR:
2
2
  ./in-files/broken.dbml(4,1): Expect an identifier
3
- ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string or a color literal
3
+ ./in-files/broken.dbml(2,11): Custom setting 'pk name varchar' must be a string, a color literal, a number literal, or a boolean literal
4
4
 
5
5
  A complete log can be found in:
@@ -18,3 +18,19 @@
18
18
 
19
19
  ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
20
20
 
21
+ 2026-10-19T04:21:57.114Z
22
+
23
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
24
+
25
+ 2026-10-19T04:25:07.062Z
26
+
27
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
28
+
29
+ 2026-10-19T08:37:38.605Z
30
+
31
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
32
+
33
+ 2026-10-20T03:59:08.733Z
34
+
35
+ ./in-files/main.dbml(3,17): Table 'products' does not exist in Schema 'public'
36
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: SQL Server
3
- -- Generated at: 2026-07-22T11:09:56.224Z
3
+ -- Generated at: 2026-10-20T03:59:14.089Z
4
4
 
5
5
  CREATE SCHEMA [schemaB]
6
6
  GO
@@ -14,10 +14,10 @@ GO
14
14
  CREATE TABLE [users] (
15
15
  [id] int PRIMARY KEY,
16
16
  [name] nvarchar(255),
17
- [pjs] nvarchar(255) NOT NULL CHECK ([pjs] IN ('created2', 'running2', 'done2', 'failure2')),
18
- [pjs2] nvarchar(255) NOT NULL CHECK ([pjs2] IN ('created2', 'running2', 'done2', 'failure2')),
19
- [pg] nvarchar(255) NOT NULL CHECK ([pg] IN ('male', 'female')),
20
- [pg2] nvarchar(255) NOT NULL CHECK ([pg2] IN ('male2', 'female2'))
17
+ [pjs] nvarchar(255) CHECK ([pjs] IN ('created2', 'running2', 'done2', 'failure2')),
18
+ [pjs2] nvarchar(255) CHECK ([pjs2] IN ('created2', 'running2', 'done2', 'failure2')),
19
+ [pg] nvarchar(255) CHECK ([pg] IN ('male', 'female')),
20
+ [pg2] nvarchar(255) CHECK ([pg2] IN ('male2', 'female2'))
21
21
  )
22
22
  GO
23
23
 
@@ -30,10 +30,10 @@ GO
30
30
  CREATE TABLE [ecommerce].[users] (
31
31
  [id] int PRIMARY KEY,
32
32
  [name] nvarchar(255),
33
- [ejs] nvarchar(255) NOT NULL CHECK ([ejs] IN ('created2', 'running2', 'done2', 'failure2')),
34
- [ejs2] nvarchar(255) NOT NULL CHECK ([ejs2] IN ('created2', 'running2', 'done2', 'failure2')),
35
- [eg] nvarchar(255) NOT NULL CHECK ([eg] IN ('male', 'female')),
36
- [eg2] nvarchar(255) NOT NULL CHECK ([eg2] IN ('male2', 'female2'))
33
+ [ejs] nvarchar(255) CHECK ([ejs] IN ('created2', 'running2', 'done2', 'failure2')),
34
+ [ejs2] nvarchar(255) CHECK ([ejs2] IN ('created2', 'running2', 'done2', 'failure2')),
35
+ [eg] nvarchar(255) CHECK ([eg] IN ('male', 'female')),
36
+ [eg2] nvarchar(255) CHECK ([eg2] IN ('male2', 'female2'))
37
37
  )
38
38
  GO
39
39
 
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2026-07-22T11:09:56.824Z
3
+ -- Generated at: 2026-10-20T03:59:15.065Z
4
4
 
5
5
  CREATE SCHEMA `schemaB`;
6
6
 
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: Oracle
3
- -- Generated at: 2026-07-22T11:09:57.428Z
3
+ -- Generated at: 2026-10-20T03:59:16.092Z
4
4
 
5
5
  CREATE USER "C##test01"
6
6
  NO AUTHENTICATION
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-07-22T11:09:58.023Z
3
+ -- Generated at: 2026-10-20T03:59:17.256Z
4
4
 
5
5
  CREATE SCHEMA "schemaB";
6
6
 
@@ -23,3 +23,23 @@
23
23
  ecommerce.dbml(17,24): Expect an identifier
24
24
  ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
25
25
 
26
+ 2026-10-19T04:22:04.375Z
27
+
28
+ ecommerce.dbml(17,24): Expect an identifier
29
+ ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
30
+
31
+ 2026-10-19T04:25:13.499Z
32
+
33
+ ecommerce.dbml(17,24): Expect an identifier
34
+ ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
35
+
36
+ 2026-10-19T08:37:45.397Z
37
+
38
+ ecommerce.dbml(17,24): Expect an identifier
39
+ ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string, a color literal, a number literal, or a boolean literal
40
+
41
+ 2026-10-20T03:59:19.149Z
42
+
43
+ ecommerce.dbml(17,24): Expect an identifier
44
+ ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
45
+
@@ -1,5 +1,5 @@
1
1
  ERROR:
2
2
  ecommerce.dbml(17,24): Expect an identifier
3
- ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string or a color literal
3
+ ecommerce.dbml(17,30): Custom setting 'pk manager_staff_id int' must be a string, a color literal, a number literal, or a boolean literal
4
4
 
5
5
  A complete log can be found in:
@@ -18,3 +18,19 @@
18
18
 
19
19
  You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
20
20
 
21
+ 2026-10-19T04:22:05.122Z
22
+
23
+ You have a syntax error at "schema.sql". Column "name" do not exist in table "Users"
24
+
25
+ 2026-10-19T04:25:14.187Z
26
+
27
+ You have a syntax error at "schema.sql". Column "name" do not exist in table "Users"
28
+
29
+ 2026-10-19T08:37:46.110Z
30
+
31
+ You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
32
+
33
+ 2026-10-20T03:59:20.292Z
34
+
35
+ You have a syntax error at "schema.sql". Column "name" do not exist in table "Users"
36
+
@@ -1,4 +1,4 @@
1
1
  ERROR:
2
- You have a syntax error at "schema.sql" line 1 column 1. Column "name" do not exist in table "Users"
2
+ You have a syntax error at "schema.sql". Column "name" do not exist in table "Users"
3
3
 
4
4
  A complete log can be found in:
@@ -18,3 +18,19 @@
18
18
 
19
19
  You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
20
20
 
21
+ 2026-10-19T04:22:05.836Z
22
+
23
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
24
+
25
+ 2026-10-19T04:25:14.841Z
26
+
27
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
28
+
29
+ 2026-10-19T08:37:46.812Z
30
+
31
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
32
+
33
+ 2026-10-20T03:59:21.220Z
34
+
35
+ You have a syntax error at "schema.sql" line 1 column 13. Table "Users" not found
36
+
@@ -18,3 +18,19 @@
18
18
 
19
19
  You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
20
20
 
21
+ 2026-10-19T04:22:06.549Z
22
+
23
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
24
+
25
+ 2026-10-19T04:25:15.512Z
26
+
27
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
28
+
29
+ 2026-10-19T08:37:47.525Z
30
+
31
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
32
+
33
+ 2026-10-20T03:59:22.344Z
34
+
35
+ You have a syntax error at "schema.sql" line 5 column 19. Column "name" not found in table "Users"
36
+
@@ -18,3 +18,19 @@
18
18
 
19
19
  You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
20
20
 
21
+ 2026-10-19T04:22:07.245Z
22
+
23
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
24
+
25
+ 2026-10-19T04:25:16.225Z
26
+
27
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
28
+
29
+ 2026-10-19T08:37:48.244Z
30
+
31
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
32
+
33
+ 2026-10-20T03:59:23.283Z
34
+
35
+ You have a syntax error at "schema.sql" line 5 column 19. Table "Posts" not found
36
+
@@ -18,3 +18,19 @@
18
18
 
19
19
  You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
20
20
 
21
+ 2026-10-19T04:22:07.927Z
22
+
23
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
24
+
25
+ 2026-10-19T04:25:16.906Z
26
+
27
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
28
+
29
+ 2026-10-19T08:37:48.934Z
30
+
31
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
32
+
33
+ 2026-10-20T03:59:24.107Z
34
+
35
+ You have a syntax error at "schema.sql" line 1 column 28. Table Users not found
36
+
@@ -18,3 +18,19 @@
18
18
 
19
19
  You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
20
20
 
21
+ 2026-10-19T04:22:08.603Z
22
+
23
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
24
+
25
+ 2026-10-19T04:25:17.560Z
26
+
27
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
28
+
29
+ 2026-10-19T08:37:49.632Z
30
+
31
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
32
+
33
+ 2026-10-20T03:59:24.899Z
34
+
35
+ You have a syntax error at "schema.sql" line 5 column 18. Table "Posts" not found
36
+
@@ -61,14 +61,14 @@ Table "countries" {
61
61
  "continent_name" varchar(255)
62
62
  }
63
63
 
64
- Ref:"orders"."id" < "order_items"."order_id"
64
+ Ref:"orders"."id" ?<? "order_items"."order_id"
65
65
 
66
- Ref:"products"."id" < "order_items"."product_id"
66
+ Ref:"products"."id" ?<? "order_items"."product_id"
67
67
 
68
- Ref:"countries"."code" < "users"."country_code"
68
+ Ref:"countries"."code" ?<? "users"."country_code"
69
69
 
70
- Ref:"countries"."code" < "merchants"."country_code"
70
+ Ref:"countries"."code" ?<? "merchants"."country_code"
71
71
 
72
- Ref:"merchants"."id" < "products"."merchant_id"
72
+ Ref:"merchants"."id" <? "products"."merchant_id"
73
73
 
74
- Ref:"users"."id" < "merchants"."admin_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" < "employees"."department_id"
61
+ Ref "fk_emp_dept":"departments"."dept_id" ?<? "employees"."department_id"
62
62
 
63
- Ref "fk_dept_location":"locations"."location_id" < "departments"."location_id"
63
+ Ref "fk_dept_location":"locations"."location_id" ?<? "departments"."location_id"
64
64
 
65
- Ref "fk_loc_country":"countries"."country_code" < "locations"."country_code"
65
+ Ref "fk_loc_country":"countries"."country_code" ?<? "locations"."country_code"
66
66
 
67
- Ref "fk_emp_manager":"employees"."emp_id" < "employees"."manager_id"
67
+ Ref "fk_emp_manager":"employees"."emp_id" ?<? "employees"."manager_id"
68
68
 
69
- Ref "fk_dept_manager":"employees"."emp_id" < "departments"."manager_id"
69
+ Ref "fk_dept_manager":"employees"."emp_id" ?<? "departments"."manager_id"
70
70
 
71
- Ref:"departments"."dept_id" < "projects"."dept_id"
71
+ Ref:"departments"."dept_id" ?<? "projects"."dept_id"
72
72
 
73
- Ref:"employees"."emp_id" < "assignments"."emp_id"
73
+ Ref:"employees"."emp_id" ?<? "assignments"."emp_id"
74
74
 
75
- Ref:"projects"."project_id" < "assignments"."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") < "task_hours".("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" < "projects"."lead_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" < "projects"."backup_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" < "project_tasks"."assigned_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" < "order_items"."order_id"
64
+ Ref:"orders"."id" ?<? "order_items"."order_id"
65
65
 
66
- Ref:"products"."id" < "order_items"."product_id"
66
+ Ref:"products"."id" ?<? "order_items"."product_id"
67
67
 
68
- Ref:"countries"."code" < "users"."country_code"
68
+ Ref:"countries"."code" ?<? "users"."country_code"
69
69
 
70
- Ref:"countries"."code" < "merchants"."country_code"
70
+ Ref:"countries"."code" ?<? "merchants"."country_code"
71
71
 
72
- Ref:"merchants"."id" < "products"."merchant_id"
72
+ Ref:"merchants"."id" <? "products"."merchant_id"
73
73
 
74
- Ref:"users"."id" < "merchants"."admin_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" < "order_items"."order_id"
64
+ Ref:"orders"."id" ?<? "order_items"."order_id"
65
65
 
66
- Ref:"products"."id" < "order_items"."product_id"
66
+ Ref:"products"."id" ?<? "order_items"."product_id"
67
67
 
68
- Ref:"countries"."code" < "users"."country_code"
68
+ Ref:"countries"."code" ?<? "users"."country_code"
69
69
 
70
- Ref:"countries"."code" < "merchants"."country_code"
70
+ Ref:"countries"."code" ?<? "merchants"."country_code"
71
71
 
72
- Ref:"merchants"."id" < "products"."merchant_id"
72
+ Ref:"merchants"."id" <? "products"."merchant_id"
73
73
 
74
- Ref:"users"."id" < "merchants"."admin_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" < "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" < "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" < "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" < "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" < "rental"."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" < "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" < "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" < "customer"."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" < "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
160
+ Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" < "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" < "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" < "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" < "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" < "inventory"."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" < "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" < "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" < "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" < "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" < "rental"."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" < "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" < "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" < "customer"."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" < "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
160
+ Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" < "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" < "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" < "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" < "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" < "inventory"."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" < "staff"."store_id"
42
+ Ref:"store"."id" ?<? "staff"."store_id"
43
43
 
44
- Ref:"staff"."id" < "store"."manager_staff_id"
44
+ Ref:"staff"."id" ?<? "store"."manager_staff_id"
45
45
 
46
- Ref:"staff"."id" < "payment"."staff_id"
46
+ Ref:"staff"."id" ?<? "payment"."staff_id"
47
47
 
48
- Ref:"rental"."id" < "payment"."rental_id"
48
+ Ref:"rental"."id" ?<? "payment"."rental_id"
49
49
 
50
- Ref:"staff"."id" < "rental"."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" < "city"."country_id"
91
+ Ref:"country"."id" ?<? "city"."country_id"
92
92
 
93
- Ref:"city"."id" < "address"."city_id"
93
+ Ref:"city"."id" ?<? "address"."city_id"
94
94
 
95
- Ref:"address"."id" < "customer"."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" < "film_category"."category_id"
158
+ Ref:"category"."id" ?<? "film_category"."category_id"
159
159
 
160
- Ref:"inventory"."film_id" < "film_text"."film_id"
160
+ Ref:"inventory"."film_id" ?<? "film_text"."film_id"
161
161
 
162
- Ref:"language"."id" < "film"."language_id"
162
+ Ref:"language"."id" ?<? "film"."language_id"
163
163
 
164
- Ref:"language"."id" < "film"."original_language_id"
164
+ Ref:"language"."id" ?<? "film"."original_language_id"
165
165
 
166
- Ref:"film"."id" < "film_actor"."film_id"
166
+ Ref:"film"."id" ?<? "film_actor"."film_id"
167
167
 
168
- Ref:"actor"."id" < "film_actor"."actor_id"
168
+ Ref:"actor"."id" ?<? "film_actor"."actor_id"
169
169
 
170
- Ref:"film"."id" < "inventory"."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) [not null, check: `[pjs] IN ('created2', 'running2', 'done2', 'failure2')`]
5
- "pjs2" nvarchar(255) [not null, check: `[pjs2] IN ('created2', 'running2', 'done2', 'failure2')`]
6
- "pg" nvarchar(255) [not null, check: `[pg] IN ('male', 'female')`]
7
- "pg2" nvarchar(255) [not null, check: `[pg2] IN ('male2', 'female2')`]
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" {
@@ -12,7 +12,7 @@ Table "products" {
12
12
  "name" nvarchar(255) [note: 'Product name']
13
13
  }
14
14
 
15
- Ref:"schemaA"."locations"."id" < "schemaA"."products"."lid"
15
+ Ref:"schemaA"."locations"."id" ?<? "schemaA"."products"."lid"
16
16
 
17
17
  Ref "FK_1":"schemaA"."locations"."id" < "schemaA"."products"."lid2"
18
18
 
@@ -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) [not null, check: `[ejs] IN ('created2', 'running2', 'done2', 'failure2')`]
31
- "ejs2" nvarchar(255) [not null, check: `[ejs2] IN ('created2', 'running2', 'done2', 'failure2')`]
32
- "eg" nvarchar(255) [not null, check: `[eg] IN ('male', 'female')`]
33
- "eg2" nvarchar(255) [not null, check: `[eg2] IN ('male2', 'female2')`]
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"]