@dbml/cli 6.3.0-alpha.4 → 6.3.0-alpha.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 +91 -0
- package/__tests__/db2dbml/mysql/dbml-error.log +117 -0
- package/__tests__/db2dbml/oracle/dbml-error.log +126 -0
- package/__tests__/db2dbml/postgres/dbml-error.log +63 -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 +7 -7
- package/__tests__/dbml2sql/filename --out-file/expect-out-files/schema.sql +6 -6
- package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +7 -7
- package/__tests__/dbml2sql/filename --postgres --out-file/expect-out-files/schema.sql +6 -6
- package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +7 -7
- package/__tests__/dbml2sql/filename --postgres stdout/stdout.txt +6 -6
- package/__tests__/dbml2sql/filename stdout/stdout.txt +6 -6
- package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
- package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +16 -16
- package/__tests__/dbml2sql/filenames --out-file/expect-out-files/schema.sql +15 -15
- package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +16 -16
- package/__tests__/dbml2sql/filenames --postgres --out-file/expect-out-files/schema.sql +15 -15
- package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +16 -16
- package/__tests__/dbml2sql/filenames --postgres stdout/stdout.txt +15 -15
- package/__tests__/dbml2sql/filenames stdout/stdout.txt +15 -15
- 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 +10 -10
- package/__tests__/dbml2sql/multiple_schema_pg/expect-out-files/multiple_schema.out.sql +4 -4
- package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +5 -5
- package/__tests__/dbml2sql/syntax-error/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +27 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +27 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +27 -0
- package/lib/index.js +3 -3
- package/package.json +3 -3
|
@@ -20,3 +20,94 @@ ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequen
|
|
|
20
20
|
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1144:14
|
|
21
21
|
at process.processTicksAndRejections (node:internal/process/task_queues:84:11)
|
|
22
22
|
|
|
23
|
+
2026-02-12T07:20:59.636Z
|
|
24
|
+
ConnectionError: Login failed for user 'SA'.
|
|
25
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
26
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
27
|
+
at Object.onceWrapper (node:events:634:26)
|
|
28
|
+
at Connection.emit (node:events:519:28)
|
|
29
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
30
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
31
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
32
|
+
|
|
33
|
+
2026-02-12T07:22:19.091Z
|
|
34
|
+
ConnectionError: Login failed for user 'SA'.
|
|
35
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
36
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
37
|
+
at Object.onceWrapper (node:events:634:26)
|
|
38
|
+
at Connection.emit (node:events:519:28)
|
|
39
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
40
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
41
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
42
|
+
|
|
43
|
+
2026-02-12T07:23:36.280Z
|
|
44
|
+
ConnectionError: Login failed for user 'SA'.
|
|
45
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
46
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
47
|
+
at Object.onceWrapper (node:events:634:26)
|
|
48
|
+
at Connection.emit (node:events:519:28)
|
|
49
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
50
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
51
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
52
|
+
|
|
53
|
+
2026-02-12T07:25:28.477Z
|
|
54
|
+
ConnectionError: Login failed for user 'SA'.
|
|
55
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
56
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
57
|
+
at Object.onceWrapper (node:events:634:26)
|
|
58
|
+
at Connection.emit (node:events:519:28)
|
|
59
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
60
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
61
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
62
|
+
|
|
63
|
+
2026-02-12T07:27:09.038Z
|
|
64
|
+
ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
|
|
65
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
66
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
67
|
+
at Object.onceWrapper (node:events:634:26)
|
|
68
|
+
at Connection.emit (node:events:519:28)
|
|
69
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
70
|
+
at Connection.socketError (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1351:12)
|
|
71
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:1144:14
|
|
72
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
|
|
73
|
+
|
|
74
|
+
2026-02-12T07:43:03.356Z
|
|
75
|
+
ConnectionError: Login failed for user 'SA'.
|
|
76
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
77
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
78
|
+
at Object.onceWrapper (node:events:634:26)
|
|
79
|
+
at Connection.emit (node:events:519:28)
|
|
80
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
81
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
82
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
83
|
+
|
|
84
|
+
2026-02-12T07:44:24.468Z
|
|
85
|
+
ConnectionError: Login failed for user 'SA'.
|
|
86
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
87
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
88
|
+
at Object.onceWrapper (node:events:634:26)
|
|
89
|
+
at Connection.emit (node:events:519:28)
|
|
90
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
91
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
92
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
93
|
+
|
|
94
|
+
2026-02-12T07:45:44.084Z
|
|
95
|
+
ConnectionError: Login failed for user 'SA'.
|
|
96
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
97
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
98
|
+
at Object.onceWrapper (node:events:634:26)
|
|
99
|
+
at Connection.emit (node:events:519:28)
|
|
100
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
101
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
102
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
103
|
+
|
|
104
|
+
2026-02-12T08:37:16.312Z
|
|
105
|
+
ConnectionError: Login failed for user 'SA'.
|
|
106
|
+
at /home/huydna/projects/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
107
|
+
at Connection.onConnect (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:849:9)
|
|
108
|
+
at Object.onceWrapper (node:events:634:26)
|
|
109
|
+
at Connection.emit (node:events:519:28)
|
|
110
|
+
at Connection.emit (/home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:970:18)
|
|
111
|
+
at /home/huydna/projects/dbml/node_modules/tedious/lib/connection.js:2363:18
|
|
112
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
113
|
+
|
|
@@ -4,3 +4,120 @@ undefined
|
|
|
4
4
|
2026-02-05T04:34:11.579Z
|
|
5
5
|
undefined
|
|
6
6
|
|
|
7
|
+
2026-02-12T07:21:00.854Z
|
|
8
|
+
Error: Unknown database 'dbml_test'
|
|
9
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
10
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
11
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
12
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
13
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
14
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
15
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
16
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
17
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
18
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
19
|
+
|
|
20
|
+
2026-02-12T07:22:20.340Z
|
|
21
|
+
Error: Unknown database 'dbml_test'
|
|
22
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
23
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
24
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
25
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
26
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
27
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
28
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
29
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
30
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
31
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
32
|
+
|
|
33
|
+
2026-02-12T07:23:37.563Z
|
|
34
|
+
Error: Unknown database 'dbml_test'
|
|
35
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
36
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
37
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
38
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
39
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
40
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
41
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
42
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
43
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
44
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
45
|
+
|
|
46
|
+
2026-02-12T07:25:29.768Z
|
|
47
|
+
Error: Unknown database 'dbml_test'
|
|
48
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
49
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
50
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
51
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
52
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
53
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
54
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
55
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
56
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
57
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
58
|
+
|
|
59
|
+
2026-02-12T07:27:10.380Z
|
|
60
|
+
Error: Connection lost: The server closed the connection.
|
|
61
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
62
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
63
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
64
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
65
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
66
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
67
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
68
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
69
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
70
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
71
|
+
|
|
72
|
+
2026-02-12T07:43:04.571Z
|
|
73
|
+
Error: Unknown database 'dbml_test'
|
|
74
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
75
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
76
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
77
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
78
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
79
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
80
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
81
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
82
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
83
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
84
|
+
|
|
85
|
+
2026-02-12T07:44:25.704Z
|
|
86
|
+
Error: Unknown database 'dbml_test'
|
|
87
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
88
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
89
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
90
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
91
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
92
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
93
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
94
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
95
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
96
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
97
|
+
|
|
98
|
+
2026-02-12T07:45:45.368Z
|
|
99
|
+
Error: Unknown database 'dbml_test'
|
|
100
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
101
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
102
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
103
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
104
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
105
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
106
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
107
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
108
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
109
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
110
|
+
|
|
111
|
+
2026-02-12T08:37:17.517Z
|
|
112
|
+
Error: Unknown database 'dbml_test'
|
|
113
|
+
at c (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:47737)
|
|
114
|
+
at Or (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3387:53410)
|
|
115
|
+
at Ur (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3506:500)
|
|
116
|
+
at Module.Hi (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:3739:1303)
|
|
117
|
+
at connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:55)
|
|
118
|
+
at Module.db2dbml (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1307:2)
|
|
119
|
+
at Object.<anonymous> (/home/huydna/projects/dbml/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
120
|
+
at Module._compile (node:internal/modules/cjs/loader:1706:14)
|
|
121
|
+
at Object..js (node:internal/modules/cjs/loader:1839:10)
|
|
122
|
+
at Module.load (node:internal/modules/cjs/loader:1441:32)
|
|
123
|
+
|
|
@@ -26,3 +26,129 @@ connect ECONNREFUSED 127.0.0.1:1521
|
|
|
26
26
|
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
27
27
|
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
28
28
|
|
|
29
|
+
2026-02-12T07:21:02.056Z
|
|
30
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=VVVfTfFtyvnzQTgwQmDxCQ==)
|
|
31
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
32
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
33
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
34
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
35
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
36
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
37
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
38
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
39
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
40
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
41
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
42
|
+
|
|
43
|
+
2026-02-12T07:22:21.553Z
|
|
44
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=EEeIhK5RENS0Xe7UTGkoGA==)
|
|
45
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
46
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
47
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
48
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
49
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
50
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
51
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
52
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
53
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
54
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
55
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
56
|
+
|
|
57
|
+
2026-02-12T07:23:38.827Z
|
|
58
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=1y1xnZlrP9wbXamX72c+ew==)
|
|
59
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
60
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
61
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
62
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
63
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
64
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
65
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
66
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
67
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
68
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
69
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
70
|
+
|
|
71
|
+
2026-02-12T07:25:31.083Z
|
|
72
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=Tt8KjKs2zMYDvjxDJ0M0AA==)
|
|
73
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
74
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
75
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
76
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
77
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
78
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
79
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
80
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
81
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
82
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
83
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
84
|
+
|
|
85
|
+
2026-02-12T07:27:11.720Z
|
|
86
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=1s467PIDap6gEpXz5LNyOA==)
|
|
87
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
88
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
89
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
90
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
91
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
92
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
93
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
94
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
95
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
96
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
97
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
98
|
+
|
|
99
|
+
2026-02-12T07:43:05.776Z
|
|
100
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=3UuCi4hOOA/2tDDl0ATySQ==)
|
|
101
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
102
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
103
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
104
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
105
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
106
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
107
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
108
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
109
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
110
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
111
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
112
|
+
|
|
113
|
+
2026-02-12T07:44:26.967Z
|
|
114
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=yxG8Fl2hBJrEUF4gxoHAEg==)
|
|
115
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
116
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
117
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
118
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
119
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
120
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
121
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
122
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
123
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
124
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
125
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
126
|
+
|
|
127
|
+
2026-02-12T07:45:46.607Z
|
|
128
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=iPpEc9lIFlbFSyrMP820/g==)
|
|
129
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
130
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
131
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
132
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
133
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
134
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
135
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
136
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
137
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
138
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
139
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
140
|
+
|
|
141
|
+
2026-02-12T08:37:18.707Z
|
|
142
|
+
Error: NJS-503: connection to host 127.0.0.1 port 1521 could not be established. (CONNECTION_ID=aq9arHLHyU2DPeBRwF4k5Q==)
|
|
143
|
+
connect ECONNREFUSED 127.0.0.1:1521
|
|
144
|
+
at Object.throwErr (/home/huydna/projects/dbml/node_modules/oracledb/lib/errors.js:776:10)
|
|
145
|
+
at NTTCP.ntConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
|
|
146
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
147
|
+
at async NTTCP.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
|
|
148
|
+
at async NetworkSession.transportConnect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
|
|
149
|
+
at async NetworkSession.connect2 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
|
|
150
|
+
at async NetworkSession.connect1 (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
|
|
151
|
+
at async NetworkSession.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
|
|
152
|
+
at async ThinConnectionImpl.connect (/home/huydna/projects/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
|
|
153
|
+
at async getConnection (/home/huydna/projects/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
|
|
154
|
+
|
|
@@ -12,3 +12,66 @@ Error: PostgreSQL connection error: AggregateError
|
|
|
12
12
|
at async N (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:277)
|
|
13
13
|
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:247:22)
|
|
14
14
|
|
|
15
|
+
2026-02-12T07:21:03.269Z
|
|
16
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
17
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
18
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
19
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
20
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
21
|
+
|
|
22
|
+
2026-02-12T07:22:22.777Z
|
|
23
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
24
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
25
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
26
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
27
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
28
|
+
|
|
29
|
+
2026-02-12T07:23:40.040Z
|
|
30
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
31
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
32
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
33
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
34
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
35
|
+
|
|
36
|
+
2026-02-12T07:25:32.343Z
|
|
37
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
38
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
39
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
40
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
41
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
42
|
+
|
|
43
|
+
2026-02-12T07:27:13.058Z
|
|
44
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
45
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
46
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
47
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
48
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
49
|
+
|
|
50
|
+
2026-02-12T07:43:06.953Z
|
|
51
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
52
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
53
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
54
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
55
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
56
|
+
|
|
57
|
+
2026-02-12T07:44:28.208Z
|
|
58
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
59
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
60
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
61
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
62
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
63
|
+
|
|
64
|
+
2026-02-12T07:45:47.802Z
|
|
65
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
66
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
67
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
68
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
69
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
70
|
+
|
|
71
|
+
2026-02-12T08:37:19.895Z
|
|
72
|
+
Error: PostgreSQL connection error: error: role "dbml" does not exist
|
|
73
|
+
at D (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:1:1741)
|
|
74
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
|
75
|
+
at async ae (/home/huydna/projects/dbml/packages/dbml-connector/dist/index.js:218:278)
|
|
76
|
+
at async connectionHandler (/home/huydna/projects/dbml/packages/dbml-cli/lib/index.js:1179:22)
|
|
77
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
-- SQL dump generated using DBML (dbml.dbdiagram.io)
|
|
2
2
|
-- Database: Oracle
|
|
3
|
-
-- Generated at: 2026-02-
|
|
3
|
+
-- Generated at: 2026-02-12T08:36:12.703Z
|
|
4
4
|
|
|
5
5
|
CREATE TABLE "orders" (
|
|
6
6
|
"id" int GENERATED AS IDENTITY PRIMARY KEY,
|
|
@@ -48,14 +48,14 @@ CREATE TABLE "countries" (
|
|
|
48
48
|
|
|
49
49
|
CREATE INDEX "product_status" ON "products" ("merchant_id", "status");
|
|
50
50
|
|
|
51
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id");
|
|
51
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
52
52
|
|
|
53
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id");
|
|
53
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
54
54
|
|
|
55
|
-
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
55
|
+
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
56
56
|
|
|
57
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
57
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
58
58
|
|
|
59
|
-
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id");
|
|
59
|
+
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
60
60
|
|
|
61
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id");
|
|
61
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
@@ -60,14 +60,14 @@ CREATE INDEX "product_status" ON "products" ("merchant_id", "status");
|
|
|
60
60
|
|
|
61
61
|
CREATE UNIQUE INDEX ON "products" USING HASH ("id");
|
|
62
62
|
|
|
63
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id");
|
|
63
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
64
64
|
|
|
65
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id");
|
|
65
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
66
66
|
|
|
67
|
-
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
67
|
+
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
68
68
|
|
|
69
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
69
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
70
70
|
|
|
71
|
-
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id");
|
|
71
|
+
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
72
72
|
|
|
73
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id");
|
|
73
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
-- SQL dump generated using DBML (dbml.dbdiagram.io)
|
|
2
2
|
-- Database: PostgreSQL
|
|
3
|
-
-- Generated at: 2026-02-
|
|
3
|
+
-- Generated at: 2026-02-12T08:36:14.979Z
|
|
4
4
|
|
|
5
5
|
CREATE TYPE "orders_status" AS ENUM (
|
|
6
6
|
'created',
|
|
@@ -64,14 +64,14 @@ CREATE INDEX "product_status" ON "products" ("merchant_id", "status");
|
|
|
64
64
|
|
|
65
65
|
CREATE UNIQUE INDEX ON "products" USING HASH ("id");
|
|
66
66
|
|
|
67
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id");
|
|
67
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
68
68
|
|
|
69
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id");
|
|
69
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
70
70
|
|
|
71
|
-
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
71
|
+
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
72
72
|
|
|
73
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
73
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
74
74
|
|
|
75
|
-
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id");
|
|
75
|
+
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
76
76
|
|
|
77
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id");
|
|
77
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
@@ -60,14 +60,14 @@ CREATE INDEX "product_status" ON "products" ("merchant_id", "status");
|
|
|
60
60
|
|
|
61
61
|
CREATE UNIQUE INDEX ON "products" USING HASH ("id");
|
|
62
62
|
|
|
63
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id");
|
|
63
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
64
64
|
|
|
65
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id");
|
|
65
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
66
66
|
|
|
67
|
-
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
67
|
+
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
68
68
|
|
|
69
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
69
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
70
70
|
|
|
71
|
-
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id");
|
|
71
|
+
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
72
72
|
|
|
73
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id");
|
|
73
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
-- SQL dump generated using DBML (dbml.dbdiagram.io)
|
|
2
2
|
-- Database: PostgreSQL
|
|
3
|
-
-- Generated at: 2026-02-
|
|
3
|
+
-- Generated at: 2026-02-12T08:36:16.154Z
|
|
4
4
|
|
|
5
5
|
CREATE TYPE "orders_status" AS ENUM (
|
|
6
6
|
'created',
|
|
@@ -64,14 +64,14 @@ CREATE INDEX "product_status" ON "products" ("merchant_id", "status");
|
|
|
64
64
|
|
|
65
65
|
CREATE UNIQUE INDEX ON "products" USING HASH ("id");
|
|
66
66
|
|
|
67
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id");
|
|
67
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
68
68
|
|
|
69
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id");
|
|
69
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
70
70
|
|
|
71
|
-
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
71
|
+
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
72
72
|
|
|
73
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
73
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
74
74
|
|
|
75
|
-
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id");
|
|
75
|
+
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
76
76
|
|
|
77
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id");
|
|
77
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
@@ -60,15 +60,15 @@ CREATE INDEX "product_status" ON "products" ("merchant_id", "status");
|
|
|
60
60
|
|
|
61
61
|
CREATE UNIQUE INDEX ON "products" USING HASH ("id");
|
|
62
62
|
|
|
63
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id");
|
|
63
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("order_id") REFERENCES "orders" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
64
64
|
|
|
65
|
-
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id");
|
|
65
|
+
ALTER TABLE "order_items" ADD FOREIGN KEY ("product_id") REFERENCES "products" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
66
66
|
|
|
67
|
-
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
67
|
+
ALTER TABLE "users" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
68
68
|
|
|
69
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code");
|
|
69
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("country_code") REFERENCES "countries" ("code") DEFERRABLE INITIALLY IMMEDIATE;
|
|
70
70
|
|
|
71
|
-
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id");
|
|
71
|
+
ALTER TABLE "products" ADD FOREIGN KEY ("merchant_id") REFERENCES "merchants" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
72
72
|
|
|
73
|
-
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id");
|
|
73
|
+
ALTER TABLE "merchants" ADD FOREIGN KEY ("admin_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
|
|
74
74
|
|