@dbml/cli 5.4.1 → 5.5.1-alpha.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 (83) hide show
  1. package/package.json +4 -4
  2. package/__tests__/db2dbml/mssql/dbml-error.log +0 -44
  3. package/__tests__/db2dbml/mysql/dbml-error.log +0 -12
  4. package/__tests__/db2dbml/oracle/dbml-error.log +0 -91
  5. package/__tests__/db2dbml/oracle/out-files/schema.dbml +0 -419
  6. package/__tests__/db2dbml/postgres/dbml-error.log +0 -28
  7. package/__tests__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -0
  8. package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +0 -65
  9. package/__tests__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
  10. package/__tests__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
  11. package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +0 -61
  12. package/__tests__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
  13. package/__tests__/dbml2sql/filename --out-file/dbml-error.log +0 -0
  14. package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +0 -77
  15. package/__tests__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -0
  16. package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +0 -77
  17. package/__tests__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
  18. package/__tests__/dbml2sql/filename stdout/dbml-error.log +0 -0
  19. package/__tests__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -0
  20. package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +0 -172
  21. package/__tests__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
  22. package/__tests__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
  23. package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +0 -172
  24. package/__tests__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
  25. package/__tests__/dbml2sql/filenames --out-file/dbml-error.log +0 -0
  26. package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +0 -172
  27. package/__tests__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -0
  28. package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +0 -172
  29. package/__tests__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
  30. package/__tests__/dbml2sql/filenames stdout/dbml-error.log +0 -0
  31. package/__tests__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -0
  32. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +0 -62
  33. package/__tests__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -0
  34. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +0 -50
  35. package/__tests__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
  36. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +0 -88
  37. package/__tests__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -0
  38. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +0 -67
  39. package/__tests__/dbml2sql/syntax-error/dbml-error.log +0 -15
  40. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +0 -51
  41. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/out-files/schema.dbml +0 -0
  42. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +0 -51
  43. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/out-files/schema.dbml +0 -0
  44. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +0 -51
  45. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/out-files/schema.dbml +0 -0
  46. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +0 -51
  47. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/out-files/schema.dbml +0 -0
  48. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +0 -51
  49. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/out-files/schema.dbml +0 -0
  50. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +0 -27
  51. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/out-files/schema.dbml +0 -0
  52. package/__tests__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -0
  53. package/__tests__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -25
  54. package/__tests__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -0
  55. package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -74
  56. package/__tests__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
  57. package/__tests__/sql2dbml/filename --oracle --out-file/dbml-error.log +0 -0
  58. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +0 -83
  59. package/__tests__/sql2dbml/filename --out-file/dbml-error.log +0 -0
  60. package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -74
  61. package/__tests__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -0
  62. package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -74
  63. package/__tests__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
  64. package/__tests__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -0
  65. package/__tests__/sql2dbml/filename stdout/dbml-error.log +0 -0
  66. package/__tests__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -0
  67. package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -170
  68. package/__tests__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
  69. package/__tests__/sql2dbml/filenames --out-file/dbml-error.log +0 -0
  70. package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -170
  71. package/__tests__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -0
  72. package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -170
  73. package/__tests__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
  74. package/__tests__/sql2dbml/filenames stdout/dbml-error.log +0 -0
  75. package/__tests__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -0
  76. package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -58
  77. package/__tests__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -0
  78. package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -136
  79. package/__tests__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -0
  80. package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -101
  81. package/__tests__/sql2dbml/syntax-error/dbml-error.log +0 -51
  82. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +0 -51
  83. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +0 -51
@@ -1,51 +0,0 @@
1
- 2025-11-18T08:12:30.510Z
2
- undefined
3
-
4
- 2025-11-18T08:14:34.904Z
5
- undefined
6
-
7
- 2025-11-18T08:23:40.799Z
8
- undefined
9
-
10
- 2025-11-18T08:28:48.434Z
11
- undefined
12
-
13
- 2025-11-18T08:38:02.896Z
14
- undefined
15
-
16
- 2025-11-18T08:42:30.739Z
17
- undefined
18
-
19
- 2025-11-18T08:43:24.684Z
20
- undefined
21
-
22
- 2025-11-18T08:46:57.368Z
23
- undefined
24
-
25
- 2025-11-18T08:48:22.118Z
26
- undefined
27
-
28
- 2025-11-18T08:50:10.892Z
29
- undefined
30
-
31
- 2025-11-18T08:52:48.753Z
32
- undefined
33
-
34
- 2025-11-18T08:55:16.595Z
35
- undefined
36
-
37
- 2025-11-18T09:00:10.462Z
38
- undefined
39
-
40
- 2025-11-18T09:03:47.823Z
41
- undefined
42
-
43
- 2025-11-18T09:10:25.012Z
44
- undefined
45
-
46
- 2025-11-18T09:11:47.919Z
47
- undefined
48
-
49
- 2025-11-27T14:14:32.640Z
50
- undefined
51
-
@@ -1,51 +0,0 @@
1
- 2025-11-18T08:12:31.657Z
2
- undefined
3
-
4
- 2025-11-18T08:14:36.094Z
5
- undefined
6
-
7
- 2025-11-18T08:23:41.995Z
8
- undefined
9
-
10
- 2025-11-18T08:28:49.664Z
11
- undefined
12
-
13
- 2025-11-18T08:38:04.087Z
14
- undefined
15
-
16
- 2025-11-18T08:42:31.955Z
17
- undefined
18
-
19
- 2025-11-18T08:43:25.889Z
20
- undefined
21
-
22
- 2025-11-18T08:46:58.542Z
23
- undefined
24
-
25
- 2025-11-18T08:48:23.441Z
26
- undefined
27
-
28
- 2025-11-18T08:50:12.174Z
29
- undefined
30
-
31
- 2025-11-18T08:52:49.945Z
32
- undefined
33
-
34
- 2025-11-18T08:55:17.845Z
35
- undefined
36
-
37
- 2025-11-18T09:00:11.692Z
38
- undefined
39
-
40
- 2025-11-18T09:03:49.076Z
41
- undefined
42
-
43
- 2025-11-18T09:10:26.208Z
44
- undefined
45
-
46
- 2025-11-18T09:11:49.167Z
47
- undefined
48
-
49
- 2025-11-27T14:14:33.948Z
50
- undefined
51
-
@@ -1,51 +0,0 @@
1
- 2025-11-18T08:12:32.822Z
2
- undefined
3
-
4
- 2025-11-18T08:14:37.294Z
5
- undefined
6
-
7
- 2025-11-18T08:23:43.173Z
8
- undefined
9
-
10
- 2025-11-18T08:28:50.856Z
11
- undefined
12
-
13
- 2025-11-18T08:38:05.345Z
14
- undefined
15
-
16
- 2025-11-18T08:42:33.234Z
17
- undefined
18
-
19
- 2025-11-18T08:43:27.131Z
20
- undefined
21
-
22
- 2025-11-18T08:46:59.730Z
23
- undefined
24
-
25
- 2025-11-18T08:48:24.746Z
26
- undefined
27
-
28
- 2025-11-18T08:50:13.494Z
29
- undefined
30
-
31
- 2025-11-18T08:52:51.142Z
32
- undefined
33
-
34
- 2025-11-18T08:55:19.150Z
35
- undefined
36
-
37
- 2025-11-18T09:00:12.892Z
38
- undefined
39
-
40
- 2025-11-18T09:03:50.379Z
41
- undefined
42
-
43
- 2025-11-18T09:10:27.439Z
44
- undefined
45
-
46
- 2025-11-18T09:11:50.420Z
47
- undefined
48
-
49
- 2025-11-27T14:14:35.253Z
50
- undefined
51
-
@@ -1,51 +0,0 @@
1
- 2025-11-18T08:12:33.998Z
2
- undefined
3
-
4
- 2025-11-18T08:14:38.516Z
5
- undefined
6
-
7
- 2025-11-18T08:23:44.339Z
8
- undefined
9
-
10
- 2025-11-18T08:28:52.015Z
11
- undefined
12
-
13
- 2025-11-18T08:38:06.688Z
14
- undefined
15
-
16
- 2025-11-18T08:42:34.475Z
17
- undefined
18
-
19
- 2025-11-18T08:43:28.361Z
20
- undefined
21
-
22
- 2025-11-18T08:47:00.981Z
23
- undefined
24
-
25
- 2025-11-18T08:48:25.998Z
26
- undefined
27
-
28
- 2025-11-18T08:50:14.809Z
29
- undefined
30
-
31
- 2025-11-18T08:52:52.343Z
32
- undefined
33
-
34
- 2025-11-18T08:55:20.353Z
35
- undefined
36
-
37
- 2025-11-18T09:00:14.092Z
38
- undefined
39
-
40
- 2025-11-18T09:03:51.581Z
41
- undefined
42
-
43
- 2025-11-18T09:10:28.798Z
44
- undefined
45
-
46
- 2025-11-18T09:11:51.755Z
47
- undefined
48
-
49
- 2025-11-27T14:14:36.530Z
50
- undefined
51
-
@@ -1,27 +0,0 @@
1
- 2025-11-18T08:48:27.204Z
2
- undefined
3
-
4
- 2025-11-18T08:50:16.039Z
5
- undefined
6
-
7
- 2025-11-18T08:52:53.618Z
8
- undefined
9
-
10
- 2025-11-18T08:55:21.561Z
11
- undefined
12
-
13
- 2025-11-18T09:00:15.407Z
14
- undefined
15
-
16
- 2025-11-18T09:03:52.793Z
17
- undefined
18
-
19
- 2025-11-18T09:10:30.048Z
20
- undefined
21
-
22
- 2025-11-18T09:11:52.975Z
23
- undefined
24
-
25
- 2025-11-27T14:14:37.756Z
26
- undefined
27
-
@@ -1,25 +0,0 @@
1
- Table "UserMaster" {
2
- "UserMasterKey" "BIGINT IDENTITY(1,1)" [not null]
3
- }
4
-
5
- Table "CodeDef" {
6
- "CdKey" "BIGINT IDENTITY(1,1)" [not null]
7
- "Category" NVARCHAR(50) [not null]
8
- "Description" NVARCHAR(100)
9
- "Code" NVARCHAR(50) [not null]
10
- "ParentCdKey" BIGINT
11
- "UserMasterKeyAddedBy" BIGINT [not null]
12
- "UserMasterKeyLastEditedBy" BIGINT
13
- "AddedDtTm" DATETIMEOFFSET(7) [not null]
14
- "LastEditedDtTm" DATETIMEOFFSET(7)
15
- "EffectiveFromDtTm" DATETIMEOFFSET(7) [not null]
16
- "EffectiveThruDtTm" DATETIMEOFFSET(7)
17
-
18
- Indexes {
19
- CdKey [pk, name: "PK__CodeDef__4922449ECDD244C3"]
20
- }
21
- }
22
-
23
- Ref "fk__CodeDef__ParentCdKey__CodeDef__CdKey":"CodeDef"."CdKey" < "CodeDef"."ParentCdKey"
24
-
25
- Ref "fk__CodeDef__UserMasterKeyLastEditedBy__UserMaster_UserMasterKey":"UserMaster"."UserMasterKey" < "CodeDef"."UserMasterKeyLastEditedBy"
@@ -1,74 +0,0 @@
1
- Enum "orders_status_enum" {
2
- "created"
3
- "running"
4
- "done"
5
- "failure"
6
- }
7
-
8
- Enum "products_status_enum" {
9
- "Out of Stock"
10
- "In Stock"
11
- }
12
-
13
- Table "orders" {
14
- "id" int [pk, increment]
15
- "user_id" int [unique, not null]
16
- "status" orders_status_enum
17
- "created_at" varchar(255)
18
- }
19
-
20
- Table "order_items" {
21
- "order_id" int
22
- "product_id" int
23
- "quantity" int [default: 1]
24
- }
25
-
26
- Table "products" {
27
- "id" int [pk]
28
- "name" varchar(255)
29
- "merchant_id" int [not null]
30
- "price" int
31
- "status" products_status_enum
32
- "created_at" datetime [default: `now()`]
33
-
34
- Indexes {
35
- (merchant_id, status) [name: "product_status"]
36
- id [type: hash, unique, name: "products_index_1"]
37
- }
38
- }
39
-
40
- Table "users" {
41
- "id" int [pk]
42
- "full_name" varchar(255)
43
- "email" varchar(255) [unique]
44
- "gender" varchar(255)
45
- "date_of_birth" varchar(255)
46
- "created_at" varchar(255)
47
- "country_code" int
48
- }
49
-
50
- Table "merchants" {
51
- "id" int [pk]
52
- "merchant_name" varchar(255)
53
- "country_code" int
54
- "created_at" varchar(255)
55
- "admin_id" int
56
- }
57
-
58
- Table "countries" {
59
- "code" int [pk]
60
- "name" varchar(255)
61
- "continent_name" varchar(255)
62
- }
63
-
64
- Ref:"orders"."id" < "order_items"."order_id"
65
-
66
- Ref:"products"."id" < "order_items"."product_id"
67
-
68
- Ref:"countries"."code" < "users"."country_code"
69
-
70
- Ref:"countries"."code" < "merchants"."country_code"
71
-
72
- Ref:"merchants"."id" < "products"."merchant_id"
73
-
74
- Ref:"users"."id" < "merchants"."admin_id"
@@ -1,83 +0,0 @@
1
- Table "departments" {
2
- "dept_id" NUMBER(10) [pk]
3
- "dept_name" VARCHAR2(100)
4
- "location_id" NUMBER(10)
5
- "manager_id" NUMBER(10)
6
- }
7
-
8
- Table "locations" {
9
- "location_id" NUMBER(10) [pk]
10
- "city" VARCHAR2(100)
11
- "country_code" CHAR(2)
12
- }
13
-
14
- Table "countries" {
15
- "country_code" CHAR(2) [pk]
16
- "country_name" VARCHAR2(100)
17
- }
18
-
19
- Table "employees" {
20
- "emp_id" NUMBER(10) [pk]
21
- "emp_name" VARCHAR2(100)
22
- "department_id" NUMBER(10)
23
- "manager_id" NUMBER(10)
24
- "hire_date" DATE
25
- "location_id" NUMBER(10)
26
- }
27
-
28
- Table "projects" {
29
- "project_id" NUMBER(10) [pk]
30
- "project_name" VARCHAR2(200)
31
- "dept_id" NUMBER(10)
32
- "lead_emp_id" NUMBER(10)
33
- "backup_emp_id" NUMBER(10)
34
- }
35
-
36
- Table "assignments" {
37
- "assignment_id" NUMBER(10) [pk]
38
- "emp_id" NUMBER(10)
39
- "project_id" NUMBER(10)
40
- "start_date" DATE
41
- }
42
-
43
- Table "project_tasks" {
44
- "project_id" NUMBER(10)
45
- "task_id" NUMBER(10)
46
- "task_name" VARCHAR2(200)
47
- "assigned_emp_id" NUMBER(10)
48
-
49
- Indexes {
50
- (project_id, task_id) [pk]
51
- }
52
- }
53
-
54
- Table "task_hours" {
55
- "hour_id" NUMBER(10) [pk]
56
- "project_id" NUMBER(10)
57
- "task_id" NUMBER(10)
58
- "hours_worked" NUMBER(5,2)
59
- }
60
-
61
- Ref "fk_emp_dept":"departments"."dept_id" < "employees"."department_id"
62
-
63
- Ref "fk_dept_location":"locations"."location_id" < "departments"."location_id"
64
-
65
- Ref "fk_loc_country":"countries"."country_code" < "locations"."country_code"
66
-
67
- Ref "fk_emp_manager":"employees"."emp_id" < "employees"."manager_id"
68
-
69
- Ref "fk_dept_manager":"employees"."emp_id" < "departments"."manager_id"
70
-
71
- Ref:"departments"."dept_id" < "projects"."dept_id"
72
-
73
- Ref:"employees"."emp_id" < "assignments"."emp_id"
74
-
75
- Ref:"projects"."project_id" < "assignments"."project_id"
76
-
77
- Ref "fk_task_hours_project_task":"project_tasks".("project_id", "task_id") < "task_hours".("project_id", "task_id")
78
-
79
- Ref "fk_proj_lead_emp":"employees"."emp_id" < "projects"."lead_emp_id"
80
-
81
- Ref "fk_proj_backup_emp":"employees"."emp_id" < "projects"."backup_emp_id"
82
-
83
- Ref "fk_task_assigned_emp":"employees"."emp_id" < "project_tasks"."assigned_emp_id"
@@ -1,74 +0,0 @@
1
- Enum "orders_status" {
2
- "created"
3
- "running"
4
- "done"
5
- "failure"
6
- }
7
-
8
- Enum "product status" {
9
- "Out of Stock"
10
- "In Stock"
11
- }
12
-
13
- Table "orders" {
14
- "id" SERIAL [pk, increment]
15
- "user_id" int [unique, not null]
16
- "status" orders_status
17
- "created_at" varchar
18
- }
19
-
20
- Table "order_items" {
21
- "order_id" int
22
- "product_id" int
23
- "quantity" int [default: 1]
24
- }
25
-
26
- Table "products" {
27
- "id" int [pk]
28
- "name" varchar
29
- "merchant_id" int [not null]
30
- "price" int
31
- "status" "product status"
32
- "created_at" datetime [default: `now()`]
33
-
34
- Indexes {
35
- (merchant_id, status) [name: "product_status"]
36
- id [type: hash, unique]
37
- }
38
- }
39
-
40
- Table "users" {
41
- "id" int [pk]
42
- "full_name" varchar
43
- "email" varchar [unique]
44
- "gender" varchar
45
- "date_of_birth" varchar
46
- "created_at" varchar
47
- "country_code" int
48
- }
49
-
50
- Table "merchants" {
51
- "id" int [pk]
52
- "merchant_name" varchar
53
- "country_code" int
54
- "created_at" varchar
55
- "admin_id" int
56
- }
57
-
58
- Table "countries" {
59
- "code" int [pk]
60
- "name" varchar
61
- "continent_name" varchar
62
- }
63
-
64
- Ref:"orders"."id" < "order_items"."order_id"
65
-
66
- Ref:"products"."id" < "order_items"."product_id"
67
-
68
- Ref:"countries"."code" < "users"."country_code"
69
-
70
- Ref:"countries"."code" < "merchants"."country_code"
71
-
72
- Ref:"merchants"."id" < "products"."merchant_id"
73
-
74
- Ref:"users"."id" < "merchants"."admin_id"
@@ -1,74 +0,0 @@
1
- Enum "orders_status" {
2
- "created"
3
- "running"
4
- "done"
5
- "failure"
6
- }
7
-
8
- Enum "product status" {
9
- "Out of Stock"
10
- "In Stock"
11
- }
12
-
13
- Table "orders" {
14
- "id" SERIAL [pk, increment]
15
- "user_id" int [unique, not null]
16
- "status" orders_status
17
- "created_at" varchar
18
- }
19
-
20
- Table "order_items" {
21
- "order_id" int
22
- "product_id" int
23
- "quantity" int [default: 1]
24
- }
25
-
26
- Table "products" {
27
- "id" int [pk]
28
- "name" varchar
29
- "merchant_id" int [not null]
30
- "price" int
31
- "status" "product status"
32
- "created_at" datetime [default: `now()`]
33
-
34
- Indexes {
35
- (merchant_id, status) [name: "product_status"]
36
- id [type: hash, unique]
37
- }
38
- }
39
-
40
- Table "users" {
41
- "id" int [pk]
42
- "full_name" varchar
43
- "email" varchar [unique]
44
- "gender" varchar
45
- "date_of_birth" varchar
46
- "created_at" varchar
47
- "country_code" int
48
- }
49
-
50
- Table "merchants" {
51
- "id" int [pk]
52
- "merchant_name" varchar
53
- "country_code" int
54
- "created_at" varchar
55
- "admin_id" int
56
- }
57
-
58
- Table "countries" {
59
- "code" int [pk]
60
- "name" varchar
61
- "continent_name" varchar
62
- }
63
-
64
- Ref:"orders"."id" < "order_items"."order_id"
65
-
66
- Ref:"products"."id" < "order_items"."product_id"
67
-
68
- Ref:"countries"."code" < "users"."country_code"
69
-
70
- Ref:"countries"."code" < "merchants"."country_code"
71
-
72
- Ref:"merchants"."id" < "products"."merchant_id"
73
-
74
- Ref:"users"."id" < "merchants"."admin_id"
File without changes