@dbml/cli 3.7.0 → 3.7.2
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/__test__/db2dbml/mysql/options.json +1 -1
- package/lib/cli/connector.js +4 -2
- package/package.json +7 -3
- package/src/cli/connector.js +4 -2
- package/LICENSE +0 -202
- package/__test__/db2dbml/mssql/dbml-error.log +0 -467
- package/__test__/db2dbml/mysql/dbml-error.log +0 -281
- package/__test__/db2dbml/mysql/out-files/schema.dbml +0 -180
- package/__test__/db2dbml/postgres/dbml-error.log +0 -252
- package/__test__/db2dbml/postgres/out-files/schema.dbml +0 -140
- package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +0 -65
- package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +0 -61
- package/__test__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +0 -77
- package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +0 -77
- package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +0 -172
- package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +0 -62
- package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +0 -50
- package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +0 -88
- package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +0 -67
- package/__test__/dbml2sql/syntax-error/dbml-error.log +0 -12
- package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -25
- package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -74
- package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -170
- package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -106
- package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -136
- package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -101
- package/__test__/sql2dbml/syntax-error/dbml-error.log +0 -12
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +0 -12
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +0 -12
- package/dbml-error.log +0 -53
- package/lib/connectors/Connector.js +0 -19
- package/lib/connectors/MssqlConnector.js +0 -483
- package/lib/connectors/PostgresConnector.js +0 -450
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
2024-08-01T07:56:48.256Z
|
|
2
|
-
TypeError: _core.connector.fetch is not a function
|
|
3
|
-
at connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:28:41)
|
|
4
|
-
at Object.db2dbml (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/index.js:35:26)
|
|
5
|
-
at Object.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
6
|
-
at Module._compile (node:internal/modules/cjs/loader:1198:14)
|
|
7
|
-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
|
|
8
|
-
at Module.load (node:internal/modules/cjs/loader:1076:32)
|
|
9
|
-
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
|
|
10
|
-
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
11
|
-
at node:internal/main/run_main_module:22:47
|
|
12
|
-
|
|
13
|
-
2024-08-01T07:57:28.002Z
|
|
14
|
-
Error: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from information_schema.referential_constraints rc
|
|
15
|
-
join information_schema.k' at line 10
|
|
16
|
-
at _callee7$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/connection/mysql/utils.js:426:17)
|
|
17
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/connection/mysql/utils.js:15:1357)
|
|
18
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/connection/mysql/utils.js:15:4174)
|
|
19
|
-
at Generator.throw (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/connection/mysql/utils.js:15:2208)
|
|
20
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/connection/mysql/utils.js:16:103)
|
|
21
|
-
at _throw (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/connection/mysql/utils.js:17:291)
|
|
22
|
-
at processTicksAndRejections (node:internal/process/task_queues:96:5)
|
|
23
|
-
|
|
24
|
-
2024-08-06T10:36:39.182Z
|
|
25
|
-
Error: Field "id" existed in table "hash_index_example"
|
|
26
|
-
at Field.error (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/element.js:56:13)
|
|
27
|
-
at Table.checkField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:95:15)
|
|
28
|
-
at Table.pushField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:86:12)
|
|
29
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:78:16
|
|
30
|
-
at Array.forEach (<anonymous>)
|
|
31
|
-
at Table.processFields (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:77:17)
|
|
32
|
-
at new Table (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:61:11)
|
|
33
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:151:30
|
|
34
|
-
at Array.forEach (<anonymous>)
|
|
35
|
-
at Database.processSchemaElements (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:140:16)
|
|
36
|
-
|
|
37
|
-
2024-08-06T10:39:55.374Z
|
|
38
|
-
Error: Field "id" existed in table "hash_index_example"
|
|
39
|
-
at Field.error (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/element.js:56:13)
|
|
40
|
-
at Table.checkField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:95:15)
|
|
41
|
-
at Table.pushField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:86:12)
|
|
42
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:78:16
|
|
43
|
-
at Array.forEach (<anonymous>)
|
|
44
|
-
at Table.processFields (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:77:17)
|
|
45
|
-
at new Table (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:61:11)
|
|
46
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:151:30
|
|
47
|
-
at Array.forEach (<anonymous>)
|
|
48
|
-
at Database.processSchemaElements (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:140:16)
|
|
49
|
-
|
|
50
|
-
2024-08-06T10:40:09.463Z
|
|
51
|
-
Error: Field "id" existed in table "hash_index_example"
|
|
52
|
-
at Field.error (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/element.js:56:13)
|
|
53
|
-
at Table.checkField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:95:15)
|
|
54
|
-
at Table.pushField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:86:12)
|
|
55
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:78:16
|
|
56
|
-
at Array.forEach (<anonymous>)
|
|
57
|
-
at Table.processFields (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:77:17)
|
|
58
|
-
at new Table (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:61:11)
|
|
59
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:151:30
|
|
60
|
-
at Array.forEach (<anonymous>)
|
|
61
|
-
at Database.processSchemaElements (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:140:16)
|
|
62
|
-
|
|
63
|
-
2024-08-06T10:46:40.435Z
|
|
64
|
-
Error: Field "id" existed in table "hash_index_example"
|
|
65
|
-
at Field.error (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/element.js:56:13)
|
|
66
|
-
at Table.checkField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:95:15)
|
|
67
|
-
at Table.pushField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:86:12)
|
|
68
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:78:16
|
|
69
|
-
at Array.forEach (<anonymous>)
|
|
70
|
-
at Table.processFields (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:77:17)
|
|
71
|
-
at new Table (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:61:11)
|
|
72
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:151:30
|
|
73
|
-
at Array.forEach (<anonymous>)
|
|
74
|
-
at Database.processSchemaElements (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:140:16)
|
|
75
|
-
|
|
76
|
-
2024-08-06T10:47:22.941Z
|
|
77
|
-
Error: Field "id" existed in table "hash_index_example"
|
|
78
|
-
at Field.error (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/element.js:56:13)
|
|
79
|
-
at Table.checkField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:95:15)
|
|
80
|
-
at Table.pushField (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:86:12)
|
|
81
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:78:16
|
|
82
|
-
at Array.forEach (<anonymous>)
|
|
83
|
-
at Table.processFields (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:77:17)
|
|
84
|
-
at new Table (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/table.js:61:11)
|
|
85
|
-
at /Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:151:30
|
|
86
|
-
at Array.forEach (<anonymous>)
|
|
87
|
-
at Database.processSchemaElements (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/model_structure/database.js:140:16)
|
|
88
|
-
|
|
89
|
-
2024-08-08T10:28:56.471Z
|
|
90
|
-
Error: Error: Expression #2 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.kcu.ORDINAL_POSITION' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
|
|
91
|
-
at _callee7$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:530:17)
|
|
92
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:1357)
|
|
93
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:4174)
|
|
94
|
-
at Generator.throw (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:2208)
|
|
95
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:22:103)
|
|
96
|
-
at _throw (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:23:291)
|
|
97
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
98
|
-
|
|
99
|
-
2024-08-08T10:30:26.448Z
|
|
100
|
-
Error: TypeError: Cannot convert undefined or null to object
|
|
101
|
-
at _callee7$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:530:17)
|
|
102
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:1357)
|
|
103
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:4174)
|
|
104
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:2208)
|
|
105
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:22:103)
|
|
106
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:23:194)
|
|
107
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
108
|
-
|
|
109
|
-
2024-08-08T10:35:20.342Z
|
|
110
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
111
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
112
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
113
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
114
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
115
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
116
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
117
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
118
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
119
|
-
|
|
120
|
-
2024-08-08T10:39:13.703Z
|
|
121
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
122
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
123
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
124
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
125
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
126
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
127
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
128
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
129
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
130
|
-
|
|
131
|
-
2024-08-08T10:47:29.233Z
|
|
132
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
133
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:116:11)
|
|
134
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
135
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
136
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
137
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
138
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
139
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
140
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
141
|
-
|
|
142
|
-
2024-08-08T10:49:42.882Z
|
|
143
|
-
Error: ReferenceError: rawFieldMap is not defined
|
|
144
|
-
at _callee7$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:541:17)
|
|
145
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:1357)
|
|
146
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:4174)
|
|
147
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:2208)
|
|
148
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:22:103)
|
|
149
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:23:194)
|
|
150
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
151
|
-
|
|
152
|
-
2024-08-08T16:39:31.656Z
|
|
153
|
-
Error: TypeError: Cannot read properties of undefined (reading 'push')
|
|
154
|
-
at _callee7$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:517:17)
|
|
155
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:25:1357)
|
|
156
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:25:4174)
|
|
157
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:25:2208)
|
|
158
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:26:103)
|
|
159
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:27:194)
|
|
160
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
161
|
-
|
|
162
|
-
2024-08-08T16:40:30.698Z
|
|
163
|
-
Error: TypeError: Cannot read properties of undefined (reading 'push')
|
|
164
|
-
at _callee7$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:512:17)
|
|
165
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:20:1357)
|
|
166
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:20:4174)
|
|
167
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:20:2208)
|
|
168
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:21:103)
|
|
169
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/connectors/mysqlConnector.js:22:194)
|
|
170
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
171
|
-
|
|
172
|
-
2024-08-09T00:05:10.756Z
|
|
173
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
174
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
175
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
176
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
177
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
178
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
179
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
180
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
181
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
182
|
-
|
|
183
|
-
2024-08-09T00:28:54.990Z
|
|
184
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
185
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
186
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
187
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
188
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
189
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
190
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
191
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
192
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
193
|
-
|
|
194
|
-
2024-08-09T00:32:57.292Z
|
|
195
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
196
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
197
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
198
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
199
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
200
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
201
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
202
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
203
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
204
|
-
|
|
205
|
-
2024-08-09T00:33:34.628Z
|
|
206
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
207
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
208
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
209
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
210
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
211
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
212
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
213
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
214
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
215
|
-
|
|
216
|
-
2024-08-09T00:33:48.419Z
|
|
217
|
-
Error: Error: Field "id" existed in table "hash_index_example"
|
|
218
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:116:11)
|
|
219
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
220
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
221
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
222
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
223
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
224
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
225
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
226
|
-
|
|
227
|
-
2024-08-09T00:41:53.910Z
|
|
228
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
229
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
230
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
231
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
232
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
233
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
234
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
235
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
236
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
237
|
-
|
|
238
|
-
2024-08-09T00:42:39.648Z
|
|
239
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
240
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
241
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
242
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
243
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
244
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
245
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
246
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
247
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
248
|
-
|
|
249
|
-
2024-08-10T10:33:37.012Z
|
|
250
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
251
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
252
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
253
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
254
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
255
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
256
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
257
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
258
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
259
|
-
|
|
260
|
-
2024-08-10T14:22:54.896Z
|
|
261
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
262
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
263
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
264
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
265
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
266
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
267
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
268
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
269
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
270
|
-
|
|
271
|
-
2024-08-10T14:24:21.677Z
|
|
272
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
273
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
274
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
275
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
276
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
277
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
278
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
279
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
280
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
281
|
-
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
Enum "status_example_2_s1_enum" {
|
|
2
|
-
"active"
|
|
3
|
-
"inactive"
|
|
4
|
-
"pending"
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
Enum "status_example_2_s2_enum" {
|
|
8
|
-
"active"
|
|
9
|
-
"inactive"
|
|
10
|
-
"pending"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
Enum "status_example_2_s3_enum" {
|
|
14
|
-
"active"
|
|
15
|
-
"inactive"
|
|
16
|
-
"pending"
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
Enum "status_example_2_s4_enum" {
|
|
20
|
-
"active"
|
|
21
|
-
"inactive"
|
|
22
|
-
"pending"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
Enum "status_example_2_s5_enum" {
|
|
26
|
-
"0"
|
|
27
|
-
"1"
|
|
28
|
-
"2"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
Enum "status_example_2_s6_enum" {
|
|
32
|
-
"0"
|
|
33
|
-
"1"
|
|
34
|
-
"2"
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
Enum "status_example_2_s7_enum" {
|
|
38
|
-
"0"
|
|
39
|
-
"1"
|
|
40
|
-
"2"
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
Enum "status_example_2_s8_enum" {
|
|
44
|
-
"0"
|
|
45
|
-
"1"
|
|
46
|
-
"2"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
Table "categories" {
|
|
50
|
-
"cat_id" "int unsigned" [pk, not null, increment]
|
|
51
|
-
"cat_name" varchar(50) [not null]
|
|
52
|
-
"super_cat_id" "int unsigned"
|
|
53
|
-
"created_at" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
Table "composite_key_1" {
|
|
57
|
-
"id1_1" "int unsigned" [not null]
|
|
58
|
-
"id1_2" "int unsigned" [not null]
|
|
59
|
-
"email" varchar(255)
|
|
60
|
-
"name" varchar(50)
|
|
61
|
-
|
|
62
|
-
Indexes {
|
|
63
|
-
(id1_1, id1_2) [pk, name: "PRIMARY"]
|
|
64
|
-
(email, name) [unique, name: "uc_unique_composite"]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
Table "composite_key_2" {
|
|
69
|
-
"id2_1" "int unsigned" [not null]
|
|
70
|
-
"id2_2" "int unsigned" [not null]
|
|
71
|
-
|
|
72
|
-
Indexes {
|
|
73
|
-
(id2_1, id2_2) [pk, name: "PRIMARY"]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
Table "date_time_example" {
|
|
78
|
-
"default_now" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
79
|
-
"default_local" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
80
|
-
"date_plus_7_days" date [default: `(curdate() + interval 7 day)`]
|
|
81
|
-
"date_minus_30_days" date [default: `(curdate() - interval 30 day)`]
|
|
82
|
-
"timestamp_plus_1_hour" timestamp [default: `(now() + interval 1 hour)`]
|
|
83
|
-
"timestamp_minus_15_minutes" timestamp [default: `(now() - interval 15 minute)`]
|
|
84
|
-
"on_update_1" "datetime on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
85
|
-
"on_update_2" "datetime on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Table "default_example" {
|
|
89
|
-
"id" int [pk, not null, increment]
|
|
90
|
-
"column1" varchar(255) [default: `concat(_utf8mb4\'default \',uuid())`]
|
|
91
|
-
"column2" varchar(255) [default: `concat(_utf8mb4\'random \',floor((rand() * 100)))`]
|
|
92
|
-
"column3" varchar(255) [default: '_utf8mb4']
|
|
93
|
-
"column4" double [default: 0.5]
|
|
94
|
-
"created_date" date [default: `curdate()`]
|
|
95
|
-
"first_date" date [default: '2023-01-01']
|
|
96
|
-
"event_time" timestamp [default: '2024-01-01 00:00:00']
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
Table "hash_index_example" {
|
|
100
|
-
"id" int [pk, not null, note: 'unique identifier for each record']
|
|
101
|
-
"name" varchar(100) [note: 'first name of the individual']
|
|
102
|
-
"name1" varchar(100) [note: 'last name of the individual']
|
|
103
|
-
|
|
104
|
-
Indexes {
|
|
105
|
-
(name, name1) [type: hash, name: "idx_name_name1"]
|
|
106
|
-
}
|
|
107
|
-
Note: 'table for storing names with a hash index'
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
Table "index_example" {
|
|
111
|
-
"id" int [pk, not null, increment]
|
|
112
|
-
"name_lower" varchar(100) [not null]
|
|
113
|
-
"name_inline" varchar(100) [not null]
|
|
114
|
-
"email" varchar(100) [unique, not null]
|
|
115
|
-
"age" int
|
|
116
|
-
"city" varchar(50)
|
|
117
|
-
|
|
118
|
-
Indexes {
|
|
119
|
-
(city, age) [type: btree, name: "idx_city_age"]
|
|
120
|
-
`city(5)` [type: btree, name: "idx_city_part"]
|
|
121
|
-
name_inline [type: btree, name: "idx_name"]
|
|
122
|
-
`lower(name_lower)` [type: btree, name: "idx_name_lower"]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
Table "order_items" {
|
|
127
|
-
"order_id" "int unsigned" [not null]
|
|
128
|
-
"product_id" "int unsigned" [not null]
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
Table "orders" {
|
|
132
|
-
"order_id" "int unsigned" [pk, not null, increment]
|
|
133
|
-
"user_id" "int unsigned"
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
Table "products" {
|
|
137
|
-
"id" "int unsigned" [pk, not null, increment]
|
|
138
|
-
"price" decimal(10,2) [not null]
|
|
139
|
-
"quantity" int [not null]
|
|
140
|
-
"total_value" "decimal(10,2) GENERATED ALWAYS AS ((`price` * `quantity`)) STORED"
|
|
141
|
-
"updated_at" "timestamp on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
Table "sqrt_triangle" {
|
|
145
|
-
"side_a" double
|
|
146
|
-
"side_b" double
|
|
147
|
-
"side_c" "double GENERATED ALWAYS AS (sqrt(((`side_a` * `side_a`) + (`side_b` * `side_b`)))) VIRTUAL"
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
Table "status_example_2" {
|
|
151
|
-
"s1" status_example_2_s1_enum [not null]
|
|
152
|
-
"s2" status_example_2_s2_enum
|
|
153
|
-
"s3" status_example_2_s3_enum [default: 'active']
|
|
154
|
-
"s4" status_example_2_s4_enum [default: 'pending']
|
|
155
|
-
"s5" status_example_2_s5_enum
|
|
156
|
-
"s6" status_example_2_s6_enum [not null]
|
|
157
|
-
"s7" status_example_2_s7_enum [default: '1']
|
|
158
|
-
"s8" status_example_2_s8_enum [default: '0']
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
Table "users" {
|
|
162
|
-
"user_id" "int unsigned" [pk, not null, increment]
|
|
163
|
-
"username" varchar(50) [unique, not null]
|
|
164
|
-
"email" varchar(100) [unique, not null]
|
|
165
|
-
"password_hash" varchar(255) [not null]
|
|
166
|
-
"first_name" varchar(50)
|
|
167
|
-
"last_name" varchar(50)
|
|
168
|
-
"date_of_birth" date
|
|
169
|
-
"created_at" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
170
|
-
"last_login" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
171
|
-
"is_active" tinyint(1) [default: 1]
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
Ref "fk_test_composite":"composite_key_2".("id2_1", "id2_2") < "composite_key_1".("id1_1", "id1_2")
|
|
175
|
-
|
|
176
|
-
Ref "fk_detail_items_orders":"orders"."order_id" < "order_items"."order_id" [delete: cascade]
|
|
177
|
-
|
|
178
|
-
Ref "fk_detail_items_products":"products"."id" < "order_items"."product_id"
|
|
179
|
-
|
|
180
|
-
Ref "fk_order_user":"users"."user_id" < "orders"."user_id" [delete: set null]
|