Raw
1 {
2 "namespaces": [
3 "public"
4 ],
5 "name": "public",
6 "tables": [
7 {
8 "columns": {
9 "id": {
10 "name": "id",
11 "type": "text",
12 "unsigned": false,
13 "autoincrement": false,
14 "primary": false,
15 "nullable": false,
16 "mappedType": "text"
17 },
18 "code": {
19 "name": "code",
20 "type": "text",
21 "unsigned": false,
22 "autoincrement": false,
23 "primary": false,
24 "nullable": false,
25 "mappedType": "text"
26 },
27 "name": {
28 "name": "name",
29 "type": "text",
30 "unsigned": false,
31 "autoincrement": false,
32 "primary": false,
33 "nullable": false,
34 "mappedType": "text"
35 },
36 "created_at": {
37 "name": "created_at",
38 "type": "timestamptz",
39 "unsigned": false,
40 "autoincrement": false,
41 "primary": false,
42 "nullable": false,
43 "length": 6,
44 "default": "now()",
45 "mappedType": "datetime"
46 },
47 "updated_at": {
48 "name": "updated_at",
49 "type": "timestamptz",
50 "unsigned": false,
51 "autoincrement": false,
52 "primary": false,
53 "nullable": false,
54 "length": 6,
55 "default": "now()",
56 "mappedType": "datetime"
57 },
58 "deleted_at": {
59 "name": "deleted_at",
60 "type": "timestamptz",
61 "unsigned": false,
62 "autoincrement": false,
63 "primary": false,
64 "nullable": true,
65 "length": 6,
66 "mappedType": "datetime"
67 }
68 },
69 "name": "locale",
70 "schema": "public",
71 "indexes": [
72 {
73 "keyName": "IDX_locale_deleted_at",
74 "columnNames": [],
75 "composite": false,
76 "constraint": false,
77 "primary": false,
78 "unique": false,
79 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_locale_deleted_at\" ON \"locale\" (\"deleted_at\") WHERE deleted_at IS NULL"
80 },
81 {
82 "keyName": "IDX_locale_code_unique",
83 "columnNames": [],
84 "composite": false,
85 "constraint": false,
86 "primary": false,
87 "unique": false,
88 "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_locale_code_unique\" ON \"locale\" (\"code\") WHERE deleted_at IS NULL"
89 },
90 {
91 "keyName": "locale_pkey",
92 "columnNames": [
93 "id"
94 ],
95 "composite": false,
96 "constraint": true,
97 "primary": true,
98 "unique": true
99 }
100 ],
101 "checks": [],
102 "foreignKeys": {},
103 "nativeEnums": {}
104 },
105 {
106 "columns": {
107 "id": {
108 "name": "id",
109 "type": "text",
110 "unsigned": false,
111 "autoincrement": false,
112 "primary": false,
113 "nullable": false,
114 "mappedType": "text"
115 },
116 "reference_id": {
117 "name": "reference_id",
118 "type": "text",
119 "unsigned": false,
120 "autoincrement": false,
121 "primary": false,
122 "nullable": false,
123 "mappedType": "text"
124 },
125 "reference": {
126 "name": "reference",
127 "type": "text",
128 "unsigned": false,
129 "autoincrement": false,
130 "primary": false,
131 "nullable": false,
132 "mappedType": "text"
133 },
134 "locale_code": {
135 "name": "locale_code",
136 "type": "text",
137 "unsigned": false,
138 "autoincrement": false,
139 "primary": false,
140 "nullable": false,
141 "mappedType": "text"
142 },
143 "translations": {
144 "name": "translations",
145 "type": "jsonb",
146 "unsigned": false,
147 "autoincrement": false,
148 "primary": false,
149 "nullable": false,
150 "mappedType": "json"
151 },
152 "translated_field_count": {
153 "name": "translated_field_count",
154 "type": "integer",
155 "unsigned": false,
156 "autoincrement": false,
157 "primary": false,
158 "nullable": false,
159 "default": "0",
160 "mappedType": "integer"
161 },
162 "created_at": {
163 "name": "created_at",
164 "type": "timestamptz",
165 "unsigned": false,
166 "autoincrement": false,
167 "primary": false,
168 "nullable": false,
169 "length": 6,
170 "default": "now()",
171 "mappedType": "datetime"
172 },
173 "updated_at": {
174 "name": "updated_at",
175 "type": "timestamptz",
176 "unsigned": false,
177 "autoincrement": false,
178 "primary": false,
179 "nullable": false,
180 "length": 6,
181 "default": "now()",
182 "mappedType": "datetime"
183 },
184 "deleted_at": {
185 "name": "deleted_at",
186 "type": "timestamptz",
187 "unsigned": false,
188 "autoincrement": false,
189 "primary": false,
190 "nullable": true,
191 "length": 6,
192 "mappedType": "datetime"
193 }
194 },
195 "name": "translation",
196 "schema": "public",
197 "indexes": [
198 {
199 "keyName": "IDX_translation_deleted_at",
200 "columnNames": [],
201 "composite": false,
202 "constraint": false,
203 "primary": false,
204 "unique": false,
205 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_translation_deleted_at\" ON \"translation\" (\"deleted_at\") WHERE deleted_at IS NULL"
206 },
207 {
208 "keyName": "IDX_translation_reference_id_locale_code_unique",
209 "columnNames": [],
210 "composite": false,
211 "constraint": false,
212 "primary": false,
213 "unique": false,
214 "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_translation_reference_id_locale_code_unique\" ON \"translation\" (\"reference_id\", \"locale_code\") WHERE deleted_at IS NULL"
215 },
216 {
217 "keyName": "IDX_translation_reference_id_reference_locale_code",
218 "columnNames": [],
219 "composite": false,
220 "constraint": false,
221 "primary": false,
222 "unique": false,
223 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_translation_reference_id_reference_locale_code\" ON \"translation\" (\"reference_id\", \"reference\", \"locale_code\") WHERE deleted_at IS NULL"
224 },
225 {
226 "keyName": "IDX_translation_reference_locale_code",
227 "columnNames": [],
228 "composite": false,
229 "constraint": false,
230 "primary": false,
231 "unique": false,
232 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_translation_reference_locale_code\" ON \"translation\" (\"reference\", \"locale_code\") WHERE deleted_at IS NULL"
233 },
234 {
235 "keyName": "IDX_translation_reference_id_reference",
236 "columnNames": [],
237 "composite": false,
238 "constraint": false,
239 "primary": false,
240 "unique": false,
241 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_translation_reference_id_reference\" ON \"translation\" (\"reference_id\", \"reference\") WHERE deleted_at IS NULL"
242 },
243 {
244 "keyName": "IDX_translation_locale_code",
245 "columnNames": [],
246 "composite": false,
247 "constraint": false,
248 "primary": false,
249 "unique": false,
250 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_translation_locale_code\" ON \"translation\" (\"locale_code\") WHERE deleted_at IS NULL"
251 },
252 {
253 "keyName": "translation_pkey",
254 "columnNames": [
255 "id"
256 ],
257 "composite": false,
258 "constraint": true,
259 "primary": true,
260 "unique": true
261 }
262 ],
263 "checks": [],
264 "foreignKeys": {},
265 "nativeEnums": {}
266 },
267 {
268 "columns": {
269 "id": {
270 "name": "id",
271 "type": "text",
272 "unsigned": false,
273 "autoincrement": false,
274 "primary": false,
275 "nullable": false,
276 "mappedType": "text"
277 },
278 "entity_type": {
279 "name": "entity_type",
280 "type": "text",
281 "unsigned": false,
282 "autoincrement": false,
283 "primary": false,
284 "nullable": false,
285 "mappedType": "text"
286 },
287 "fields": {
288 "name": "fields",
289 "type": "jsonb",
290 "unsigned": false,
291 "autoincrement": false,
292 "primary": false,
293 "nullable": false,
294 "mappedType": "json"
295 },
296 "is_active": {
297 "name": "is_active",
298 "type": "boolean",
299 "unsigned": false,
300 "autoincrement": false,
301 "primary": false,
302 "nullable": false,
303 "default": "true",
304 "mappedType": "boolean"
305 },
306 "created_at": {
307 "name": "created_at",
308 "type": "timestamptz",
309 "unsigned": false,
310 "autoincrement": false,
311 "primary": false,
312 "nullable": false,
313 "length": 6,
314 "default": "now()",
315 "mappedType": "datetime"
316 },
317 "updated_at": {
318 "name": "updated_at",
319 "type": "timestamptz",
320 "unsigned": false,
321 "autoincrement": false,
322 "primary": false,
323 "nullable": false,
324 "length": 6,
325 "default": "now()",
326 "mappedType": "datetime"
327 },
328 "deleted_at": {
329 "name": "deleted_at",
330 "type": "timestamptz",
331 "unsigned": false,
332 "autoincrement": false,
333 "primary": false,
334 "nullable": true,
335 "length": 6,
336 "mappedType": "datetime"
337 }
338 },
339 "name": "translation_settings",
340 "schema": "public",
341 "indexes": [
342 {
343 "keyName": "IDX_translation_settings_deleted_at",
344 "columnNames": [],
345 "composite": false,
346 "constraint": false,
347 "primary": false,
348 "unique": false,
349 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_translation_settings_deleted_at\" ON \"translation_settings\" (\"deleted_at\") WHERE deleted_at IS NULL"
350 },
351 {
352 "keyName": "IDX_translation_settings_entity_type_unique",
353 "columnNames": [],
354 "composite": false,
355 "constraint": false,
356 "primary": false,
357 "unique": false,
358 "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_translation_settings_entity_type_unique\" ON \"translation_settings\" (\"entity_type\") WHERE deleted_at IS NULL"
359 },
360 {
361 "keyName": "translation_settings_pkey",
362 "columnNames": [
363 "id"
364 ],
365 "composite": false,
366 "constraint": true,
367 "primary": true,
368 "unique": true
369 }
370 ],
371 "checks": [],
372 "foreignKeys": {},
373 "nativeEnums": {}
374 }
375 ],
376 "nativeEnums": {}
377 }