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 / 0006_snapshot.json
22 kB 829 lines
1{ 2 "id": "8d99a964-b5d3-497c-9b09-42a60ce3b09e", 3 "prevId": "2d3157fe-869f-46ed-bcdc-03fc757f16c1", 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 "parent_card_id": { 87 "name": "parent_card_id", 88 "type": "uuid", 89 "primaryKey": false, 90 "notNull": false 91 }, 92 "published_record_id": { 93 "name": "published_record_id", 94 "type": "uuid", 95 "primaryKey": false, 96 "notNull": false 97 }, 98 "library_count": { 99 "name": "library_count", 100 "type": "integer", 101 "primaryKey": false, 102 "notNull": true, 103 "default": 0 104 }, 105 "created_at": { 106 "name": "created_at", 107 "type": "timestamp", 108 "primaryKey": false, 109 "notNull": true, 110 "default": "now()" 111 }, 112 "updated_at": { 113 "name": "updated_at", 114 "type": "timestamp", 115 "primaryKey": false, 116 "notNull": true, 117 "default": "now()" 118 } 119 }, 120 "indexes": { 121 "cards_author_url_idx": { 122 "name": "cards_author_url_idx", 123 "columns": [ 124 { 125 "expression": "author_id", 126 "isExpression": false, 127 "asc": true, 128 "nulls": "last" 129 }, 130 { 131 "expression": "url", 132 "isExpression": false, 133 "asc": true, 134 "nulls": "last" 135 } 136 ], 137 "isUnique": false, 138 "concurrently": false, 139 "method": "btree", 140 "with": {} 141 }, 142 "cards_author_id_idx": { 143 "name": "cards_author_id_idx", 144 "columns": [ 145 { 146 "expression": "author_id", 147 "isExpression": false, 148 "asc": true, 149 "nulls": "last" 150 } 151 ], 152 "isUnique": false, 153 "concurrently": false, 154 "method": "btree", 155 "with": {} 156 } 157 }, 158 "foreignKeys": { 159 "cards_parent_card_id_cards_id_fk": { 160 "name": "cards_parent_card_id_cards_id_fk", 161 "tableFrom": "cards", 162 "tableTo": "cards", 163 "columnsFrom": ["parent_card_id"], 164 "columnsTo": ["id"], 165 "onDelete": "no action", 166 "onUpdate": "no action" 167 }, 168 "cards_published_record_id_published_records_id_fk": { 169 "name": "cards_published_record_id_published_records_id_fk", 170 "tableFrom": "cards", 171 "tableTo": "published_records", 172 "columnsFrom": ["published_record_id"], 173 "columnsTo": ["id"], 174 "onDelete": "no action", 175 "onUpdate": "no action" 176 } 177 }, 178 "compositePrimaryKeys": {}, 179 "uniqueConstraints": {}, 180 "policies": {}, 181 "checkConstraints": {}, 182 "isRLSEnabled": false 183 }, 184 "public.collection_cards": { 185 "name": "collection_cards", 186 "schema": "", 187 "columns": { 188 "id": { 189 "name": "id", 190 "type": "uuid", 191 "primaryKey": true, 192 "notNull": true 193 }, 194 "collection_id": { 195 "name": "collection_id", 196 "type": "uuid", 197 "primaryKey": false, 198 "notNull": true 199 }, 200 "card_id": { 201 "name": "card_id", 202 "type": "uuid", 203 "primaryKey": false, 204 "notNull": true 205 }, 206 "added_by": { 207 "name": "added_by", 208 "type": "text", 209 "primaryKey": false, 210 "notNull": true 211 }, 212 "added_at": { 213 "name": "added_at", 214 "type": "timestamp", 215 "primaryKey": false, 216 "notNull": true, 217 "default": "now()" 218 }, 219 "published_record_id": { 220 "name": "published_record_id", 221 "type": "uuid", 222 "primaryKey": false, 223 "notNull": false 224 } 225 }, 226 "indexes": { 227 "collection_cards_card_id_idx": { 228 "name": "collection_cards_card_id_idx", 229 "columns": [ 230 { 231 "expression": "card_id", 232 "isExpression": false, 233 "asc": true, 234 "nulls": "last" 235 } 236 ], 237 "isUnique": false, 238 "concurrently": false, 239 "method": "btree", 240 "with": {} 241 }, 242 "collection_cards_collection_id_idx": { 243 "name": "collection_cards_collection_id_idx", 244 "columns": [ 245 { 246 "expression": "collection_id", 247 "isExpression": false, 248 "asc": true, 249 "nulls": "last" 250 } 251 ], 252 "isUnique": false, 253 "concurrently": false, 254 "method": "btree", 255 "with": {} 256 } 257 }, 258 "foreignKeys": { 259 "collection_cards_collection_id_collections_id_fk": { 260 "name": "collection_cards_collection_id_collections_id_fk", 261 "tableFrom": "collection_cards", 262 "tableTo": "collections", 263 "columnsFrom": ["collection_id"], 264 "columnsTo": ["id"], 265 "onDelete": "cascade", 266 "onUpdate": "no action" 267 }, 268 "collection_cards_card_id_cards_id_fk": { 269 "name": "collection_cards_card_id_cards_id_fk", 270 "tableFrom": "collection_cards", 271 "tableTo": "cards", 272 "columnsFrom": ["card_id"], 273 "columnsTo": ["id"], 274 "onDelete": "cascade", 275 "onUpdate": "no action" 276 }, 277 "collection_cards_published_record_id_published_records_id_fk": { 278 "name": "collection_cards_published_record_id_published_records_id_fk", 279 "tableFrom": "collection_cards", 280 "tableTo": "published_records", 281 "columnsFrom": ["published_record_id"], 282 "columnsTo": ["id"], 283 "onDelete": "no action", 284 "onUpdate": "no action" 285 } 286 }, 287 "compositePrimaryKeys": {}, 288 "uniqueConstraints": {}, 289 "policies": {}, 290 "checkConstraints": {}, 291 "isRLSEnabled": false 292 }, 293 "public.collection_collaborators": { 294 "name": "collection_collaborators", 295 "schema": "", 296 "columns": { 297 "id": { 298 "name": "id", 299 "type": "uuid", 300 "primaryKey": true, 301 "notNull": true 302 }, 303 "collection_id": { 304 "name": "collection_id", 305 "type": "uuid", 306 "primaryKey": false, 307 "notNull": true 308 }, 309 "collaborator_id": { 310 "name": "collaborator_id", 311 "type": "text", 312 "primaryKey": false, 313 "notNull": true 314 } 315 }, 316 "indexes": {}, 317 "foreignKeys": { 318 "collection_collaborators_collection_id_collections_id_fk": { 319 "name": "collection_collaborators_collection_id_collections_id_fk", 320 "tableFrom": "collection_collaborators", 321 "tableTo": "collections", 322 "columnsFrom": ["collection_id"], 323 "columnsTo": ["id"], 324 "onDelete": "cascade", 325 "onUpdate": "no action" 326 } 327 }, 328 "compositePrimaryKeys": {}, 329 "uniqueConstraints": {}, 330 "policies": {}, 331 "checkConstraints": {}, 332 "isRLSEnabled": false 333 }, 334 "public.collections": { 335 "name": "collections", 336 "schema": "", 337 "columns": { 338 "id": { 339 "name": "id", 340 "type": "uuid", 341 "primaryKey": true, 342 "notNull": true 343 }, 344 "author_id": { 345 "name": "author_id", 346 "type": "text", 347 "primaryKey": false, 348 "notNull": true 349 }, 350 "name": { 351 "name": "name", 352 "type": "text", 353 "primaryKey": false, 354 "notNull": true 355 }, 356 "description": { 357 "name": "description", 358 "type": "text", 359 "primaryKey": false, 360 "notNull": false 361 }, 362 "access_type": { 363 "name": "access_type", 364 "type": "text", 365 "primaryKey": false, 366 "notNull": true 367 }, 368 "card_count": { 369 "name": "card_count", 370 "type": "integer", 371 "primaryKey": false, 372 "notNull": true, 373 "default": 0 374 }, 375 "created_at": { 376 "name": "created_at", 377 "type": "timestamp", 378 "primaryKey": false, 379 "notNull": true, 380 "default": "now()" 381 }, 382 "updated_at": { 383 "name": "updated_at", 384 "type": "timestamp", 385 "primaryKey": false, 386 "notNull": true, 387 "default": "now()" 388 }, 389 "published_record_id": { 390 "name": "published_record_id", 391 "type": "uuid", 392 "primaryKey": false, 393 "notNull": false 394 } 395 }, 396 "indexes": { 397 "collections_author_id_idx": { 398 "name": "collections_author_id_idx", 399 "columns": [ 400 { 401 "expression": "author_id", 402 "isExpression": false, 403 "asc": true, 404 "nulls": "last" 405 } 406 ], 407 "isUnique": false, 408 "concurrently": false, 409 "method": "btree", 410 "with": {} 411 }, 412 "collections_author_updated_at_idx": { 413 "name": "collections_author_updated_at_idx", 414 "columns": [ 415 { 416 "expression": "author_id", 417 "isExpression": false, 418 "asc": true, 419 "nulls": "last" 420 }, 421 { 422 "expression": "updated_at", 423 "isExpression": false, 424 "asc": true, 425 "nulls": "last" 426 } 427 ], 428 "isUnique": false, 429 "concurrently": false, 430 "method": "btree", 431 "with": {} 432 } 433 }, 434 "foreignKeys": { 435 "collections_published_record_id_published_records_id_fk": { 436 "name": "collections_published_record_id_published_records_id_fk", 437 "tableFrom": "collections", 438 "tableTo": "published_records", 439 "columnsFrom": ["published_record_id"], 440 "columnsTo": ["id"], 441 "onDelete": "no action", 442 "onUpdate": "no action" 443 } 444 }, 445 "compositePrimaryKeys": {}, 446 "uniqueConstraints": {}, 447 "policies": {}, 448 "checkConstraints": {}, 449 "isRLSEnabled": false 450 }, 451 "public.library_memberships": { 452 "name": "library_memberships", 453 "schema": "", 454 "columns": { 455 "card_id": { 456 "name": "card_id", 457 "type": "uuid", 458 "primaryKey": false, 459 "notNull": true 460 }, 461 "user_id": { 462 "name": "user_id", 463 "type": "text", 464 "primaryKey": false, 465 "notNull": true 466 }, 467 "added_at": { 468 "name": "added_at", 469 "type": "timestamp", 470 "primaryKey": false, 471 "notNull": true, 472 "default": "now()" 473 }, 474 "published_record_id": { 475 "name": "published_record_id", 476 "type": "uuid", 477 "primaryKey": false, 478 "notNull": false 479 } 480 }, 481 "indexes": { 482 "idx_user_cards": { 483 "name": "idx_user_cards", 484 "columns": [ 485 { 486 "expression": "user_id", 487 "isExpression": false, 488 "asc": true, 489 "nulls": "last" 490 } 491 ], 492 "isUnique": false, 493 "concurrently": false, 494 "method": "btree", 495 "with": {} 496 }, 497 "idx_card_users": { 498 "name": "idx_card_users", 499 "columns": [ 500 { 501 "expression": "card_id", 502 "isExpression": false, 503 "asc": true, 504 "nulls": "last" 505 } 506 ], 507 "isUnique": false, 508 "concurrently": false, 509 "method": "btree", 510 "with": {} 511 } 512 }, 513 "foreignKeys": { 514 "library_memberships_card_id_cards_id_fk": { 515 "name": "library_memberships_card_id_cards_id_fk", 516 "tableFrom": "library_memberships", 517 "tableTo": "cards", 518 "columnsFrom": ["card_id"], 519 "columnsTo": ["id"], 520 "onDelete": "cascade", 521 "onUpdate": "no action" 522 }, 523 "library_memberships_published_record_id_published_records_id_fk": { 524 "name": "library_memberships_published_record_id_published_records_id_fk", 525 "tableFrom": "library_memberships", 526 "tableTo": "published_records", 527 "columnsFrom": ["published_record_id"], 528 "columnsTo": ["id"], 529 "onDelete": "no action", 530 "onUpdate": "no action" 531 } 532 }, 533 "compositePrimaryKeys": { 534 "library_memberships_card_id_user_id_pk": { 535 "name": "library_memberships_card_id_user_id_pk", 536 "columns": ["card_id", "user_id"] 537 } 538 }, 539 "uniqueConstraints": {}, 540 "policies": {}, 541 "checkConstraints": {}, 542 "isRLSEnabled": false 543 }, 544 "public.published_records": { 545 "name": "published_records", 546 "schema": "", 547 "columns": { 548 "id": { 549 "name": "id", 550 "type": "uuid", 551 "primaryKey": true, 552 "notNull": true 553 }, 554 "uri": { 555 "name": "uri", 556 "type": "text", 557 "primaryKey": false, 558 "notNull": true 559 }, 560 "cid": { 561 "name": "cid", 562 "type": "text", 563 "primaryKey": false, 564 "notNull": true 565 }, 566 "recorded_at": { 567 "name": "recorded_at", 568 "type": "timestamp", 569 "primaryKey": false, 570 "notNull": true, 571 "default": "now()" 572 } 573 }, 574 "indexes": { 575 "uri_cid_unique_idx": { 576 "name": "uri_cid_unique_idx", 577 "columns": [ 578 { 579 "expression": "uri", 580 "isExpression": false, 581 "asc": true, 582 "nulls": "last" 583 }, 584 { 585 "expression": "cid", 586 "isExpression": false, 587 "asc": true, 588 "nulls": "last" 589 } 590 ], 591 "isUnique": true, 592 "concurrently": false, 593 "method": "btree", 594 "with": {} 595 }, 596 "published_records_uri_idx": { 597 "name": "published_records_uri_idx", 598 "columns": [ 599 { 600 "expression": "uri", 601 "isExpression": false, 602 "asc": true, 603 "nulls": "last" 604 } 605 ], 606 "isUnique": false, 607 "concurrently": false, 608 "method": "btree", 609 "with": {} 610 } 611 }, 612 "foreignKeys": {}, 613 "compositePrimaryKeys": {}, 614 "uniqueConstraints": {}, 615 "policies": {}, 616 "checkConstraints": {}, 617 "isRLSEnabled": false 618 }, 619 "public.feed_activities": { 620 "name": "feed_activities", 621 "schema": "", 622 "columns": { 623 "id": { 624 "name": "id", 625 "type": "uuid", 626 "primaryKey": true, 627 "notNull": true 628 }, 629 "actor_id": { 630 "name": "actor_id", 631 "type": "text", 632 "primaryKey": false, 633 "notNull": true 634 }, 635 "type": { 636 "name": "type", 637 "type": "text", 638 "primaryKey": false, 639 "notNull": true 640 }, 641 "metadata": { 642 "name": "metadata", 643 "type": "jsonb", 644 "primaryKey": false, 645 "notNull": true 646 }, 647 "created_at": { 648 "name": "created_at", 649 "type": "timestamp", 650 "primaryKey": false, 651 "notNull": true, 652 "default": "now()" 653 } 654 }, 655 "indexes": {}, 656 "foreignKeys": {}, 657 "compositePrimaryKeys": {}, 658 "uniqueConstraints": {}, 659 "policies": {}, 660 "checkConstraints": {}, 661 "isRLSEnabled": false 662 }, 663 "public.auth_session": { 664 "name": "auth_session", 665 "schema": "", 666 "columns": { 667 "key": { 668 "name": "key", 669 "type": "text", 670 "primaryKey": true, 671 "notNull": true 672 }, 673 "session": { 674 "name": "session", 675 "type": "text", 676 "primaryKey": false, 677 "notNull": true 678 } 679 }, 680 "indexes": {}, 681 "foreignKeys": {}, 682 "compositePrimaryKeys": {}, 683 "uniqueConstraints": {}, 684 "policies": {}, 685 "checkConstraints": {}, 686 "isRLSEnabled": false 687 }, 688 "public.auth_state": { 689 "name": "auth_state", 690 "schema": "", 691 "columns": { 692 "key": { 693 "name": "key", 694 "type": "text", 695 "primaryKey": true, 696 "notNull": true 697 }, 698 "state": { 699 "name": "state", 700 "type": "text", 701 "primaryKey": false, 702 "notNull": true 703 }, 704 "created_at": { 705 "name": "created_at", 706 "type": "timestamp", 707 "primaryKey": false, 708 "notNull": false, 709 "default": "now()" 710 } 711 }, 712 "indexes": {}, 713 "foreignKeys": {}, 714 "compositePrimaryKeys": {}, 715 "uniqueConstraints": {}, 716 "policies": {}, 717 "checkConstraints": {}, 718 "isRLSEnabled": false 719 }, 720 "public.auth_refresh_tokens": { 721 "name": "auth_refresh_tokens", 722 "schema": "", 723 "columns": { 724 "token_id": { 725 "name": "token_id", 726 "type": "text", 727 "primaryKey": true, 728 "notNull": true 729 }, 730 "user_did": { 731 "name": "user_did", 732 "type": "text", 733 "primaryKey": false, 734 "notNull": true 735 }, 736 "refresh_token": { 737 "name": "refresh_token", 738 "type": "text", 739 "primaryKey": false, 740 "notNull": true 741 }, 742 "issued_at": { 743 "name": "issued_at", 744 "type": "timestamp", 745 "primaryKey": false, 746 "notNull": true 747 }, 748 "expires_at": { 749 "name": "expires_at", 750 "type": "timestamp", 751 "primaryKey": false, 752 "notNull": true 753 }, 754 "revoked": { 755 "name": "revoked", 756 "type": "boolean", 757 "primaryKey": false, 758 "notNull": false, 759 "default": false 760 } 761 }, 762 "indexes": {}, 763 "foreignKeys": { 764 "auth_refresh_tokens_user_did_users_id_fk": { 765 "name": "auth_refresh_tokens_user_did_users_id_fk", 766 "tableFrom": "auth_refresh_tokens", 767 "tableTo": "users", 768 "columnsFrom": ["user_did"], 769 "columnsTo": ["id"], 770 "onDelete": "no action", 771 "onUpdate": "no action" 772 } 773 }, 774 "compositePrimaryKeys": {}, 775 "uniqueConstraints": {}, 776 "policies": {}, 777 "checkConstraints": {}, 778 "isRLSEnabled": false 779 }, 780 "public.users": { 781 "name": "users", 782 "schema": "", 783 "columns": { 784 "id": { 785 "name": "id", 786 "type": "text", 787 "primaryKey": true, 788 "notNull": true 789 }, 790 "handle": { 791 "name": "handle", 792 "type": "text", 793 "primaryKey": false, 794 "notNull": false 795 }, 796 "linked_at": { 797 "name": "linked_at", 798 "type": "timestamp", 799 "primaryKey": false, 800 "notNull": true 801 }, 802 "last_login_at": { 803 "name": "last_login_at", 804 "type": "timestamp", 805 "primaryKey": false, 806 "notNull": true 807 } 808 }, 809 "indexes": {}, 810 "foreignKeys": {}, 811 "compositePrimaryKeys": {}, 812 "uniqueConstraints": {}, 813 "policies": {}, 814 "checkConstraints": {}, 815 "isRLSEnabled": false 816 } 817 }, 818 "enums": {}, 819 "schemas": {}, 820 "sequences": {}, 821 "roles": {}, 822 "policies": {}, 823 "views": {}, 824 "_meta": { 825 "columns": {}, 826 "schemas": {}, 827 "tables": {} 828 } 829}