This repository has no description
0

Configure Feed

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

semble / src / shared / infrastructure / database / migrations / meta / 0011_snapshot.json
33 kB 1244 lines
1{ 2 "id": "c81b5c59-8f8c-40d6-9538-48ba1e4701e6", 3 "prevId": "b6b80ebe-71aa-4189-bedd-1ee7cb6d9e46", 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 }, 400 "foreignKeys": { 401 "collection_cards_collection_id_collections_id_fk": { 402 "name": "collection_cards_collection_id_collections_id_fk", 403 "tableFrom": "collection_cards", 404 "tableTo": "collections", 405 "columnsFrom": ["collection_id"], 406 "columnsTo": ["id"], 407 "onDelete": "cascade", 408 "onUpdate": "no action" 409 }, 410 "collection_cards_card_id_cards_id_fk": { 411 "name": "collection_cards_card_id_cards_id_fk", 412 "tableFrom": "collection_cards", 413 "tableTo": "cards", 414 "columnsFrom": ["card_id"], 415 "columnsTo": ["id"], 416 "onDelete": "cascade", 417 "onUpdate": "no action" 418 }, 419 "collection_cards_via_card_id_cards_id_fk": { 420 "name": "collection_cards_via_card_id_cards_id_fk", 421 "tableFrom": "collection_cards", 422 "tableTo": "cards", 423 "columnsFrom": ["via_card_id"], 424 "columnsTo": ["id"], 425 "onDelete": "no action", 426 "onUpdate": "no action" 427 }, 428 "collection_cards_published_record_id_published_records_id_fk": { 429 "name": "collection_cards_published_record_id_published_records_id_fk", 430 "tableFrom": "collection_cards", 431 "tableTo": "published_records", 432 "columnsFrom": ["published_record_id"], 433 "columnsTo": ["id"], 434 "onDelete": "no action", 435 "onUpdate": "no action" 436 } 437 }, 438 "compositePrimaryKeys": {}, 439 "uniqueConstraints": {}, 440 "policies": {}, 441 "checkConstraints": {}, 442 "isRLSEnabled": false 443 }, 444 "public.collection_collaborators": { 445 "name": "collection_collaborators", 446 "schema": "", 447 "columns": { 448 "id": { 449 "name": "id", 450 "type": "uuid", 451 "primaryKey": true, 452 "notNull": true 453 }, 454 "collection_id": { 455 "name": "collection_id", 456 "type": "uuid", 457 "primaryKey": false, 458 "notNull": true 459 }, 460 "collaborator_id": { 461 "name": "collaborator_id", 462 "type": "text", 463 "primaryKey": false, 464 "notNull": true 465 } 466 }, 467 "indexes": {}, 468 "foreignKeys": { 469 "collection_collaborators_collection_id_collections_id_fk": { 470 "name": "collection_collaborators_collection_id_collections_id_fk", 471 "tableFrom": "collection_collaborators", 472 "tableTo": "collections", 473 "columnsFrom": ["collection_id"], 474 "columnsTo": ["id"], 475 "onDelete": "cascade", 476 "onUpdate": "no action" 477 } 478 }, 479 "compositePrimaryKeys": {}, 480 "uniqueConstraints": {}, 481 "policies": {}, 482 "checkConstraints": {}, 483 "isRLSEnabled": false 484 }, 485 "public.collections": { 486 "name": "collections", 487 "schema": "", 488 "columns": { 489 "id": { 490 "name": "id", 491 "type": "uuid", 492 "primaryKey": true, 493 "notNull": true 494 }, 495 "author_id": { 496 "name": "author_id", 497 "type": "text", 498 "primaryKey": false, 499 "notNull": true 500 }, 501 "name": { 502 "name": "name", 503 "type": "text", 504 "primaryKey": false, 505 "notNull": true 506 }, 507 "description": { 508 "name": "description", 509 "type": "text", 510 "primaryKey": false, 511 "notNull": false 512 }, 513 "access_type": { 514 "name": "access_type", 515 "type": "text", 516 "primaryKey": false, 517 "notNull": true 518 }, 519 "card_count": { 520 "name": "card_count", 521 "type": "integer", 522 "primaryKey": false, 523 "notNull": true, 524 "default": 0 525 }, 526 "created_at": { 527 "name": "created_at", 528 "type": "timestamp", 529 "primaryKey": false, 530 "notNull": true, 531 "default": "now()" 532 }, 533 "updated_at": { 534 "name": "updated_at", 535 "type": "timestamp", 536 "primaryKey": false, 537 "notNull": true, 538 "default": "now()" 539 }, 540 "published_record_id": { 541 "name": "published_record_id", 542 "type": "uuid", 543 "primaryKey": false, 544 "notNull": false 545 } 546 }, 547 "indexes": { 548 "collections_author_id_idx": { 549 "name": "collections_author_id_idx", 550 "columns": [ 551 { 552 "expression": "author_id", 553 "isExpression": false, 554 "asc": true, 555 "nulls": "last" 556 } 557 ], 558 "isUnique": false, 559 "concurrently": false, 560 "method": "btree", 561 "with": {} 562 }, 563 "collections_author_updated_at_idx": { 564 "name": "collections_author_updated_at_idx", 565 "columns": [ 566 { 567 "expression": "author_id", 568 "isExpression": false, 569 "asc": true, 570 "nulls": "last" 571 }, 572 { 573 "expression": "updated_at", 574 "isExpression": false, 575 "asc": true, 576 "nulls": "last" 577 } 578 ], 579 "isUnique": false, 580 "concurrently": false, 581 "method": "btree", 582 "with": {} 583 } 584 }, 585 "foreignKeys": { 586 "collections_published_record_id_published_records_id_fk": { 587 "name": "collections_published_record_id_published_records_id_fk", 588 "tableFrom": "collections", 589 "tableTo": "published_records", 590 "columnsFrom": ["published_record_id"], 591 "columnsTo": ["id"], 592 "onDelete": "no action", 593 "onUpdate": "no action" 594 } 595 }, 596 "compositePrimaryKeys": {}, 597 "uniqueConstraints": {}, 598 "policies": {}, 599 "checkConstraints": {}, 600 "isRLSEnabled": false 601 }, 602 "public.library_memberships": { 603 "name": "library_memberships", 604 "schema": "", 605 "columns": { 606 "card_id": { 607 "name": "card_id", 608 "type": "uuid", 609 "primaryKey": false, 610 "notNull": true 611 }, 612 "user_id": { 613 "name": "user_id", 614 "type": "text", 615 "primaryKey": false, 616 "notNull": true 617 }, 618 "added_at": { 619 "name": "added_at", 620 "type": "timestamp", 621 "primaryKey": false, 622 "notNull": true, 623 "default": "now()" 624 }, 625 "published_record_id": { 626 "name": "published_record_id", 627 "type": "uuid", 628 "primaryKey": false, 629 "notNull": false 630 } 631 }, 632 "indexes": { 633 "idx_user_cards": { 634 "name": "idx_user_cards", 635 "columns": [ 636 { 637 "expression": "user_id", 638 "isExpression": false, 639 "asc": true, 640 "nulls": "last" 641 } 642 ], 643 "isUnique": false, 644 "concurrently": false, 645 "method": "btree", 646 "with": {} 647 }, 648 "idx_card_users": { 649 "name": "idx_card_users", 650 "columns": [ 651 { 652 "expression": "card_id", 653 "isExpression": false, 654 "asc": true, 655 "nulls": "last" 656 } 657 ], 658 "isUnique": false, 659 "concurrently": false, 660 "method": "btree", 661 "with": {} 662 }, 663 "idx_library_memberships_user_type_covering": { 664 "name": "idx_library_memberships_user_type_covering", 665 "columns": [ 666 { 667 "expression": "user_id", 668 "isExpression": false, 669 "asc": true, 670 "nulls": "last" 671 }, 672 { 673 "expression": "added_at", 674 "isExpression": false, 675 "asc": false, 676 "nulls": "last" 677 } 678 ], 679 "isUnique": false, 680 "concurrently": false, 681 "method": "btree", 682 "with": {} 683 } 684 }, 685 "foreignKeys": { 686 "library_memberships_card_id_cards_id_fk": { 687 "name": "library_memberships_card_id_cards_id_fk", 688 "tableFrom": "library_memberships", 689 "tableTo": "cards", 690 "columnsFrom": ["card_id"], 691 "columnsTo": ["id"], 692 "onDelete": "cascade", 693 "onUpdate": "no action" 694 }, 695 "library_memberships_published_record_id_published_records_id_fk": { 696 "name": "library_memberships_published_record_id_published_records_id_fk", 697 "tableFrom": "library_memberships", 698 "tableTo": "published_records", 699 "columnsFrom": ["published_record_id"], 700 "columnsTo": ["id"], 701 "onDelete": "no action", 702 "onUpdate": "no action" 703 } 704 }, 705 "compositePrimaryKeys": { 706 "library_memberships_card_id_user_id_pk": { 707 "name": "library_memberships_card_id_user_id_pk", 708 "columns": ["card_id", "user_id"] 709 } 710 }, 711 "uniqueConstraints": {}, 712 "policies": {}, 713 "checkConstraints": {}, 714 "isRLSEnabled": false 715 }, 716 "public.published_records": { 717 "name": "published_records", 718 "schema": "", 719 "columns": { 720 "id": { 721 "name": "id", 722 "type": "uuid", 723 "primaryKey": true, 724 "notNull": true 725 }, 726 "uri": { 727 "name": "uri", 728 "type": "text", 729 "primaryKey": false, 730 "notNull": true 731 }, 732 "cid": { 733 "name": "cid", 734 "type": "text", 735 "primaryKey": false, 736 "notNull": true 737 }, 738 "recorded_at": { 739 "name": "recorded_at", 740 "type": "timestamp", 741 "primaryKey": false, 742 "notNull": true, 743 "default": "now()" 744 } 745 }, 746 "indexes": { 747 "uri_cid_unique_idx": { 748 "name": "uri_cid_unique_idx", 749 "columns": [ 750 { 751 "expression": "uri", 752 "isExpression": false, 753 "asc": true, 754 "nulls": "last" 755 }, 756 { 757 "expression": "cid", 758 "isExpression": false, 759 "asc": true, 760 "nulls": "last" 761 } 762 ], 763 "isUnique": true, 764 "concurrently": false, 765 "method": "btree", 766 "with": {} 767 }, 768 "published_records_uri_idx": { 769 "name": "published_records_uri_idx", 770 "columns": [ 771 { 772 "expression": "uri", 773 "isExpression": false, 774 "asc": true, 775 "nulls": "last" 776 } 777 ], 778 "isUnique": false, 779 "concurrently": false, 780 "method": "btree", 781 "with": {} 782 } 783 }, 784 "foreignKeys": {}, 785 "compositePrimaryKeys": {}, 786 "uniqueConstraints": {}, 787 "policies": {}, 788 "checkConstraints": {}, 789 "isRLSEnabled": false 790 }, 791 "public.feed_activities": { 792 "name": "feed_activities", 793 "schema": "", 794 "columns": { 795 "id": { 796 "name": "id", 797 "type": "uuid", 798 "primaryKey": true, 799 "notNull": true 800 }, 801 "actor_id": { 802 "name": "actor_id", 803 "type": "text", 804 "primaryKey": false, 805 "notNull": true 806 }, 807 "type": { 808 "name": "type", 809 "type": "text", 810 "primaryKey": false, 811 "notNull": true 812 }, 813 "metadata": { 814 "name": "metadata", 815 "type": "jsonb", 816 "primaryKey": false, 817 "notNull": true 818 }, 819 "url_type": { 820 "name": "url_type", 821 "type": "text", 822 "primaryKey": false, 823 "notNull": false 824 }, 825 "created_at": { 826 "name": "created_at", 827 "type": "timestamp", 828 "primaryKey": false, 829 "notNull": true, 830 "default": "now()" 831 } 832 }, 833 "indexes": { 834 "feed_activities_type_idx": { 835 "name": "feed_activities_type_idx", 836 "columns": [ 837 { 838 "expression": "type", 839 "isExpression": false, 840 "asc": true, 841 "nulls": "last" 842 } 843 ], 844 "isUnique": false, 845 "concurrently": false, 846 "method": "btree", 847 "with": {} 848 }, 849 "feed_activities_url_type_idx": { 850 "name": "feed_activities_url_type_idx", 851 "columns": [ 852 { 853 "expression": "url_type", 854 "isExpression": false, 855 "asc": true, 856 "nulls": "last" 857 } 858 ], 859 "isUnique": false, 860 "concurrently": false, 861 "method": "btree", 862 "with": {} 863 }, 864 "feed_activities_created_at_idx": { 865 "name": "feed_activities_created_at_idx", 866 "columns": [ 867 { 868 "expression": "created_at", 869 "isExpression": false, 870 "asc": false, 871 "nulls": "last" 872 } 873 ], 874 "isUnique": false, 875 "concurrently": false, 876 "method": "btree", 877 "with": {} 878 }, 879 "feed_activities_type_created_at_idx": { 880 "name": "feed_activities_type_created_at_idx", 881 "columns": [ 882 { 883 "expression": "type", 884 "isExpression": false, 885 "asc": true, 886 "nulls": "last" 887 }, 888 { 889 "expression": "created_at", 890 "isExpression": false, 891 "asc": false, 892 "nulls": "last" 893 } 894 ], 895 "isUnique": false, 896 "concurrently": false, 897 "method": "btree", 898 "with": {} 899 }, 900 "feed_activities_url_type_created_at_idx": { 901 "name": "feed_activities_url_type_created_at_idx", 902 "columns": [ 903 { 904 "expression": "url_type", 905 "isExpression": false, 906 "asc": true, 907 "nulls": "last" 908 }, 909 { 910 "expression": "created_at", 911 "isExpression": false, 912 "asc": false, 913 "nulls": "last" 914 } 915 ], 916 "isUnique": false, 917 "concurrently": false, 918 "method": "btree", 919 "with": {} 920 }, 921 "feed_activities_type_url_type_created_at_idx": { 922 "name": "feed_activities_type_url_type_created_at_idx", 923 "columns": [ 924 { 925 "expression": "type", 926 "isExpression": false, 927 "asc": true, 928 "nulls": "last" 929 }, 930 { 931 "expression": "url_type", 932 "isExpression": false, 933 "asc": true, 934 "nulls": "last" 935 }, 936 { 937 "expression": "created_at", 938 "isExpression": false, 939 "asc": false, 940 "nulls": "last" 941 } 942 ], 943 "isUnique": false, 944 "concurrently": false, 945 "method": "btree", 946 "with": {} 947 } 948 }, 949 "foreignKeys": {}, 950 "compositePrimaryKeys": {}, 951 "uniqueConstraints": {}, 952 "policies": {}, 953 "checkConstraints": {}, 954 "isRLSEnabled": false 955 }, 956 "public.notifications": { 957 "name": "notifications", 958 "schema": "", 959 "columns": { 960 "id": { 961 "name": "id", 962 "type": "uuid", 963 "primaryKey": true, 964 "notNull": true 965 }, 966 "recipient_user_id": { 967 "name": "recipient_user_id", 968 "type": "text", 969 "primaryKey": false, 970 "notNull": true 971 }, 972 "actor_user_id": { 973 "name": "actor_user_id", 974 "type": "text", 975 "primaryKey": false, 976 "notNull": true 977 }, 978 "type": { 979 "name": "type", 980 "type": "text", 981 "primaryKey": false, 982 "notNull": true 983 }, 984 "metadata": { 985 "name": "metadata", 986 "type": "jsonb", 987 "primaryKey": false, 988 "notNull": true 989 }, 990 "read": { 991 "name": "read", 992 "type": "boolean", 993 "primaryKey": false, 994 "notNull": true, 995 "default": false 996 }, 997 "created_at": { 998 "name": "created_at", 999 "type": "timestamp", 1000 "primaryKey": false, 1001 "notNull": true, 1002 "default": "now()" 1003 }, 1004 "updated_at": { 1005 "name": "updated_at", 1006 "type": "timestamp", 1007 "primaryKey": false, 1008 "notNull": true, 1009 "default": "now()" 1010 } 1011 }, 1012 "indexes": { 1013 "notifications_recipient_idx": { 1014 "name": "notifications_recipient_idx", 1015 "columns": [ 1016 { 1017 "expression": "recipient_user_id", 1018 "isExpression": false, 1019 "asc": true, 1020 "nulls": "last" 1021 } 1022 ], 1023 "isUnique": false, 1024 "concurrently": false, 1025 "method": "btree", 1026 "with": {} 1027 }, 1028 "notifications_recipient_created_at_idx": { 1029 "name": "notifications_recipient_created_at_idx", 1030 "columns": [ 1031 { 1032 "expression": "recipient_user_id", 1033 "isExpression": false, 1034 "asc": true, 1035 "nulls": "last" 1036 }, 1037 { 1038 "expression": "created_at", 1039 "isExpression": false, 1040 "asc": false, 1041 "nulls": "last" 1042 } 1043 ], 1044 "isUnique": false, 1045 "concurrently": false, 1046 "method": "btree", 1047 "with": {} 1048 }, 1049 "notifications_recipient_read_idx": { 1050 "name": "notifications_recipient_read_idx", 1051 "columns": [ 1052 { 1053 "expression": "recipient_user_id", 1054 "isExpression": false, 1055 "asc": true, 1056 "nulls": "last" 1057 }, 1058 { 1059 "expression": "read", 1060 "isExpression": false, 1061 "asc": true, 1062 "nulls": "last" 1063 } 1064 ], 1065 "isUnique": false, 1066 "concurrently": false, 1067 "method": "btree", 1068 "with": {} 1069 } 1070 }, 1071 "foreignKeys": {}, 1072 "compositePrimaryKeys": {}, 1073 "uniqueConstraints": {}, 1074 "policies": {}, 1075 "checkConstraints": {}, 1076 "isRLSEnabled": false 1077 }, 1078 "public.auth_session": { 1079 "name": "auth_session", 1080 "schema": "", 1081 "columns": { 1082 "key": { 1083 "name": "key", 1084 "type": "text", 1085 "primaryKey": true, 1086 "notNull": true 1087 }, 1088 "session": { 1089 "name": "session", 1090 "type": "text", 1091 "primaryKey": false, 1092 "notNull": true 1093 } 1094 }, 1095 "indexes": {}, 1096 "foreignKeys": {}, 1097 "compositePrimaryKeys": {}, 1098 "uniqueConstraints": {}, 1099 "policies": {}, 1100 "checkConstraints": {}, 1101 "isRLSEnabled": false 1102 }, 1103 "public.auth_state": { 1104 "name": "auth_state", 1105 "schema": "", 1106 "columns": { 1107 "key": { 1108 "name": "key", 1109 "type": "text", 1110 "primaryKey": true, 1111 "notNull": true 1112 }, 1113 "state": { 1114 "name": "state", 1115 "type": "text", 1116 "primaryKey": false, 1117 "notNull": true 1118 }, 1119 "created_at": { 1120 "name": "created_at", 1121 "type": "timestamp", 1122 "primaryKey": false, 1123 "notNull": false, 1124 "default": "now()" 1125 } 1126 }, 1127 "indexes": {}, 1128 "foreignKeys": {}, 1129 "compositePrimaryKeys": {}, 1130 "uniqueConstraints": {}, 1131 "policies": {}, 1132 "checkConstraints": {}, 1133 "isRLSEnabled": false 1134 }, 1135 "public.auth_refresh_tokens": { 1136 "name": "auth_refresh_tokens", 1137 "schema": "", 1138 "columns": { 1139 "token_id": { 1140 "name": "token_id", 1141 "type": "text", 1142 "primaryKey": true, 1143 "notNull": true 1144 }, 1145 "user_did": { 1146 "name": "user_did", 1147 "type": "text", 1148 "primaryKey": false, 1149 "notNull": true 1150 }, 1151 "refresh_token": { 1152 "name": "refresh_token", 1153 "type": "text", 1154 "primaryKey": false, 1155 "notNull": true 1156 }, 1157 "issued_at": { 1158 "name": "issued_at", 1159 "type": "timestamp", 1160 "primaryKey": false, 1161 "notNull": true 1162 }, 1163 "expires_at": { 1164 "name": "expires_at", 1165 "type": "timestamp", 1166 "primaryKey": false, 1167 "notNull": true 1168 }, 1169 "revoked": { 1170 "name": "revoked", 1171 "type": "boolean", 1172 "primaryKey": false, 1173 "notNull": false, 1174 "default": false 1175 } 1176 }, 1177 "indexes": {}, 1178 "foreignKeys": { 1179 "auth_refresh_tokens_user_did_users_id_fk": { 1180 "name": "auth_refresh_tokens_user_did_users_id_fk", 1181 "tableFrom": "auth_refresh_tokens", 1182 "tableTo": "users", 1183 "columnsFrom": ["user_did"], 1184 "columnsTo": ["id"], 1185 "onDelete": "no action", 1186 "onUpdate": "no action" 1187 } 1188 }, 1189 "compositePrimaryKeys": {}, 1190 "uniqueConstraints": {}, 1191 "policies": {}, 1192 "checkConstraints": {}, 1193 "isRLSEnabled": false 1194 }, 1195 "public.users": { 1196 "name": "users", 1197 "schema": "", 1198 "columns": { 1199 "id": { 1200 "name": "id", 1201 "type": "text", 1202 "primaryKey": true, 1203 "notNull": true 1204 }, 1205 "handle": { 1206 "name": "handle", 1207 "type": "text", 1208 "primaryKey": false, 1209 "notNull": false 1210 }, 1211 "linked_at": { 1212 "name": "linked_at", 1213 "type": "timestamp", 1214 "primaryKey": false, 1215 "notNull": true 1216 }, 1217 "last_login_at": { 1218 "name": "last_login_at", 1219 "type": "timestamp", 1220 "primaryKey": false, 1221 "notNull": true 1222 } 1223 }, 1224 "indexes": {}, 1225 "foreignKeys": {}, 1226 "compositePrimaryKeys": {}, 1227 "uniqueConstraints": {}, 1228 "policies": {}, 1229 "checkConstraints": {}, 1230 "isRLSEnabled": false 1231 } 1232 }, 1233 "enums": {}, 1234 "schemas": {}, 1235 "sequences": {}, 1236 "roles": {}, 1237 "policies": {}, 1238 "views": {}, 1239 "_meta": { 1240 "columns": {}, 1241 "schemas": {}, 1242 "tables": {} 1243 } 1244}