This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

db migration files

+1786
+20
src/shared/infrastructure/database/migrations/0018_classy_changeling.sql
··· 1 + CREATE TABLE "connections" ( 2 + "id" uuid PRIMARY KEY NOT NULL, 3 + "curator_id" text NOT NULL, 4 + "source_type" text NOT NULL, 5 + "source_value" text NOT NULL, 6 + "target_type" text NOT NULL, 7 + "target_value" text NOT NULL, 8 + "connection_type" text, 9 + "note" text, 10 + "published_record_id" uuid, 11 + "created_at" timestamp DEFAULT now() NOT NULL, 12 + "updated_at" timestamp DEFAULT now() NOT NULL 13 + ); 14 + --> statement-breakpoint 15 + ALTER TABLE "connections" ADD CONSTRAINT "connections_published_record_id_published_records_id_fk" FOREIGN KEY ("published_record_id") REFERENCES "public"."published_records"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint 16 + CREATE INDEX "connections_curator_id_idx" ON "connections" USING btree ("curator_id");--> statement-breakpoint 17 + CREATE INDEX "connections_source_idx" ON "connections" USING btree ("source_type","source_value");--> statement-breakpoint 18 + CREATE INDEX "connections_target_idx" ON "connections" USING btree ("target_type","target_value");--> statement-breakpoint 19 + CREATE INDEX "connections_created_at_idx" ON "connections" USING btree ("created_at" DESC NULLS LAST);--> statement-breakpoint 20 + CREATE INDEX "connections_curator_created_at_idx" ON "connections" USING btree ("curator_id","created_at" DESC NULLS LAST);
+1759
src/shared/infrastructure/database/migrations/meta/0018_snapshot.json
··· 1 + { 2 + "id": "8816e49e-c7eb-497e-9958-c8997762c985", 3 + "prevId": "3c3e6afe-11db-4e0c-918b-e358b4a761e4", 4 + "version": "7", 5 + "dialect": "postgresql", 6 + "tables": { 7 + "public.app_password_sessions": { 8 + "name": "app_password_sessions", 9 + "schema": "", 10 + "columns": { 11 + "did": { 12 + "name": "did", 13 + "type": "text", 14 + "primaryKey": true, 15 + "notNull": true 16 + }, 17 + "session_data": { 18 + "name": "session_data", 19 + "type": "jsonb", 20 + "primaryKey": false, 21 + "notNull": true 22 + }, 23 + "app_password": { 24 + "name": "app_password", 25 + "type": "text", 26 + "primaryKey": false, 27 + "notNull": true 28 + }, 29 + "created_at": { 30 + "name": "created_at", 31 + "type": "timestamp", 32 + "primaryKey": false, 33 + "notNull": false, 34 + "default": "now()" 35 + }, 36 + "updated_at": { 37 + "name": "updated_at", 38 + "type": "timestamp", 39 + "primaryKey": false, 40 + "notNull": false, 41 + "default": "now()" 42 + } 43 + }, 44 + "indexes": {}, 45 + "foreignKeys": {}, 46 + "compositePrimaryKeys": {}, 47 + "uniqueConstraints": {}, 48 + "policies": {}, 49 + "checkConstraints": {}, 50 + "isRLSEnabled": false 51 + }, 52 + "public.cards": { 53 + "name": "cards", 54 + "schema": "", 55 + "columns": { 56 + "id": { 57 + "name": "id", 58 + "type": "uuid", 59 + "primaryKey": true, 60 + "notNull": true 61 + }, 62 + "author_id": { 63 + "name": "author_id", 64 + "type": "text", 65 + "primaryKey": false, 66 + "notNull": true 67 + }, 68 + "type": { 69 + "name": "type", 70 + "type": "text", 71 + "primaryKey": false, 72 + "notNull": true 73 + }, 74 + "content_data": { 75 + "name": "content_data", 76 + "type": "jsonb", 77 + "primaryKey": false, 78 + "notNull": true 79 + }, 80 + "url": { 81 + "name": "url", 82 + "type": "text", 83 + "primaryKey": false, 84 + "notNull": false 85 + }, 86 + "url_type": { 87 + "name": "url_type", 88 + "type": "text", 89 + "primaryKey": false, 90 + "notNull": false 91 + }, 92 + "parent_card_id": { 93 + "name": "parent_card_id", 94 + "type": "uuid", 95 + "primaryKey": false, 96 + "notNull": false 97 + }, 98 + "via_card_id": { 99 + "name": "via_card_id", 100 + "type": "uuid", 101 + "primaryKey": false, 102 + "notNull": false 103 + }, 104 + "published_record_id": { 105 + "name": "published_record_id", 106 + "type": "uuid", 107 + "primaryKey": false, 108 + "notNull": false 109 + }, 110 + "library_count": { 111 + "name": "library_count", 112 + "type": "integer", 113 + "primaryKey": false, 114 + "notNull": true, 115 + "default": 0 116 + }, 117 + "created_at": { 118 + "name": "created_at", 119 + "type": "timestamp", 120 + "primaryKey": false, 121 + "notNull": true, 122 + "default": "now()" 123 + }, 124 + "updated_at": { 125 + "name": "updated_at", 126 + "type": "timestamp", 127 + "primaryKey": false, 128 + "notNull": true, 129 + "default": "now()" 130 + } 131 + }, 132 + "indexes": { 133 + "cards_author_url_idx": { 134 + "name": "cards_author_url_idx", 135 + "columns": [ 136 + { 137 + "expression": "author_id", 138 + "isExpression": false, 139 + "asc": true, 140 + "nulls": "last" 141 + }, 142 + { 143 + "expression": "url", 144 + "isExpression": false, 145 + "asc": true, 146 + "nulls": "last" 147 + } 148 + ], 149 + "isUnique": false, 150 + "concurrently": false, 151 + "method": "btree", 152 + "with": {} 153 + }, 154 + "cards_author_id_idx": { 155 + "name": "cards_author_id_idx", 156 + "columns": [ 157 + { 158 + "expression": "author_id", 159 + "isExpression": false, 160 + "asc": true, 161 + "nulls": "last" 162 + } 163 + ], 164 + "isUnique": false, 165 + "concurrently": false, 166 + "method": "btree", 167 + "with": {} 168 + }, 169 + "idx_cards_type_updated_at": { 170 + "name": "idx_cards_type_updated_at", 171 + "columns": [ 172 + { 173 + "expression": "type", 174 + "isExpression": false, 175 + "asc": true, 176 + "nulls": "last" 177 + }, 178 + { 179 + "expression": "updated_at", 180 + "isExpression": false, 181 + "asc": false, 182 + "nulls": "last" 183 + } 184 + ], 185 + "isUnique": false, 186 + "concurrently": false, 187 + "method": "btree", 188 + "with": {} 189 + }, 190 + "idx_cards_url_type": { 191 + "name": "idx_cards_url_type", 192 + "columns": [ 193 + { 194 + "expression": "url", 195 + "isExpression": false, 196 + "asc": true, 197 + "nulls": "last" 198 + }, 199 + { 200 + "expression": "type", 201 + "isExpression": false, 202 + "asc": true, 203 + "nulls": "last" 204 + } 205 + ], 206 + "isUnique": false, 207 + "concurrently": false, 208 + "method": "btree", 209 + "with": {} 210 + }, 211 + "idx_cards_url_type_filter": { 212 + "name": "idx_cards_url_type_filter", 213 + "columns": [ 214 + { 215 + "expression": "url_type", 216 + "isExpression": false, 217 + "asc": true, 218 + "nulls": "last" 219 + } 220 + ], 221 + "isUnique": false, 222 + "concurrently": false, 223 + "method": "btree", 224 + "with": {} 225 + }, 226 + "idx_cards_parent_type": { 227 + "name": "idx_cards_parent_type", 228 + "columns": [ 229 + { 230 + "expression": "parent_card_id", 231 + "isExpression": false, 232 + "asc": true, 233 + "nulls": "last" 234 + }, 235 + { 236 + "expression": "type", 237 + "isExpression": false, 238 + "asc": true, 239 + "nulls": "last" 240 + } 241 + ], 242 + "isUnique": false, 243 + "where": "type = 'NOTE'", 244 + "concurrently": false, 245 + "method": "btree", 246 + "with": {} 247 + } 248 + }, 249 + "foreignKeys": { 250 + "cards_parent_card_id_cards_id_fk": { 251 + "name": "cards_parent_card_id_cards_id_fk", 252 + "tableFrom": "cards", 253 + "tableTo": "cards", 254 + "columnsFrom": ["parent_card_id"], 255 + "columnsTo": ["id"], 256 + "onDelete": "no action", 257 + "onUpdate": "no action" 258 + }, 259 + "cards_via_card_id_cards_id_fk": { 260 + "name": "cards_via_card_id_cards_id_fk", 261 + "tableFrom": "cards", 262 + "tableTo": "cards", 263 + "columnsFrom": ["via_card_id"], 264 + "columnsTo": ["id"], 265 + "onDelete": "no action", 266 + "onUpdate": "no action" 267 + }, 268 + "cards_published_record_id_published_records_id_fk": { 269 + "name": "cards_published_record_id_published_records_id_fk", 270 + "tableFrom": "cards", 271 + "tableTo": "published_records", 272 + "columnsFrom": ["published_record_id"], 273 + "columnsTo": ["id"], 274 + "onDelete": "no action", 275 + "onUpdate": "no action" 276 + } 277 + }, 278 + "compositePrimaryKeys": {}, 279 + "uniqueConstraints": {}, 280 + "policies": {}, 281 + "checkConstraints": {}, 282 + "isRLSEnabled": false 283 + }, 284 + "public.collection_cards": { 285 + "name": "collection_cards", 286 + "schema": "", 287 + "columns": { 288 + "id": { 289 + "name": "id", 290 + "type": "uuid", 291 + "primaryKey": true, 292 + "notNull": true 293 + }, 294 + "collection_id": { 295 + "name": "collection_id", 296 + "type": "uuid", 297 + "primaryKey": false, 298 + "notNull": true 299 + }, 300 + "card_id": { 301 + "name": "card_id", 302 + "type": "uuid", 303 + "primaryKey": false, 304 + "notNull": true 305 + }, 306 + "added_by": { 307 + "name": "added_by", 308 + "type": "text", 309 + "primaryKey": false, 310 + "notNull": true 311 + }, 312 + "added_at": { 313 + "name": "added_at", 314 + "type": "timestamp", 315 + "primaryKey": false, 316 + "notNull": true, 317 + "default": "now()" 318 + }, 319 + "via_card_id": { 320 + "name": "via_card_id", 321 + "type": "uuid", 322 + "primaryKey": false, 323 + "notNull": false 324 + }, 325 + "published_record_id": { 326 + "name": "published_record_id", 327 + "type": "uuid", 328 + "primaryKey": false, 329 + "notNull": false 330 + } 331 + }, 332 + "indexes": { 333 + "collection_cards_card_id_idx": { 334 + "name": "collection_cards_card_id_idx", 335 + "columns": [ 336 + { 337 + "expression": "card_id", 338 + "isExpression": false, 339 + "asc": true, 340 + "nulls": "last" 341 + } 342 + ], 343 + "isUnique": false, 344 + "concurrently": false, 345 + "method": "btree", 346 + "with": {} 347 + }, 348 + "collection_cards_collection_id_idx": { 349 + "name": "collection_cards_collection_id_idx", 350 + "columns": [ 351 + { 352 + "expression": "collection_id", 353 + "isExpression": false, 354 + "asc": true, 355 + "nulls": "last" 356 + } 357 + ], 358 + "isUnique": false, 359 + "concurrently": false, 360 + "method": "btree", 361 + "with": {} 362 + }, 363 + "idx_collection_cards_collection_added": { 364 + "name": "idx_collection_cards_collection_added", 365 + "columns": [ 366 + { 367 + "expression": "collection_id", 368 + "isExpression": false, 369 + "asc": true, 370 + "nulls": "last" 371 + }, 372 + { 373 + "expression": "added_at", 374 + "isExpression": false, 375 + "asc": false, 376 + "nulls": "last" 377 + } 378 + ], 379 + "isUnique": false, 380 + "concurrently": false, 381 + "method": "btree", 382 + "with": {} 383 + }, 384 + "idx_collection_cards_card_collection": { 385 + "name": "idx_collection_cards_card_collection", 386 + "columns": [ 387 + { 388 + "expression": "card_id", 389 + "isExpression": false, 390 + "asc": true, 391 + "nulls": "last" 392 + } 393 + ], 394 + "isUnique": false, 395 + "concurrently": false, 396 + "method": "btree", 397 + "with": {} 398 + }, 399 + "idx_collection_cards_added_by_added_at": { 400 + "name": "idx_collection_cards_added_by_added_at", 401 + "columns": [ 402 + { 403 + "expression": "added_by", 404 + "isExpression": false, 405 + "asc": true, 406 + "nulls": "last" 407 + }, 408 + { 409 + "expression": "added_at", 410 + "isExpression": false, 411 + "asc": false, 412 + "nulls": "last" 413 + } 414 + ], 415 + "isUnique": false, 416 + "concurrently": false, 417 + "method": "btree", 418 + "with": {} 419 + } 420 + }, 421 + "foreignKeys": { 422 + "collection_cards_collection_id_collections_id_fk": { 423 + "name": "collection_cards_collection_id_collections_id_fk", 424 + "tableFrom": "collection_cards", 425 + "tableTo": "collections", 426 + "columnsFrom": ["collection_id"], 427 + "columnsTo": ["id"], 428 + "onDelete": "cascade", 429 + "onUpdate": "no action" 430 + }, 431 + "collection_cards_card_id_cards_id_fk": { 432 + "name": "collection_cards_card_id_cards_id_fk", 433 + "tableFrom": "collection_cards", 434 + "tableTo": "cards", 435 + "columnsFrom": ["card_id"], 436 + "columnsTo": ["id"], 437 + "onDelete": "cascade", 438 + "onUpdate": "no action" 439 + }, 440 + "collection_cards_via_card_id_cards_id_fk": { 441 + "name": "collection_cards_via_card_id_cards_id_fk", 442 + "tableFrom": "collection_cards", 443 + "tableTo": "cards", 444 + "columnsFrom": ["via_card_id"], 445 + "columnsTo": ["id"], 446 + "onDelete": "no action", 447 + "onUpdate": "no action" 448 + }, 449 + "collection_cards_published_record_id_published_records_id_fk": { 450 + "name": "collection_cards_published_record_id_published_records_id_fk", 451 + "tableFrom": "collection_cards", 452 + "tableTo": "published_records", 453 + "columnsFrom": ["published_record_id"], 454 + "columnsTo": ["id"], 455 + "onDelete": "no action", 456 + "onUpdate": "no action" 457 + } 458 + }, 459 + "compositePrimaryKeys": {}, 460 + "uniqueConstraints": {}, 461 + "policies": {}, 462 + "checkConstraints": {}, 463 + "isRLSEnabled": false 464 + }, 465 + "public.collection_collaborators": { 466 + "name": "collection_collaborators", 467 + "schema": "", 468 + "columns": { 469 + "id": { 470 + "name": "id", 471 + "type": "uuid", 472 + "primaryKey": true, 473 + "notNull": true 474 + }, 475 + "collection_id": { 476 + "name": "collection_id", 477 + "type": "uuid", 478 + "primaryKey": false, 479 + "notNull": true 480 + }, 481 + "collaborator_id": { 482 + "name": "collaborator_id", 483 + "type": "text", 484 + "primaryKey": false, 485 + "notNull": true 486 + } 487 + }, 488 + "indexes": {}, 489 + "foreignKeys": { 490 + "collection_collaborators_collection_id_collections_id_fk": { 491 + "name": "collection_collaborators_collection_id_collections_id_fk", 492 + "tableFrom": "collection_collaborators", 493 + "tableTo": "collections", 494 + "columnsFrom": ["collection_id"], 495 + "columnsTo": ["id"], 496 + "onDelete": "cascade", 497 + "onUpdate": "no action" 498 + } 499 + }, 500 + "compositePrimaryKeys": {}, 501 + "uniqueConstraints": {}, 502 + "policies": {}, 503 + "checkConstraints": {}, 504 + "isRLSEnabled": false 505 + }, 506 + "public.collections": { 507 + "name": "collections", 508 + "schema": "", 509 + "columns": { 510 + "id": { 511 + "name": "id", 512 + "type": "uuid", 513 + "primaryKey": true, 514 + "notNull": true 515 + }, 516 + "author_id": { 517 + "name": "author_id", 518 + "type": "text", 519 + "primaryKey": false, 520 + "notNull": true 521 + }, 522 + "name": { 523 + "name": "name", 524 + "type": "text", 525 + "primaryKey": false, 526 + "notNull": true 527 + }, 528 + "description": { 529 + "name": "description", 530 + "type": "text", 531 + "primaryKey": false, 532 + "notNull": false 533 + }, 534 + "access_type": { 535 + "name": "access_type", 536 + "type": "text", 537 + "primaryKey": false, 538 + "notNull": true 539 + }, 540 + "card_count": { 541 + "name": "card_count", 542 + "type": "integer", 543 + "primaryKey": false, 544 + "notNull": true, 545 + "default": 0 546 + }, 547 + "created_at": { 548 + "name": "created_at", 549 + "type": "timestamp", 550 + "primaryKey": false, 551 + "notNull": true, 552 + "default": "now()" 553 + }, 554 + "updated_at": { 555 + "name": "updated_at", 556 + "type": "timestamp", 557 + "primaryKey": false, 558 + "notNull": true, 559 + "default": "now()" 560 + }, 561 + "published_record_id": { 562 + "name": "published_record_id", 563 + "type": "uuid", 564 + "primaryKey": false, 565 + "notNull": false 566 + } 567 + }, 568 + "indexes": { 569 + "collections_author_id_idx": { 570 + "name": "collections_author_id_idx", 571 + "columns": [ 572 + { 573 + "expression": "author_id", 574 + "isExpression": false, 575 + "asc": true, 576 + "nulls": "last" 577 + } 578 + ], 579 + "isUnique": false, 580 + "concurrently": false, 581 + "method": "btree", 582 + "with": {} 583 + }, 584 + "collections_author_updated_at_idx": { 585 + "name": "collections_author_updated_at_idx", 586 + "columns": [ 587 + { 588 + "expression": "author_id", 589 + "isExpression": false, 590 + "asc": true, 591 + "nulls": "last" 592 + }, 593 + { 594 + "expression": "updated_at", 595 + "isExpression": false, 596 + "asc": true, 597 + "nulls": "last" 598 + } 599 + ], 600 + "isUnique": false, 601 + "concurrently": false, 602 + "method": "btree", 603 + "with": {} 604 + } 605 + }, 606 + "foreignKeys": { 607 + "collections_published_record_id_published_records_id_fk": { 608 + "name": "collections_published_record_id_published_records_id_fk", 609 + "tableFrom": "collections", 610 + "tableTo": "published_records", 611 + "columnsFrom": ["published_record_id"], 612 + "columnsTo": ["id"], 613 + "onDelete": "no action", 614 + "onUpdate": "no action" 615 + } 616 + }, 617 + "compositePrimaryKeys": {}, 618 + "uniqueConstraints": {}, 619 + "policies": {}, 620 + "checkConstraints": {}, 621 + "isRLSEnabled": false 622 + }, 623 + "public.connections": { 624 + "name": "connections", 625 + "schema": "", 626 + "columns": { 627 + "id": { 628 + "name": "id", 629 + "type": "uuid", 630 + "primaryKey": true, 631 + "notNull": true 632 + }, 633 + "curator_id": { 634 + "name": "curator_id", 635 + "type": "text", 636 + "primaryKey": false, 637 + "notNull": true 638 + }, 639 + "source_type": { 640 + "name": "source_type", 641 + "type": "text", 642 + "primaryKey": false, 643 + "notNull": true 644 + }, 645 + "source_value": { 646 + "name": "source_value", 647 + "type": "text", 648 + "primaryKey": false, 649 + "notNull": true 650 + }, 651 + "target_type": { 652 + "name": "target_type", 653 + "type": "text", 654 + "primaryKey": false, 655 + "notNull": true 656 + }, 657 + "target_value": { 658 + "name": "target_value", 659 + "type": "text", 660 + "primaryKey": false, 661 + "notNull": true 662 + }, 663 + "connection_type": { 664 + "name": "connection_type", 665 + "type": "text", 666 + "primaryKey": false, 667 + "notNull": false 668 + }, 669 + "note": { 670 + "name": "note", 671 + "type": "text", 672 + "primaryKey": false, 673 + "notNull": false 674 + }, 675 + "published_record_id": { 676 + "name": "published_record_id", 677 + "type": "uuid", 678 + "primaryKey": false, 679 + "notNull": false 680 + }, 681 + "created_at": { 682 + "name": "created_at", 683 + "type": "timestamp", 684 + "primaryKey": false, 685 + "notNull": true, 686 + "default": "now()" 687 + }, 688 + "updated_at": { 689 + "name": "updated_at", 690 + "type": "timestamp", 691 + "primaryKey": false, 692 + "notNull": true, 693 + "default": "now()" 694 + } 695 + }, 696 + "indexes": { 697 + "connections_curator_id_idx": { 698 + "name": "connections_curator_id_idx", 699 + "columns": [ 700 + { 701 + "expression": "curator_id", 702 + "isExpression": false, 703 + "asc": true, 704 + "nulls": "last" 705 + } 706 + ], 707 + "isUnique": false, 708 + "concurrently": false, 709 + "method": "btree", 710 + "with": {} 711 + }, 712 + "connections_source_idx": { 713 + "name": "connections_source_idx", 714 + "columns": [ 715 + { 716 + "expression": "source_type", 717 + "isExpression": false, 718 + "asc": true, 719 + "nulls": "last" 720 + }, 721 + { 722 + "expression": "source_value", 723 + "isExpression": false, 724 + "asc": true, 725 + "nulls": "last" 726 + } 727 + ], 728 + "isUnique": false, 729 + "concurrently": false, 730 + "method": "btree", 731 + "with": {} 732 + }, 733 + "connections_target_idx": { 734 + "name": "connections_target_idx", 735 + "columns": [ 736 + { 737 + "expression": "target_type", 738 + "isExpression": false, 739 + "asc": true, 740 + "nulls": "last" 741 + }, 742 + { 743 + "expression": "target_value", 744 + "isExpression": false, 745 + "asc": true, 746 + "nulls": "last" 747 + } 748 + ], 749 + "isUnique": false, 750 + "concurrently": false, 751 + "method": "btree", 752 + "with": {} 753 + }, 754 + "connections_created_at_idx": { 755 + "name": "connections_created_at_idx", 756 + "columns": [ 757 + { 758 + "expression": "created_at", 759 + "isExpression": false, 760 + "asc": false, 761 + "nulls": "last" 762 + } 763 + ], 764 + "isUnique": false, 765 + "concurrently": false, 766 + "method": "btree", 767 + "with": {} 768 + }, 769 + "connections_curator_created_at_idx": { 770 + "name": "connections_curator_created_at_idx", 771 + "columns": [ 772 + { 773 + "expression": "curator_id", 774 + "isExpression": false, 775 + "asc": true, 776 + "nulls": "last" 777 + }, 778 + { 779 + "expression": "created_at", 780 + "isExpression": false, 781 + "asc": false, 782 + "nulls": "last" 783 + } 784 + ], 785 + "isUnique": false, 786 + "concurrently": false, 787 + "method": "btree", 788 + "with": {} 789 + } 790 + }, 791 + "foreignKeys": { 792 + "connections_published_record_id_published_records_id_fk": { 793 + "name": "connections_published_record_id_published_records_id_fk", 794 + "tableFrom": "connections", 795 + "tableTo": "published_records", 796 + "columnsFrom": ["published_record_id"], 797 + "columnsTo": ["id"], 798 + "onDelete": "no action", 799 + "onUpdate": "no action" 800 + } 801 + }, 802 + "compositePrimaryKeys": {}, 803 + "uniqueConstraints": {}, 804 + "policies": {}, 805 + "checkConstraints": {}, 806 + "isRLSEnabled": false 807 + }, 808 + "public.library_memberships": { 809 + "name": "library_memberships", 810 + "schema": "", 811 + "columns": { 812 + "card_id": { 813 + "name": "card_id", 814 + "type": "uuid", 815 + "primaryKey": false, 816 + "notNull": true 817 + }, 818 + "user_id": { 819 + "name": "user_id", 820 + "type": "text", 821 + "primaryKey": false, 822 + "notNull": true 823 + }, 824 + "added_at": { 825 + "name": "added_at", 826 + "type": "timestamp", 827 + "primaryKey": false, 828 + "notNull": true, 829 + "default": "now()" 830 + }, 831 + "published_record_id": { 832 + "name": "published_record_id", 833 + "type": "uuid", 834 + "primaryKey": false, 835 + "notNull": false 836 + } 837 + }, 838 + "indexes": { 839 + "idx_user_cards": { 840 + "name": "idx_user_cards", 841 + "columns": [ 842 + { 843 + "expression": "user_id", 844 + "isExpression": false, 845 + "asc": true, 846 + "nulls": "last" 847 + } 848 + ], 849 + "isUnique": false, 850 + "concurrently": false, 851 + "method": "btree", 852 + "with": {} 853 + }, 854 + "idx_card_users": { 855 + "name": "idx_card_users", 856 + "columns": [ 857 + { 858 + "expression": "card_id", 859 + "isExpression": false, 860 + "asc": true, 861 + "nulls": "last" 862 + } 863 + ], 864 + "isUnique": false, 865 + "concurrently": false, 866 + "method": "btree", 867 + "with": {} 868 + }, 869 + "idx_library_memberships_user_type_covering": { 870 + "name": "idx_library_memberships_user_type_covering", 871 + "columns": [ 872 + { 873 + "expression": "user_id", 874 + "isExpression": false, 875 + "asc": true, 876 + "nulls": "last" 877 + }, 878 + { 879 + "expression": "added_at", 880 + "isExpression": false, 881 + "asc": false, 882 + "nulls": "last" 883 + } 884 + ], 885 + "isUnique": false, 886 + "concurrently": false, 887 + "method": "btree", 888 + "with": {} 889 + } 890 + }, 891 + "foreignKeys": { 892 + "library_memberships_card_id_cards_id_fk": { 893 + "name": "library_memberships_card_id_cards_id_fk", 894 + "tableFrom": "library_memberships", 895 + "tableTo": "cards", 896 + "columnsFrom": ["card_id"], 897 + "columnsTo": ["id"], 898 + "onDelete": "cascade", 899 + "onUpdate": "no action" 900 + }, 901 + "library_memberships_published_record_id_published_records_id_fk": { 902 + "name": "library_memberships_published_record_id_published_records_id_fk", 903 + "tableFrom": "library_memberships", 904 + "tableTo": "published_records", 905 + "columnsFrom": ["published_record_id"], 906 + "columnsTo": ["id"], 907 + "onDelete": "no action", 908 + "onUpdate": "no action" 909 + } 910 + }, 911 + "compositePrimaryKeys": { 912 + "library_memberships_card_id_user_id_pk": { 913 + "name": "library_memberships_card_id_user_id_pk", 914 + "columns": ["card_id", "user_id"] 915 + } 916 + }, 917 + "uniqueConstraints": {}, 918 + "policies": {}, 919 + "checkConstraints": {}, 920 + "isRLSEnabled": false 921 + }, 922 + "public.published_records": { 923 + "name": "published_records", 924 + "schema": "", 925 + "columns": { 926 + "id": { 927 + "name": "id", 928 + "type": "uuid", 929 + "primaryKey": true, 930 + "notNull": true 931 + }, 932 + "uri": { 933 + "name": "uri", 934 + "type": "text", 935 + "primaryKey": false, 936 + "notNull": true 937 + }, 938 + "cid": { 939 + "name": "cid", 940 + "type": "text", 941 + "primaryKey": false, 942 + "notNull": true 943 + }, 944 + "recorded_at": { 945 + "name": "recorded_at", 946 + "type": "timestamp", 947 + "primaryKey": false, 948 + "notNull": true, 949 + "default": "now()" 950 + } 951 + }, 952 + "indexes": { 953 + "uri_cid_unique_idx": { 954 + "name": "uri_cid_unique_idx", 955 + "columns": [ 956 + { 957 + "expression": "uri", 958 + "isExpression": false, 959 + "asc": true, 960 + "nulls": "last" 961 + }, 962 + { 963 + "expression": "cid", 964 + "isExpression": false, 965 + "asc": true, 966 + "nulls": "last" 967 + } 968 + ], 969 + "isUnique": true, 970 + "concurrently": false, 971 + "method": "btree", 972 + "with": {} 973 + }, 974 + "published_records_uri_idx": { 975 + "name": "published_records_uri_idx", 976 + "columns": [ 977 + { 978 + "expression": "uri", 979 + "isExpression": false, 980 + "asc": true, 981 + "nulls": "last" 982 + } 983 + ], 984 + "isUnique": false, 985 + "concurrently": false, 986 + "method": "btree", 987 + "with": {} 988 + } 989 + }, 990 + "foreignKeys": {}, 991 + "compositePrimaryKeys": {}, 992 + "uniqueConstraints": {}, 993 + "policies": {}, 994 + "checkConstraints": {}, 995 + "isRLSEnabled": false 996 + }, 997 + "public.feed_activities": { 998 + "name": "feed_activities", 999 + "schema": "", 1000 + "columns": { 1001 + "id": { 1002 + "name": "id", 1003 + "type": "uuid", 1004 + "primaryKey": true, 1005 + "notNull": true 1006 + }, 1007 + "actor_id": { 1008 + "name": "actor_id", 1009 + "type": "text", 1010 + "primaryKey": false, 1011 + "notNull": true 1012 + }, 1013 + "card_id": { 1014 + "name": "card_id", 1015 + "type": "text", 1016 + "primaryKey": false, 1017 + "notNull": false 1018 + }, 1019 + "type": { 1020 + "name": "type", 1021 + "type": "text", 1022 + "primaryKey": false, 1023 + "notNull": true 1024 + }, 1025 + "metadata": { 1026 + "name": "metadata", 1027 + "type": "jsonb", 1028 + "primaryKey": false, 1029 + "notNull": true 1030 + }, 1031 + "url_type": { 1032 + "name": "url_type", 1033 + "type": "text", 1034 + "primaryKey": false, 1035 + "notNull": false 1036 + }, 1037 + "source": { 1038 + "name": "source", 1039 + "type": "text", 1040 + "primaryKey": false, 1041 + "notNull": false 1042 + }, 1043 + "created_at": { 1044 + "name": "created_at", 1045 + "type": "timestamp", 1046 + "primaryKey": false, 1047 + "notNull": true, 1048 + "default": "now()" 1049 + } 1050 + }, 1051 + "indexes": { 1052 + "feed_activities_type_idx": { 1053 + "name": "feed_activities_type_idx", 1054 + "columns": [ 1055 + { 1056 + "expression": "type", 1057 + "isExpression": false, 1058 + "asc": true, 1059 + "nulls": "last" 1060 + } 1061 + ], 1062 + "isUnique": false, 1063 + "concurrently": false, 1064 + "method": "btree", 1065 + "with": {} 1066 + }, 1067 + "feed_activities_url_type_idx": { 1068 + "name": "feed_activities_url_type_idx", 1069 + "columns": [ 1070 + { 1071 + "expression": "url_type", 1072 + "isExpression": false, 1073 + "asc": true, 1074 + "nulls": "last" 1075 + } 1076 + ], 1077 + "isUnique": false, 1078 + "concurrently": false, 1079 + "method": "btree", 1080 + "with": {} 1081 + }, 1082 + "feed_activities_created_at_idx": { 1083 + "name": "feed_activities_created_at_idx", 1084 + "columns": [ 1085 + { 1086 + "expression": "created_at", 1087 + "isExpression": false, 1088 + "asc": false, 1089 + "nulls": "last" 1090 + } 1091 + ], 1092 + "isUnique": false, 1093 + "concurrently": false, 1094 + "method": "btree", 1095 + "with": {} 1096 + }, 1097 + "feed_activities_type_created_at_idx": { 1098 + "name": "feed_activities_type_created_at_idx", 1099 + "columns": [ 1100 + { 1101 + "expression": "type", 1102 + "isExpression": false, 1103 + "asc": true, 1104 + "nulls": "last" 1105 + }, 1106 + { 1107 + "expression": "created_at", 1108 + "isExpression": false, 1109 + "asc": false, 1110 + "nulls": "last" 1111 + } 1112 + ], 1113 + "isUnique": false, 1114 + "concurrently": false, 1115 + "method": "btree", 1116 + "with": {} 1117 + }, 1118 + "feed_activities_url_type_created_at_idx": { 1119 + "name": "feed_activities_url_type_created_at_idx", 1120 + "columns": [ 1121 + { 1122 + "expression": "url_type", 1123 + "isExpression": false, 1124 + "asc": true, 1125 + "nulls": "last" 1126 + }, 1127 + { 1128 + "expression": "created_at", 1129 + "isExpression": false, 1130 + "asc": false, 1131 + "nulls": "last" 1132 + } 1133 + ], 1134 + "isUnique": false, 1135 + "concurrently": false, 1136 + "method": "btree", 1137 + "with": {} 1138 + }, 1139 + "feed_activities_type_url_type_created_at_idx": { 1140 + "name": "feed_activities_type_url_type_created_at_idx", 1141 + "columns": [ 1142 + { 1143 + "expression": "type", 1144 + "isExpression": false, 1145 + "asc": true, 1146 + "nulls": "last" 1147 + }, 1148 + { 1149 + "expression": "url_type", 1150 + "isExpression": false, 1151 + "asc": true, 1152 + "nulls": "last" 1153 + }, 1154 + { 1155 + "expression": "created_at", 1156 + "isExpression": false, 1157 + "asc": false, 1158 + "nulls": "last" 1159 + } 1160 + ], 1161 + "isUnique": false, 1162 + "concurrently": false, 1163 + "method": "btree", 1164 + "with": {} 1165 + }, 1166 + "feed_activities_dedup_idx": { 1167 + "name": "feed_activities_dedup_idx", 1168 + "columns": [ 1169 + { 1170 + "expression": "actor_id", 1171 + "isExpression": false, 1172 + "asc": true, 1173 + "nulls": "last" 1174 + }, 1175 + { 1176 + "expression": "card_id", 1177 + "isExpression": false, 1178 + "asc": true, 1179 + "nulls": "last" 1180 + }, 1181 + { 1182 + "expression": "created_at", 1183 + "isExpression": false, 1184 + "asc": false, 1185 + "nulls": "last" 1186 + } 1187 + ], 1188 + "isUnique": false, 1189 + "concurrently": false, 1190 + "method": "btree", 1191 + "with": {} 1192 + }, 1193 + "feed_activities_card_id_idx": { 1194 + "name": "feed_activities_card_id_idx", 1195 + "columns": [ 1196 + { 1197 + "expression": "card_id", 1198 + "isExpression": false, 1199 + "asc": true, 1200 + "nulls": "last" 1201 + } 1202 + ], 1203 + "isUnique": false, 1204 + "concurrently": false, 1205 + "method": "btree", 1206 + "with": {} 1207 + }, 1208 + "feed_activities_source_idx": { 1209 + "name": "feed_activities_source_idx", 1210 + "columns": [ 1211 + { 1212 + "expression": "source", 1213 + "isExpression": false, 1214 + "asc": true, 1215 + "nulls": "last" 1216 + } 1217 + ], 1218 + "isUnique": false, 1219 + "concurrently": false, 1220 + "method": "btree", 1221 + "with": {} 1222 + } 1223 + }, 1224 + "foreignKeys": {}, 1225 + "compositePrimaryKeys": {}, 1226 + "uniqueConstraints": {}, 1227 + "policies": {}, 1228 + "checkConstraints": {}, 1229 + "isRLSEnabled": false 1230 + }, 1231 + "public.following_feed_items": { 1232 + "name": "following_feed_items", 1233 + "schema": "", 1234 + "columns": { 1235 + "user_id": { 1236 + "name": "user_id", 1237 + "type": "text", 1238 + "primaryKey": false, 1239 + "notNull": true 1240 + }, 1241 + "activity_id": { 1242 + "name": "activity_id", 1243 + "type": "uuid", 1244 + "primaryKey": false, 1245 + "notNull": true 1246 + }, 1247 + "created_at": { 1248 + "name": "created_at", 1249 + "type": "timestamp", 1250 + "primaryKey": false, 1251 + "notNull": true 1252 + } 1253 + }, 1254 + "indexes": { 1255 + "idx_following_feed_user_time": { 1256 + "name": "idx_following_feed_user_time", 1257 + "columns": [ 1258 + { 1259 + "expression": "user_id", 1260 + "isExpression": false, 1261 + "asc": true, 1262 + "nulls": "last" 1263 + }, 1264 + { 1265 + "expression": "created_at", 1266 + "isExpression": false, 1267 + "asc": false, 1268 + "nulls": "last" 1269 + } 1270 + ], 1271 + "isUnique": false, 1272 + "concurrently": false, 1273 + "method": "btree", 1274 + "with": {} 1275 + } 1276 + }, 1277 + "foreignKeys": { 1278 + "following_feed_items_activity_id_feed_activities_id_fk": { 1279 + "name": "following_feed_items_activity_id_feed_activities_id_fk", 1280 + "tableFrom": "following_feed_items", 1281 + "tableTo": "feed_activities", 1282 + "columnsFrom": ["activity_id"], 1283 + "columnsTo": ["id"], 1284 + "onDelete": "cascade", 1285 + "onUpdate": "no action" 1286 + } 1287 + }, 1288 + "compositePrimaryKeys": { 1289 + "following_feed_items_user_id_activity_id_pk": { 1290 + "name": "following_feed_items_user_id_activity_id_pk", 1291 + "columns": ["user_id", "activity_id"] 1292 + } 1293 + }, 1294 + "uniqueConstraints": {}, 1295 + "policies": {}, 1296 + "checkConstraints": {}, 1297 + "isRLSEnabled": false 1298 + }, 1299 + "public.notifications": { 1300 + "name": "notifications", 1301 + "schema": "", 1302 + "columns": { 1303 + "id": { 1304 + "name": "id", 1305 + "type": "uuid", 1306 + "primaryKey": true, 1307 + "notNull": true 1308 + }, 1309 + "recipient_user_id": { 1310 + "name": "recipient_user_id", 1311 + "type": "text", 1312 + "primaryKey": false, 1313 + "notNull": true 1314 + }, 1315 + "actor_user_id": { 1316 + "name": "actor_user_id", 1317 + "type": "text", 1318 + "primaryKey": false, 1319 + "notNull": true 1320 + }, 1321 + "type": { 1322 + "name": "type", 1323 + "type": "text", 1324 + "primaryKey": false, 1325 + "notNull": true 1326 + }, 1327 + "metadata": { 1328 + "name": "metadata", 1329 + "type": "jsonb", 1330 + "primaryKey": false, 1331 + "notNull": true 1332 + }, 1333 + "read": { 1334 + "name": "read", 1335 + "type": "boolean", 1336 + "primaryKey": false, 1337 + "notNull": true, 1338 + "default": false 1339 + }, 1340 + "created_at": { 1341 + "name": "created_at", 1342 + "type": "timestamp", 1343 + "primaryKey": false, 1344 + "notNull": true, 1345 + "default": "now()" 1346 + }, 1347 + "updated_at": { 1348 + "name": "updated_at", 1349 + "type": "timestamp", 1350 + "primaryKey": false, 1351 + "notNull": true, 1352 + "default": "now()" 1353 + } 1354 + }, 1355 + "indexes": { 1356 + "notifications_recipient_idx": { 1357 + "name": "notifications_recipient_idx", 1358 + "columns": [ 1359 + { 1360 + "expression": "recipient_user_id", 1361 + "isExpression": false, 1362 + "asc": true, 1363 + "nulls": "last" 1364 + } 1365 + ], 1366 + "isUnique": false, 1367 + "concurrently": false, 1368 + "method": "btree", 1369 + "with": {} 1370 + }, 1371 + "notifications_recipient_created_at_idx": { 1372 + "name": "notifications_recipient_created_at_idx", 1373 + "columns": [ 1374 + { 1375 + "expression": "recipient_user_id", 1376 + "isExpression": false, 1377 + "asc": true, 1378 + "nulls": "last" 1379 + }, 1380 + { 1381 + "expression": "created_at", 1382 + "isExpression": false, 1383 + "asc": false, 1384 + "nulls": "last" 1385 + } 1386 + ], 1387 + "isUnique": false, 1388 + "concurrently": false, 1389 + "method": "btree", 1390 + "with": {} 1391 + }, 1392 + "notifications_recipient_read_idx": { 1393 + "name": "notifications_recipient_read_idx", 1394 + "columns": [ 1395 + { 1396 + "expression": "recipient_user_id", 1397 + "isExpression": false, 1398 + "asc": true, 1399 + "nulls": "last" 1400 + }, 1401 + { 1402 + "expression": "read", 1403 + "isExpression": false, 1404 + "asc": true, 1405 + "nulls": "last" 1406 + } 1407 + ], 1408 + "isUnique": false, 1409 + "concurrently": false, 1410 + "method": "btree", 1411 + "with": {} 1412 + } 1413 + }, 1414 + "foreignKeys": {}, 1415 + "compositePrimaryKeys": {}, 1416 + "uniqueConstraints": {}, 1417 + "policies": {}, 1418 + "checkConstraints": {}, 1419 + "isRLSEnabled": false 1420 + }, 1421 + "public.sync_statuses": { 1422 + "name": "sync_statuses", 1423 + "schema": "", 1424 + "columns": { 1425 + "id": { 1426 + "name": "id", 1427 + "type": "uuid", 1428 + "primaryKey": true, 1429 + "notNull": true, 1430 + "default": "gen_random_uuid()" 1431 + }, 1432 + "curator_id": { 1433 + "name": "curator_id", 1434 + "type": "text", 1435 + "primaryKey": false, 1436 + "notNull": true 1437 + }, 1438 + "sync_state": { 1439 + "name": "sync_state", 1440 + "type": "text", 1441 + "primaryKey": false, 1442 + "notNull": true 1443 + }, 1444 + "last_synced_at": { 1445 + "name": "last_synced_at", 1446 + "type": "timestamp", 1447 + "primaryKey": false, 1448 + "notNull": false 1449 + }, 1450 + "last_sync_attempt_at": { 1451 + "name": "last_sync_attempt_at", 1452 + "type": "timestamp", 1453 + "primaryKey": false, 1454 + "notNull": false 1455 + }, 1456 + "sync_error_message": { 1457 + "name": "sync_error_message", 1458 + "type": "text", 1459 + "primaryKey": false, 1460 + "notNull": false 1461 + }, 1462 + "records_processed": { 1463 + "name": "records_processed", 1464 + "type": "integer", 1465 + "primaryKey": false, 1466 + "notNull": false 1467 + }, 1468 + "created_at": { 1469 + "name": "created_at", 1470 + "type": "timestamp", 1471 + "primaryKey": false, 1472 + "notNull": true, 1473 + "default": "now()" 1474 + }, 1475 + "updated_at": { 1476 + "name": "updated_at", 1477 + "type": "timestamp", 1478 + "primaryKey": false, 1479 + "notNull": true, 1480 + "default": "now()" 1481 + } 1482 + }, 1483 + "indexes": {}, 1484 + "foreignKeys": {}, 1485 + "compositePrimaryKeys": {}, 1486 + "uniqueConstraints": { 1487 + "sync_statuses_curator_id_unique": { 1488 + "name": "sync_statuses_curator_id_unique", 1489 + "nullsNotDistinct": false, 1490 + "columns": ["curator_id"] 1491 + } 1492 + }, 1493 + "policies": {}, 1494 + "checkConstraints": {}, 1495 + "isRLSEnabled": false 1496 + }, 1497 + "public.auth_session": { 1498 + "name": "auth_session", 1499 + "schema": "", 1500 + "columns": { 1501 + "key": { 1502 + "name": "key", 1503 + "type": "text", 1504 + "primaryKey": true, 1505 + "notNull": true 1506 + }, 1507 + "session": { 1508 + "name": "session", 1509 + "type": "text", 1510 + "primaryKey": false, 1511 + "notNull": true 1512 + } 1513 + }, 1514 + "indexes": {}, 1515 + "foreignKeys": {}, 1516 + "compositePrimaryKeys": {}, 1517 + "uniqueConstraints": {}, 1518 + "policies": {}, 1519 + "checkConstraints": {}, 1520 + "isRLSEnabled": false 1521 + }, 1522 + "public.auth_state": { 1523 + "name": "auth_state", 1524 + "schema": "", 1525 + "columns": { 1526 + "key": { 1527 + "name": "key", 1528 + "type": "text", 1529 + "primaryKey": true, 1530 + "notNull": true 1531 + }, 1532 + "state": { 1533 + "name": "state", 1534 + "type": "text", 1535 + "primaryKey": false, 1536 + "notNull": true 1537 + }, 1538 + "created_at": { 1539 + "name": "created_at", 1540 + "type": "timestamp", 1541 + "primaryKey": false, 1542 + "notNull": false, 1543 + "default": "now()" 1544 + } 1545 + }, 1546 + "indexes": {}, 1547 + "foreignKeys": {}, 1548 + "compositePrimaryKeys": {}, 1549 + "uniqueConstraints": {}, 1550 + "policies": {}, 1551 + "checkConstraints": {}, 1552 + "isRLSEnabled": false 1553 + }, 1554 + "public.auth_refresh_tokens": { 1555 + "name": "auth_refresh_tokens", 1556 + "schema": "", 1557 + "columns": { 1558 + "token_id": { 1559 + "name": "token_id", 1560 + "type": "text", 1561 + "primaryKey": true, 1562 + "notNull": true 1563 + }, 1564 + "user_did": { 1565 + "name": "user_did", 1566 + "type": "text", 1567 + "primaryKey": false, 1568 + "notNull": true 1569 + }, 1570 + "refresh_token": { 1571 + "name": "refresh_token", 1572 + "type": "text", 1573 + "primaryKey": false, 1574 + "notNull": true 1575 + }, 1576 + "issued_at": { 1577 + "name": "issued_at", 1578 + "type": "timestamp", 1579 + "primaryKey": false, 1580 + "notNull": true 1581 + }, 1582 + "expires_at": { 1583 + "name": "expires_at", 1584 + "type": "timestamp", 1585 + "primaryKey": false, 1586 + "notNull": true 1587 + }, 1588 + "revoked": { 1589 + "name": "revoked", 1590 + "type": "boolean", 1591 + "primaryKey": false, 1592 + "notNull": false, 1593 + "default": false 1594 + } 1595 + }, 1596 + "indexes": {}, 1597 + "foreignKeys": { 1598 + "auth_refresh_tokens_user_did_users_id_fk": { 1599 + "name": "auth_refresh_tokens_user_did_users_id_fk", 1600 + "tableFrom": "auth_refresh_tokens", 1601 + "tableTo": "users", 1602 + "columnsFrom": ["user_did"], 1603 + "columnsTo": ["id"], 1604 + "onDelete": "no action", 1605 + "onUpdate": "no action" 1606 + } 1607 + }, 1608 + "compositePrimaryKeys": {}, 1609 + "uniqueConstraints": {}, 1610 + "policies": {}, 1611 + "checkConstraints": {}, 1612 + "isRLSEnabled": false 1613 + }, 1614 + "public.follows": { 1615 + "name": "follows", 1616 + "schema": "", 1617 + "columns": { 1618 + "follower_id": { 1619 + "name": "follower_id", 1620 + "type": "text", 1621 + "primaryKey": false, 1622 + "notNull": true 1623 + }, 1624 + "target_id": { 1625 + "name": "target_id", 1626 + "type": "text", 1627 + "primaryKey": false, 1628 + "notNull": true 1629 + }, 1630 + "target_type": { 1631 + "name": "target_type", 1632 + "type": "text", 1633 + "primaryKey": false, 1634 + "notNull": true 1635 + }, 1636 + "published_record_id": { 1637 + "name": "published_record_id", 1638 + "type": "uuid", 1639 + "primaryKey": false, 1640 + "notNull": false 1641 + }, 1642 + "created_at": { 1643 + "name": "created_at", 1644 + "type": "timestamp", 1645 + "primaryKey": false, 1646 + "notNull": true, 1647 + "default": "now()" 1648 + } 1649 + }, 1650 + "indexes": { 1651 + "idx_follows_follower": { 1652 + "name": "idx_follows_follower", 1653 + "columns": [ 1654 + { 1655 + "expression": "follower_id", 1656 + "isExpression": false, 1657 + "asc": true, 1658 + "nulls": "last" 1659 + } 1660 + ], 1661 + "isUnique": false, 1662 + "concurrently": false, 1663 + "method": "btree", 1664 + "with": {} 1665 + }, 1666 + "idx_follows_target": { 1667 + "name": "idx_follows_target", 1668 + "columns": [ 1669 + { 1670 + "expression": "target_id", 1671 + "isExpression": false, 1672 + "asc": true, 1673 + "nulls": "last" 1674 + }, 1675 + { 1676 + "expression": "target_type", 1677 + "isExpression": false, 1678 + "asc": true, 1679 + "nulls": "last" 1680 + } 1681 + ], 1682 + "isUnique": false, 1683 + "concurrently": false, 1684 + "method": "btree", 1685 + "with": {} 1686 + } 1687 + }, 1688 + "foreignKeys": { 1689 + "follows_published_record_id_published_records_id_fk": { 1690 + "name": "follows_published_record_id_published_records_id_fk", 1691 + "tableFrom": "follows", 1692 + "tableTo": "published_records", 1693 + "columnsFrom": ["published_record_id"], 1694 + "columnsTo": ["id"], 1695 + "onDelete": "no action", 1696 + "onUpdate": "no action" 1697 + } 1698 + }, 1699 + "compositePrimaryKeys": { 1700 + "follows_follower_id_target_id_target_type_pk": { 1701 + "name": "follows_follower_id_target_id_target_type_pk", 1702 + "columns": ["follower_id", "target_id", "target_type"] 1703 + } 1704 + }, 1705 + "uniqueConstraints": {}, 1706 + "policies": {}, 1707 + "checkConstraints": {}, 1708 + "isRLSEnabled": false 1709 + }, 1710 + "public.users": { 1711 + "name": "users", 1712 + "schema": "", 1713 + "columns": { 1714 + "id": { 1715 + "name": "id", 1716 + "type": "text", 1717 + "primaryKey": true, 1718 + "notNull": true 1719 + }, 1720 + "handle": { 1721 + "name": "handle", 1722 + "type": "text", 1723 + "primaryKey": false, 1724 + "notNull": false 1725 + }, 1726 + "linked_at": { 1727 + "name": "linked_at", 1728 + "type": "timestamp", 1729 + "primaryKey": false, 1730 + "notNull": true 1731 + }, 1732 + "last_login_at": { 1733 + "name": "last_login_at", 1734 + "type": "timestamp", 1735 + "primaryKey": false, 1736 + "notNull": true 1737 + } 1738 + }, 1739 + "indexes": {}, 1740 + "foreignKeys": {}, 1741 + "compositePrimaryKeys": {}, 1742 + "uniqueConstraints": {}, 1743 + "policies": {}, 1744 + "checkConstraints": {}, 1745 + "isRLSEnabled": false 1746 + } 1747 + }, 1748 + "enums": {}, 1749 + "schemas": {}, 1750 + "sequences": {}, 1751 + "roles": {}, 1752 + "policies": {}, 1753 + "views": {}, 1754 + "_meta": { 1755 + "columns": {}, 1756 + "schemas": {}, 1757 + "tables": {} 1758 + } 1759 + }
+7
src/shared/infrastructure/database/migrations/meta/_journal.json
··· 127 127 "when": 1770860659903, 128 128 "tag": "0017_heavy_inertia", 129 129 "breakpoints": true 130 + }, 131 + { 132 + "idx": 18, 133 + "version": "7", 134 + "when": 1772242800899, 135 + "tag": "0018_classy_changeling", 136 + "breakpoints": true 130 137 } 131 138 ] 132 139 }