|
15 | 15 | "notNull": true, |
16 | 16 | "default": "gen_random_uuid()" |
17 | 17 | }, |
18 | | - "museum_id": { |
19 | | - "name": "museum_id", |
| 18 | + "library_id": { |
| 19 | + "name": "library_id", |
20 | 20 | "type": "uuid", |
21 | 21 | "primaryKey": false, |
22 | 22 | "notNull": true |
|
57 | 57 | }, |
58 | 58 | "indexes": {}, |
59 | 59 | "foreignKeys": { |
60 | | - "analytics_museum_id_museums_id_fk": { |
61 | | - "name": "analytics_museum_id_museums_id_fk", |
| 60 | + "analytics_library_id_libraries_id_fk": { |
| 61 | + "name": "analytics_library_id_libraries_id_fk", |
62 | 62 | "tableFrom": "analytics", |
63 | | - "tableTo": "museums", |
| 63 | + "tableTo": "libraries", |
64 | 64 | "columnsFrom": [ |
65 | | - "museum_id" |
| 65 | + "library_id" |
66 | 66 | ], |
67 | 67 | "columnsTo": [ |
68 | 68 | "id" |
|
101 | 101 | "notNull": true, |
102 | 102 | "default": "gen_random_uuid()" |
103 | 103 | }, |
104 | | - "museum_id": { |
105 | | - "name": "museum_id", |
| 104 | + "library_id": { |
| 105 | + "name": "library_id", |
106 | 106 | "type": "uuid", |
107 | 107 | "primaryKey": false, |
108 | 108 | "notNull": true |
|
148 | 148 | }, |
149 | 149 | "indexes": {}, |
150 | 150 | "foreignKeys": { |
151 | | - "contact_messages_museum_id_museums_id_fk": { |
152 | | - "name": "contact_messages_museum_id_museums_id_fk", |
| 151 | + "contact_messages_library_id_libraries_id_fk": { |
| 152 | + "name": "contact_messages_library_id_libraries_id_fk", |
153 | 153 | "tableFrom": "contact_messages", |
154 | | - "tableTo": "museums", |
| 154 | + "tableTo": "libraries", |
155 | 155 | "columnsFrom": [ |
156 | | - "museum_id" |
| 156 | + "library_id" |
157 | 157 | ], |
158 | 158 | "columnsTo": [ |
159 | 159 | "id" |
|
179 | 179 | "notNull": true, |
180 | 180 | "default": "gen_random_uuid()" |
181 | 181 | }, |
182 | | - "museum_id": { |
183 | | - "name": "museum_id", |
| 182 | + "library_id": { |
| 183 | + "name": "library_id", |
184 | 184 | "type": "uuid", |
185 | 185 | "primaryKey": false, |
186 | 186 | "notNull": true |
|
245 | 245 | }, |
246 | 246 | "indexes": {}, |
247 | 247 | "foreignKeys": { |
248 | | - "events_museum_id_museums_id_fk": { |
249 | | - "name": "events_museum_id_museums_id_fk", |
| 248 | + "events_library_id_libraries_id_fk": { |
| 249 | + "name": "events_library_id_libraries_id_fk", |
250 | 250 | "tableFrom": "events", |
251 | | - "tableTo": "museums", |
| 251 | + "tableTo": "libraries", |
252 | 252 | "columnsFrom": [ |
253 | | - "museum_id" |
| 253 | + "library_id" |
254 | 254 | ], |
255 | 255 | "columnsTo": [ |
256 | 256 | "id" |
|
276 | 276 | "notNull": true, |
277 | 277 | "default": "gen_random_uuid()" |
278 | 278 | }, |
279 | | - "museum_id": { |
280 | | - "name": "museum_id", |
| 279 | + "library_id": { |
| 280 | + "name": "library_id", |
281 | 281 | "type": "uuid", |
282 | 282 | "primaryKey": false, |
283 | 283 | "notNull": true |
|
335 | 335 | }, |
336 | 336 | "indexes": {}, |
337 | 337 | "foreignKeys": { |
338 | | - "media_items_museum_id_museums_id_fk": { |
339 | | - "name": "media_items_museum_id_museums_id_fk", |
| 338 | + "media_items_library_id_libraries_id_fk": { |
| 339 | + "name": "media_items_library_id_libraries_id_fk", |
340 | 340 | "tableFrom": "media_items", |
341 | | - "tableTo": "museums", |
| 341 | + "tableTo": "libraries", |
342 | 342 | "columnsFrom": [ |
343 | | - "museum_id" |
| 343 | + "library_id" |
344 | 344 | ], |
345 | 345 | "columnsTo": [ |
346 | 346 | "id" |
|
355 | 355 | "checkConstraints": {}, |
356 | 356 | "isRLSEnabled": false |
357 | 357 | }, |
358 | | - "public.museums": { |
359 | | - "name": "museums", |
| 358 | + "public.libraries": { |
| 359 | + "name": "libraries", |
360 | 360 | "schema": "", |
361 | 361 | "columns": { |
362 | 362 | "id": { |
|
435 | 435 | "notNull": false, |
436 | 436 | "default": false |
437 | 437 | }, |
438 | | - "museum_type": { |
439 | | - "name": "museum_type", |
| 438 | + "library_type": { |
| 439 | + "name": "library_type", |
440 | 440 | "type": "text", |
441 | 441 | "primaryKey": false, |
442 | 442 | "notNull": true |
|
474 | 474 | "notNull": true, |
475 | 475 | "default": "gen_random_uuid()" |
476 | 476 | }, |
477 | | - "museum_id": { |
478 | | - "name": "museum_id", |
| 477 | + "library_id": { |
| 478 | + "name": "library_id", |
479 | 479 | "type": "uuid", |
480 | 480 | "primaryKey": false, |
481 | 481 | "notNull": true |
|
555 | 555 | }, |
556 | 556 | "indexes": {}, |
557 | 557 | "foreignKeys": { |
558 | | - "stories_museum_id_museums_id_fk": { |
559 | | - "name": "stories_museum_id_museums_id_fk", |
| 558 | + "stories_library_id_libraries_id_fk": { |
| 559 | + "name": "stories_library_id_libraries_id_fk", |
560 | 560 | "tableFrom": "stories", |
561 | | - "tableTo": "museums", |
| 561 | + "tableTo": "libraries", |
562 | 562 | "columnsFrom": [ |
563 | | - "museum_id" |
| 563 | + "library_id" |
564 | 564 | ], |
565 | 565 | "columnsTo": [ |
566 | 566 | "id" |
|
687 | 687 | "type": "text", |
688 | 688 | "primaryKey": false, |
689 | 689 | "notNull": true, |
690 | | - "default": "'museum_admin'" |
| 690 | + "default": "'library_admin'" |
691 | 691 | }, |
692 | | - "museum_id": { |
693 | | - "name": "museum_id", |
| 692 | + "library_id": { |
| 693 | + "name": "library_id", |
694 | 694 | "type": "uuid", |
695 | 695 | "primaryKey": false, |
696 | 696 | "notNull": true |
|
712 | 712 | }, |
713 | 713 | "indexes": {}, |
714 | 714 | "foreignKeys": { |
715 | | - "users_museum_id_museums_id_fk": { |
716 | | - "name": "users_museum_id_museums_id_fk", |
| 715 | + "users_library_id_libraries_id_fk": { |
| 716 | + "name": "users_library_id_libraries_id_fk", |
717 | 717 | "tableFrom": "users", |
718 | | - "tableTo": "museums", |
| 718 | + "tableTo": "libraries", |
719 | 719 | "columnsFrom": [ |
720 | | - "museum_id" |
| 720 | + "library_id" |
721 | 721 | ], |
722 | 722 | "columnsTo": [ |
723 | 723 | "id" |
|
0 commit comments