kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

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

chore: format drizzle metadata

Tin 49e9887f 9d722e50

+3384 -3605
+3191 -3412
apps/api/drizzle/meta/0026_snapshot.json
··· 1 1 { 2 - "id": "0e05bf62-b50b-4a4e-9d73-3b4cdb696930", 3 - "prevId": "ee695959-0cad-4f20-9219-7bcefd51ff6d", 4 - "version": "7", 5 - "dialect": "postgresql", 6 - "tables": { 7 - "public.account": { 8 - "name": "account", 9 - "schema": "", 10 - "columns": { 11 - "id": { 12 - "name": "id", 13 - "type": "text", 14 - "primaryKey": true, 15 - "notNull": true 16 - }, 17 - "account_id": { 18 - "name": "account_id", 19 - "type": "text", 20 - "primaryKey": false, 21 - "notNull": true 22 - }, 23 - "provider_id": { 24 - "name": "provider_id", 25 - "type": "text", 26 - "primaryKey": false, 27 - "notNull": true 28 - }, 29 - "user_id": { 30 - "name": "user_id", 31 - "type": "text", 32 - "primaryKey": false, 33 - "notNull": true 34 - }, 35 - "access_token": { 36 - "name": "access_token", 37 - "type": "text", 38 - "primaryKey": false, 39 - "notNull": false 40 - }, 41 - "refresh_token": { 42 - "name": "refresh_token", 43 - "type": "text", 44 - "primaryKey": false, 45 - "notNull": false 46 - }, 47 - "id_token": { 48 - "name": "id_token", 49 - "type": "text", 50 - "primaryKey": false, 51 - "notNull": false 52 - }, 53 - "access_token_expires_at": { 54 - "name": "access_token_expires_at", 55 - "type": "timestamp", 56 - "primaryKey": false, 57 - "notNull": false 58 - }, 59 - "refresh_token_expires_at": { 60 - "name": "refresh_token_expires_at", 61 - "type": "timestamp", 62 - "primaryKey": false, 63 - "notNull": false 64 - }, 65 - "scope": { 66 - "name": "scope", 67 - "type": "text", 68 - "primaryKey": false, 69 - "notNull": false 70 - }, 71 - "password": { 72 - "name": "password", 73 - "type": "text", 74 - "primaryKey": false, 75 - "notNull": false 76 - }, 77 - "created_at": { 78 - "name": "created_at", 79 - "type": "timestamp", 80 - "primaryKey": false, 81 - "notNull": true, 82 - "default": "now()" 83 - }, 84 - "updated_at": { 85 - "name": "updated_at", 86 - "type": "timestamp", 87 - "primaryKey": false, 88 - "notNull": true 89 - } 90 - }, 91 - "indexes": { 92 - "account_userId_idx": { 93 - "name": "account_userId_idx", 94 - "columns": [ 95 - { 96 - "expression": "user_id", 97 - "isExpression": false, 98 - "asc": true, 99 - "nulls": "last" 100 - } 101 - ], 102 - "isUnique": false, 103 - "concurrently": false, 104 - "method": "btree", 105 - "with": {} 106 - } 107 - }, 108 - "foreignKeys": { 109 - "account_user_id_user_id_fk": { 110 - "name": "account_user_id_user_id_fk", 111 - "tableFrom": "account", 112 - "tableTo": "user", 113 - "columnsFrom": [ 114 - "user_id" 115 - ], 116 - "columnsTo": [ 117 - "id" 118 - ], 119 - "onDelete": "cascade", 120 - "onUpdate": "no action" 121 - } 122 - }, 123 - "compositePrimaryKeys": {}, 124 - "uniqueConstraints": {}, 125 - "policies": {}, 126 - "checkConstraints": {}, 127 - "isRLSEnabled": false 128 - }, 129 - "public.activity": { 130 - "name": "activity", 131 - "schema": "", 132 - "columns": { 133 - "id": { 134 - "name": "id", 135 - "type": "text", 136 - "primaryKey": true, 137 - "notNull": true 138 - }, 139 - "task_id": { 140 - "name": "task_id", 141 - "type": "text", 142 - "primaryKey": false, 143 - "notNull": true 144 - }, 145 - "type": { 146 - "name": "type", 147 - "type": "text", 148 - "primaryKey": false, 149 - "notNull": true 150 - }, 151 - "created_at": { 152 - "name": "created_at", 153 - "type": "timestamp", 154 - "primaryKey": false, 155 - "notNull": true, 156 - "default": "now()" 157 - }, 158 - "updated_at": { 159 - "name": "updated_at", 160 - "type": "timestamp", 161 - "primaryKey": false, 162 - "notNull": true, 163 - "default": "now()" 164 - }, 165 - "user_id": { 166 - "name": "user_id", 167 - "type": "text", 168 - "primaryKey": false, 169 - "notNull": false 170 - }, 171 - "content": { 172 - "name": "content", 173 - "type": "text", 174 - "primaryKey": false, 175 - "notNull": false 176 - }, 177 - "event_data": { 178 - "name": "event_data", 179 - "type": "jsonb", 180 - "primaryKey": false, 181 - "notNull": false 182 - }, 183 - "external_user_name": { 184 - "name": "external_user_name", 185 - "type": "text", 186 - "primaryKey": false, 187 - "notNull": false 188 - }, 189 - "external_user_avatar": { 190 - "name": "external_user_avatar", 191 - "type": "text", 192 - "primaryKey": false, 193 - "notNull": false 194 - }, 195 - "external_source": { 196 - "name": "external_source", 197 - "type": "text", 198 - "primaryKey": false, 199 - "notNull": false 200 - }, 201 - "external_url": { 202 - "name": "external_url", 203 - "type": "text", 204 - "primaryKey": false, 205 - "notNull": false 206 - } 207 - }, 208 - "indexes": { 209 - "activity_task_id_idx": { 210 - "name": "activity_task_id_idx", 211 - "columns": [ 212 - { 213 - "expression": "task_id", 214 - "isExpression": false, 215 - "asc": true, 216 - "nulls": "last" 217 - } 218 - ], 219 - "isUnique": false, 220 - "concurrently": false, 221 - "method": "btree", 222 - "with": {} 223 - } 224 - }, 225 - "foreignKeys": { 226 - "activity_task_id_task_id_fk": { 227 - "name": "activity_task_id_task_id_fk", 228 - "tableFrom": "activity", 229 - "tableTo": "task", 230 - "columnsFrom": [ 231 - "task_id" 232 - ], 233 - "columnsTo": [ 234 - "id" 235 - ], 236 - "onDelete": "cascade", 237 - "onUpdate": "cascade" 238 - }, 239 - "activity_user_id_user_id_fk": { 240 - "name": "activity_user_id_user_id_fk", 241 - "tableFrom": "activity", 242 - "tableTo": "user", 243 - "columnsFrom": [ 244 - "user_id" 245 - ], 246 - "columnsTo": [ 247 - "id" 248 - ], 249 - "onDelete": "cascade", 250 - "onUpdate": "cascade" 251 - } 252 - }, 253 - "compositePrimaryKeys": {}, 254 - "uniqueConstraints": { 255 - "activity_task_external_source_external_url_unique": { 256 - "name": "activity_task_external_source_external_url_unique", 257 - "nullsNotDistinct": false, 258 - "columns": [ 259 - "task_id", 260 - "external_source", 261 - "external_url" 262 - ] 263 - } 264 - }, 265 - "policies": {}, 266 - "checkConstraints": {}, 267 - "isRLSEnabled": false 268 - }, 269 - "public.apikey": { 270 - "name": "apikey", 271 - "schema": "", 272 - "columns": { 273 - "id": { 274 - "name": "id", 275 - "type": "text", 276 - "primaryKey": true, 277 - "notNull": true 278 - }, 279 - "config_id": { 280 - "name": "config_id", 281 - "type": "text", 282 - "primaryKey": false, 283 - "notNull": true, 284 - "default": "'default'" 285 - }, 286 - "name": { 287 - "name": "name", 288 - "type": "text", 289 - "primaryKey": false, 290 - "notNull": false 291 - }, 292 - "start": { 293 - "name": "start", 294 - "type": "text", 295 - "primaryKey": false, 296 - "notNull": false 297 - }, 298 - "reference_id": { 299 - "name": "reference_id", 300 - "type": "text", 301 - "primaryKey": false, 302 - "notNull": true 303 - }, 304 - "prefix": { 305 - "name": "prefix", 306 - "type": "text", 307 - "primaryKey": false, 308 - "notNull": false 309 - }, 310 - "key": { 311 - "name": "key", 312 - "type": "text", 313 - "primaryKey": false, 314 - "notNull": true 315 - }, 316 - "user_id": { 317 - "name": "user_id", 318 - "type": "text", 319 - "primaryKey": false, 320 - "notNull": false 321 - }, 322 - "refill_interval": { 323 - "name": "refill_interval", 324 - "type": "integer", 325 - "primaryKey": false, 326 - "notNull": false 327 - }, 328 - "refill_amount": { 329 - "name": "refill_amount", 330 - "type": "integer", 331 - "primaryKey": false, 332 - "notNull": false 333 - }, 334 - "last_refill_at": { 335 - "name": "last_refill_at", 336 - "type": "timestamp", 337 - "primaryKey": false, 338 - "notNull": false 339 - }, 340 - "enabled": { 341 - "name": "enabled", 342 - "type": "boolean", 343 - "primaryKey": false, 344 - "notNull": false, 345 - "default": true 346 - }, 347 - "rate_limit_enabled": { 348 - "name": "rate_limit_enabled", 349 - "type": "boolean", 350 - "primaryKey": false, 351 - "notNull": false, 352 - "default": true 353 - }, 354 - "rate_limit_time_window": { 355 - "name": "rate_limit_time_window", 356 - "type": "integer", 357 - "primaryKey": false, 358 - "notNull": false, 359 - "default": 86400000 360 - }, 361 - "rate_limit_max": { 362 - "name": "rate_limit_max", 363 - "type": "integer", 364 - "primaryKey": false, 365 - "notNull": false, 366 - "default": 10 367 - }, 368 - "request_count": { 369 - "name": "request_count", 370 - "type": "integer", 371 - "primaryKey": false, 372 - "notNull": false, 373 - "default": 0 374 - }, 375 - "remaining": { 376 - "name": "remaining", 377 - "type": "integer", 378 - "primaryKey": false, 379 - "notNull": false 380 - }, 381 - "last_request": { 382 - "name": "last_request", 383 - "type": "timestamp", 384 - "primaryKey": false, 385 - "notNull": false 386 - }, 387 - "expires_at": { 388 - "name": "expires_at", 389 - "type": "timestamp", 390 - "primaryKey": false, 391 - "notNull": false 392 - }, 393 - "created_at": { 394 - "name": "created_at", 395 - "type": "timestamp", 396 - "primaryKey": false, 397 - "notNull": true 398 - }, 399 - "updated_at": { 400 - "name": "updated_at", 401 - "type": "timestamp", 402 - "primaryKey": false, 403 - "notNull": true 404 - }, 405 - "permissions": { 406 - "name": "permissions", 407 - "type": "text", 408 - "primaryKey": false, 409 - "notNull": false 410 - }, 411 - "metadata": { 412 - "name": "metadata", 413 - "type": "text", 414 - "primaryKey": false, 415 - "notNull": false 416 - } 417 - }, 418 - "indexes": { 419 - "apikey_configId_idx": { 420 - "name": "apikey_configId_idx", 421 - "columns": [ 422 - { 423 - "expression": "config_id", 424 - "isExpression": false, 425 - "asc": true, 426 - "nulls": "last" 427 - } 428 - ], 429 - "isUnique": false, 430 - "concurrently": false, 431 - "method": "btree", 432 - "with": {} 433 - }, 434 - "apikey_key_idx": { 435 - "name": "apikey_key_idx", 436 - "columns": [ 437 - { 438 - "expression": "key", 439 - "isExpression": false, 440 - "asc": true, 441 - "nulls": "last" 442 - } 443 - ], 444 - "isUnique": false, 445 - "concurrently": false, 446 - "method": "btree", 447 - "with": {} 448 - }, 449 - "apikey_referenceId_idx": { 450 - "name": "apikey_referenceId_idx", 451 - "columns": [ 452 - { 453 - "expression": "reference_id", 454 - "isExpression": false, 455 - "asc": true, 456 - "nulls": "last" 457 - } 458 - ], 459 - "isUnique": false, 460 - "concurrently": false, 461 - "method": "btree", 462 - "with": {} 463 - }, 464 - "apikey_userId_idx": { 465 - "name": "apikey_userId_idx", 466 - "columns": [ 467 - { 468 - "expression": "user_id", 469 - "isExpression": false, 470 - "asc": true, 471 - "nulls": "last" 472 - } 473 - ], 474 - "isUnique": false, 475 - "concurrently": false, 476 - "method": "btree", 477 - "with": {} 478 - } 479 - }, 480 - "foreignKeys": { 481 - "apikey_reference_id_user_id_fk": { 482 - "name": "apikey_reference_id_user_id_fk", 483 - "tableFrom": "apikey", 484 - "tableTo": "user", 485 - "columnsFrom": [ 486 - "reference_id" 487 - ], 488 - "columnsTo": [ 489 - "id" 490 - ], 491 - "onDelete": "cascade", 492 - "onUpdate": "no action" 493 - }, 494 - "apikey_user_id_user_id_fk": { 495 - "name": "apikey_user_id_user_id_fk", 496 - "tableFrom": "apikey", 497 - "tableTo": "user", 498 - "columnsFrom": [ 499 - "user_id" 500 - ], 501 - "columnsTo": [ 502 - "id" 503 - ], 504 - "onDelete": "cascade", 505 - "onUpdate": "no action" 506 - } 507 - }, 508 - "compositePrimaryKeys": {}, 509 - "uniqueConstraints": {}, 510 - "policies": {}, 511 - "checkConstraints": {}, 512 - "isRLSEnabled": false 513 - }, 514 - "public.asset": { 515 - "name": "asset", 516 - "schema": "", 517 - "columns": { 518 - "id": { 519 - "name": "id", 520 - "type": "text", 521 - "primaryKey": true, 522 - "notNull": true 523 - }, 524 - "workspace_id": { 525 - "name": "workspace_id", 526 - "type": "text", 527 - "primaryKey": false, 528 - "notNull": true 529 - }, 530 - "project_id": { 531 - "name": "project_id", 532 - "type": "text", 533 - "primaryKey": false, 534 - "notNull": true 535 - }, 536 - "task_id": { 537 - "name": "task_id", 538 - "type": "text", 539 - "primaryKey": false, 540 - "notNull": false 541 - }, 542 - "activity_id": { 543 - "name": "activity_id", 544 - "type": "text", 545 - "primaryKey": false, 546 - "notNull": false 547 - }, 548 - "object_key": { 549 - "name": "object_key", 550 - "type": "text", 551 - "primaryKey": false, 552 - "notNull": true 553 - }, 554 - "filename": { 555 - "name": "filename", 556 - "type": "text", 557 - "primaryKey": false, 558 - "notNull": true 559 - }, 560 - "mime_type": { 561 - "name": "mime_type", 562 - "type": "text", 563 - "primaryKey": false, 564 - "notNull": true 565 - }, 566 - "size": { 567 - "name": "size", 568 - "type": "integer", 569 - "primaryKey": false, 570 - "notNull": true 571 - }, 572 - "kind": { 573 - "name": "kind", 574 - "type": "text", 575 - "primaryKey": false, 576 - "notNull": true, 577 - "default": "'image'" 578 - }, 579 - "surface": { 580 - "name": "surface", 581 - "type": "text", 582 - "primaryKey": false, 583 - "notNull": true, 584 - "default": "'description'" 585 - }, 586 - "created_by": { 587 - "name": "created_by", 588 - "type": "text", 589 - "primaryKey": false, 590 - "notNull": false 591 - }, 592 - "created_at": { 593 - "name": "created_at", 594 - "type": "timestamp", 595 - "primaryKey": false, 596 - "notNull": true, 597 - "default": "now()" 598 - } 599 - }, 600 - "indexes": { 601 - "asset_workspaceId_idx": { 602 - "name": "asset_workspaceId_idx", 603 - "columns": [ 604 - { 605 - "expression": "workspace_id", 606 - "isExpression": false, 607 - "asc": true, 608 - "nulls": "last" 609 - } 610 - ], 611 - "isUnique": false, 612 - "concurrently": false, 613 - "method": "btree", 614 - "with": {} 615 - }, 616 - "asset_projectId_idx": { 617 - "name": "asset_projectId_idx", 618 - "columns": [ 619 - { 620 - "expression": "project_id", 621 - "isExpression": false, 622 - "asc": true, 623 - "nulls": "last" 624 - } 625 - ], 626 - "isUnique": false, 627 - "concurrently": false, 628 - "method": "btree", 629 - "with": {} 630 - }, 631 - "asset_taskId_idx": { 632 - "name": "asset_taskId_idx", 633 - "columns": [ 634 - { 635 - "expression": "task_id", 636 - "isExpression": false, 637 - "asc": true, 638 - "nulls": "last" 639 - } 640 - ], 641 - "isUnique": false, 642 - "concurrently": false, 643 - "method": "btree", 644 - "with": {} 645 - }, 646 - "asset_activityId_idx": { 647 - "name": "asset_activityId_idx", 648 - "columns": [ 649 - { 650 - "expression": "activity_id", 651 - "isExpression": false, 652 - "asc": true, 653 - "nulls": "last" 654 - } 655 - ], 656 - "isUnique": false, 657 - "concurrently": false, 658 - "method": "btree", 659 - "with": {} 660 - } 661 - }, 662 - "foreignKeys": { 663 - "asset_workspace_id_workspace_id_fk": { 664 - "name": "asset_workspace_id_workspace_id_fk", 665 - "tableFrom": "asset", 666 - "tableTo": "workspace", 667 - "columnsFrom": [ 668 - "workspace_id" 669 - ], 670 - "columnsTo": [ 671 - "id" 672 - ], 673 - "onDelete": "cascade", 674 - "onUpdate": "cascade" 675 - }, 676 - "asset_project_id_project_id_fk": { 677 - "name": "asset_project_id_project_id_fk", 678 - "tableFrom": "asset", 679 - "tableTo": "project", 680 - "columnsFrom": [ 681 - "project_id" 682 - ], 683 - "columnsTo": [ 684 - "id" 685 - ], 686 - "onDelete": "cascade", 687 - "onUpdate": "cascade" 688 - }, 689 - "asset_task_id_task_id_fk": { 690 - "name": "asset_task_id_task_id_fk", 691 - "tableFrom": "asset", 692 - "tableTo": "task", 693 - "columnsFrom": [ 694 - "task_id" 695 - ], 696 - "columnsTo": [ 697 - "id" 698 - ], 699 - "onDelete": "cascade", 700 - "onUpdate": "cascade" 701 - }, 702 - "asset_activity_id_activity_id_fk": { 703 - "name": "asset_activity_id_activity_id_fk", 704 - "tableFrom": "asset", 705 - "tableTo": "activity", 706 - "columnsFrom": [ 707 - "activity_id" 708 - ], 709 - "columnsTo": [ 710 - "id" 711 - ], 712 - "onDelete": "cascade", 713 - "onUpdate": "cascade" 714 - }, 715 - "asset_created_by_user_id_fk": { 716 - "name": "asset_created_by_user_id_fk", 717 - "tableFrom": "asset", 718 - "tableTo": "user", 719 - "columnsFrom": [ 720 - "created_by" 721 - ], 722 - "columnsTo": [ 723 - "id" 724 - ], 725 - "onDelete": "set null", 726 - "onUpdate": "cascade" 727 - } 728 - }, 729 - "compositePrimaryKeys": {}, 730 - "uniqueConstraints": { 731 - "asset_object_key_unique": { 732 - "name": "asset_object_key_unique", 733 - "nullsNotDistinct": false, 734 - "columns": [ 735 - "object_key" 736 - ] 737 - } 738 - }, 739 - "policies": {}, 740 - "checkConstraints": {}, 741 - "isRLSEnabled": false 742 - }, 743 - "public.column": { 744 - "name": "column", 745 - "schema": "", 746 - "columns": { 747 - "id": { 748 - "name": "id", 749 - "type": "text", 750 - "primaryKey": true, 751 - "notNull": true 752 - }, 753 - "project_id": { 754 - "name": "project_id", 755 - "type": "text", 756 - "primaryKey": false, 757 - "notNull": true 758 - }, 759 - "name": { 760 - "name": "name", 761 - "type": "text", 762 - "primaryKey": false, 763 - "notNull": true 764 - }, 765 - "slug": { 766 - "name": "slug", 767 - "type": "text", 768 - "primaryKey": false, 769 - "notNull": true 770 - }, 771 - "position": { 772 - "name": "position", 773 - "type": "integer", 774 - "primaryKey": false, 775 - "notNull": true, 776 - "default": 0 777 - }, 778 - "icon": { 779 - "name": "icon", 780 - "type": "text", 781 - "primaryKey": false, 782 - "notNull": false 783 - }, 784 - "color": { 785 - "name": "color", 786 - "type": "text", 787 - "primaryKey": false, 788 - "notNull": false 789 - }, 790 - "is_final": { 791 - "name": "is_final", 792 - "type": "boolean", 793 - "primaryKey": false, 794 - "notNull": true, 795 - "default": false 796 - }, 797 - "created_at": { 798 - "name": "created_at", 799 - "type": "timestamp", 800 - "primaryKey": false, 801 - "notNull": true, 802 - "default": "now()" 803 - }, 804 - "updated_at": { 805 - "name": "updated_at", 806 - "type": "timestamp", 807 - "primaryKey": false, 808 - "notNull": true, 809 - "default": "now()" 810 - } 811 - }, 812 - "indexes": { 813 - "column_projectId_idx": { 814 - "name": "column_projectId_idx", 815 - "columns": [ 816 - { 817 - "expression": "project_id", 818 - "isExpression": false, 819 - "asc": true, 820 - "nulls": "last" 821 - } 822 - ], 823 - "isUnique": false, 824 - "concurrently": false, 825 - "method": "btree", 826 - "with": {} 827 - } 828 - }, 829 - "foreignKeys": { 830 - "column_project_id_project_id_fk": { 831 - "name": "column_project_id_project_id_fk", 832 - "tableFrom": "column", 833 - "tableTo": "project", 834 - "columnsFrom": [ 835 - "project_id" 836 - ], 837 - "columnsTo": [ 838 - "id" 839 - ], 840 - "onDelete": "cascade", 841 - "onUpdate": "cascade" 842 - } 843 - }, 844 - "compositePrimaryKeys": {}, 845 - "uniqueConstraints": {}, 846 - "policies": {}, 847 - "checkConstraints": {}, 848 - "isRLSEnabled": false 849 - }, 850 - "public.comment": { 851 - "name": "comment", 852 - "schema": "", 853 - "columns": { 854 - "id": { 855 - "name": "id", 856 - "type": "text", 857 - "primaryKey": true, 858 - "notNull": true 859 - }, 860 - "task_id": { 861 - "name": "task_id", 862 - "type": "text", 863 - "primaryKey": false, 864 - "notNull": true 865 - }, 866 - "user_id": { 867 - "name": "user_id", 868 - "type": "text", 869 - "primaryKey": false, 870 - "notNull": true 871 - }, 872 - "content": { 873 - "name": "content", 874 - "type": "text", 875 - "primaryKey": false, 876 - "notNull": true 877 - }, 878 - "created_at": { 879 - "name": "created_at", 880 - "type": "timestamp", 881 - "primaryKey": false, 882 - "notNull": true, 883 - "default": "now()" 884 - }, 885 - "updated_at": { 886 - "name": "updated_at", 887 - "type": "timestamp", 888 - "primaryKey": false, 889 - "notNull": true, 890 - "default": "now()" 891 - } 892 - }, 893 - "indexes": { 894 - "comment_task_idx": { 895 - "name": "comment_task_idx", 896 - "columns": [ 897 - { 898 - "expression": "task_id", 899 - "isExpression": false, 900 - "asc": true, 901 - "nulls": "last" 902 - } 903 - ], 904 - "isUnique": false, 905 - "concurrently": false, 906 - "method": "btree", 907 - "with": {} 908 - }, 909 - "comment_user_idx": { 910 - "name": "comment_user_idx", 911 - "columns": [ 912 - { 913 - "expression": "user_id", 914 - "isExpression": false, 915 - "asc": true, 916 - "nulls": "last" 917 - } 918 - ], 919 - "isUnique": false, 920 - "concurrently": false, 921 - "method": "btree", 922 - "with": {} 923 - } 924 - }, 925 - "foreignKeys": { 926 - "comment_task_id_task_id_fk": { 927 - "name": "comment_task_id_task_id_fk", 928 - "tableFrom": "comment", 929 - "tableTo": "task", 930 - "columnsFrom": [ 931 - "task_id" 932 - ], 933 - "columnsTo": [ 934 - "id" 935 - ], 936 - "onDelete": "cascade", 937 - "onUpdate": "cascade" 938 - }, 939 - "comment_user_id_user_id_fk": { 940 - "name": "comment_user_id_user_id_fk", 941 - "tableFrom": "comment", 942 - "tableTo": "user", 943 - "columnsFrom": [ 944 - "user_id" 945 - ], 946 - "columnsTo": [ 947 - "id" 948 - ], 949 - "onDelete": "cascade", 950 - "onUpdate": "cascade" 951 - } 952 - }, 953 - "compositePrimaryKeys": {}, 954 - "uniqueConstraints": {}, 955 - "policies": {}, 956 - "checkConstraints": {}, 957 - "isRLSEnabled": false 958 - }, 959 - "public.device_code": { 960 - "name": "device_code", 961 - "schema": "", 962 - "columns": { 963 - "id": { 964 - "name": "id", 965 - "type": "text", 966 - "primaryKey": true, 967 - "notNull": true 968 - }, 969 - "device_code": { 970 - "name": "device_code", 971 - "type": "text", 972 - "primaryKey": false, 973 - "notNull": true 974 - }, 975 - "user_code": { 976 - "name": "user_code", 977 - "type": "text", 978 - "primaryKey": false, 979 - "notNull": true 980 - }, 981 - "user_id": { 982 - "name": "user_id", 983 - "type": "text", 984 - "primaryKey": false, 985 - "notNull": false 986 - }, 987 - "created_at": { 988 - "name": "created_at", 989 - "type": "timestamp", 990 - "primaryKey": false, 991 - "notNull": true, 992 - "default": "now()" 993 - }, 994 - "updated_at": { 995 - "name": "updated_at", 996 - "type": "timestamp", 997 - "primaryKey": false, 998 - "notNull": true, 999 - "default": "now()" 1000 - }, 1001 - "expires_at": { 1002 - "name": "expires_at", 1003 - "type": "timestamp", 1004 - "primaryKey": false, 1005 - "notNull": true 1006 - }, 1007 - "status": { 1008 - "name": "status", 1009 - "type": "text", 1010 - "primaryKey": false, 1011 - "notNull": true 1012 - }, 1013 - "last_polled_at": { 1014 - "name": "last_polled_at", 1015 - "type": "timestamp", 1016 - "primaryKey": false, 1017 - "notNull": false 1018 - }, 1019 - "polling_interval": { 1020 - "name": "polling_interval", 1021 - "type": "integer", 1022 - "primaryKey": false, 1023 - "notNull": false 1024 - }, 1025 - "client_id": { 1026 - "name": "client_id", 1027 - "type": "text", 1028 - "primaryKey": false, 1029 - "notNull": false 1030 - }, 1031 - "scope": { 1032 - "name": "scope", 1033 - "type": "text", 1034 - "primaryKey": false, 1035 - "notNull": false 1036 - } 1037 - }, 1038 - "indexes": { 1039 - "device_code_device_code_uidx": { 1040 - "name": "device_code_device_code_uidx", 1041 - "columns": [ 1042 - { 1043 - "expression": "device_code", 1044 - "isExpression": false, 1045 - "asc": true, 1046 - "nulls": "last" 1047 - } 1048 - ], 1049 - "isUnique": true, 1050 - "concurrently": false, 1051 - "method": "btree", 1052 - "with": {} 1053 - }, 1054 - "device_code_user_code_uidx": { 1055 - "name": "device_code_user_code_uidx", 1056 - "columns": [ 1057 - { 1058 - "expression": "user_code", 1059 - "isExpression": false, 1060 - "asc": true, 1061 - "nulls": "last" 1062 - } 1063 - ], 1064 - "isUnique": true, 1065 - "concurrently": false, 1066 - "method": "btree", 1067 - "with": {} 1068 - }, 1069 - "device_code_user_id_idx": { 1070 - "name": "device_code_user_id_idx", 1071 - "columns": [ 1072 - { 1073 - "expression": "user_id", 1074 - "isExpression": false, 1075 - "asc": true, 1076 - "nulls": "last" 1077 - } 1078 - ], 1079 - "isUnique": false, 1080 - "concurrently": false, 1081 - "method": "btree", 1082 - "with": {} 1083 - } 1084 - }, 1085 - "foreignKeys": { 1086 - "device_code_user_id_user_id_fk": { 1087 - "name": "device_code_user_id_user_id_fk", 1088 - "tableFrom": "device_code", 1089 - "tableTo": "user", 1090 - "columnsFrom": [ 1091 - "user_id" 1092 - ], 1093 - "columnsTo": [ 1094 - "id" 1095 - ], 1096 - "onDelete": "cascade", 1097 - "onUpdate": "cascade" 1098 - } 1099 - }, 1100 - "compositePrimaryKeys": {}, 1101 - "uniqueConstraints": {}, 1102 - "policies": {}, 1103 - "checkConstraints": {}, 1104 - "isRLSEnabled": false 1105 - }, 1106 - "public.external_link": { 1107 - "name": "external_link", 1108 - "schema": "", 1109 - "columns": { 1110 - "id": { 1111 - "name": "id", 1112 - "type": "text", 1113 - "primaryKey": true, 1114 - "notNull": true 1115 - }, 1116 - "task_id": { 1117 - "name": "task_id", 1118 - "type": "text", 1119 - "primaryKey": false, 1120 - "notNull": true 1121 - }, 1122 - "integration_id": { 1123 - "name": "integration_id", 1124 - "type": "text", 1125 - "primaryKey": false, 1126 - "notNull": true 1127 - }, 1128 - "resource_type": { 1129 - "name": "resource_type", 1130 - "type": "text", 1131 - "primaryKey": false, 1132 - "notNull": true 1133 - }, 1134 - "external_id": { 1135 - "name": "external_id", 1136 - "type": "text", 1137 - "primaryKey": false, 1138 - "notNull": true 1139 - }, 1140 - "url": { 1141 - "name": "url", 1142 - "type": "text", 1143 - "primaryKey": false, 1144 - "notNull": true 1145 - }, 1146 - "title": { 1147 - "name": "title", 1148 - "type": "text", 1149 - "primaryKey": false, 1150 - "notNull": false 1151 - }, 1152 - "metadata": { 1153 - "name": "metadata", 1154 - "type": "text", 1155 - "primaryKey": false, 1156 - "notNull": false 1157 - }, 1158 - "created_at": { 1159 - "name": "created_at", 1160 - "type": "timestamp", 1161 - "primaryKey": false, 1162 - "notNull": true, 1163 - "default": "now()" 1164 - }, 1165 - "updated_at": { 1166 - "name": "updated_at", 1167 - "type": "timestamp", 1168 - "primaryKey": false, 1169 - "notNull": true, 1170 - "default": "now()" 1171 - } 1172 - }, 1173 - "indexes": { 1174 - "external_link_taskId_idx": { 1175 - "name": "external_link_taskId_idx", 1176 - "columns": [ 1177 - { 1178 - "expression": "task_id", 1179 - "isExpression": false, 1180 - "asc": true, 1181 - "nulls": "last" 1182 - } 1183 - ], 1184 - "isUnique": false, 1185 - "concurrently": false, 1186 - "method": "btree", 1187 - "with": {} 1188 - }, 1189 - "external_link_integrationId_idx": { 1190 - "name": "external_link_integrationId_idx", 1191 - "columns": [ 1192 - { 1193 - "expression": "integration_id", 1194 - "isExpression": false, 1195 - "asc": true, 1196 - "nulls": "last" 1197 - } 1198 - ], 1199 - "isUnique": false, 1200 - "concurrently": false, 1201 - "method": "btree", 1202 - "with": {} 1203 - }, 1204 - "external_link_externalId_idx": { 1205 - "name": "external_link_externalId_idx", 1206 - "columns": [ 1207 - { 1208 - "expression": "external_id", 1209 - "isExpression": false, 1210 - "asc": true, 1211 - "nulls": "last" 1212 - } 1213 - ], 1214 - "isUnique": false, 1215 - "concurrently": false, 1216 - "method": "btree", 1217 - "with": {} 1218 - }, 1219 - "external_link_resourceType_idx": { 1220 - "name": "external_link_resourceType_idx", 1221 - "columns": [ 1222 - { 1223 - "expression": "resource_type", 1224 - "isExpression": false, 1225 - "asc": true, 1226 - "nulls": "last" 1227 - } 1228 - ], 1229 - "isUnique": false, 1230 - "concurrently": false, 1231 - "method": "btree", 1232 - "with": {} 1233 - } 1234 - }, 1235 - "foreignKeys": { 1236 - "external_link_task_id_task_id_fk": { 1237 - "name": "external_link_task_id_task_id_fk", 1238 - "tableFrom": "external_link", 1239 - "tableTo": "task", 1240 - "columnsFrom": [ 1241 - "task_id" 1242 - ], 1243 - "columnsTo": [ 1244 - "id" 1245 - ], 1246 - "onDelete": "cascade", 1247 - "onUpdate": "cascade" 1248 - }, 1249 - "external_link_integration_id_integration_id_fk": { 1250 - "name": "external_link_integration_id_integration_id_fk", 1251 - "tableFrom": "external_link", 1252 - "tableTo": "integration", 1253 - "columnsFrom": [ 1254 - "integration_id" 1255 - ], 1256 - "columnsTo": [ 1257 - "id" 1258 - ], 1259 - "onDelete": "cascade", 1260 - "onUpdate": "cascade" 1261 - } 1262 - }, 1263 - "compositePrimaryKeys": {}, 1264 - "uniqueConstraints": {}, 1265 - "policies": {}, 1266 - "checkConstraints": {}, 1267 - "isRLSEnabled": false 1268 - }, 1269 - "public.github_integration": { 1270 - "name": "github_integration", 1271 - "schema": "", 1272 - "columns": { 1273 - "id": { 1274 - "name": "id", 1275 - "type": "text", 1276 - "primaryKey": true, 1277 - "notNull": true 1278 - }, 1279 - "project_id": { 1280 - "name": "project_id", 1281 - "type": "text", 1282 - "primaryKey": false, 1283 - "notNull": true 1284 - }, 1285 - "repository_owner": { 1286 - "name": "repository_owner", 1287 - "type": "text", 1288 - "primaryKey": false, 1289 - "notNull": true 1290 - }, 1291 - "repository_name": { 1292 - "name": "repository_name", 1293 - "type": "text", 1294 - "primaryKey": false, 1295 - "notNull": true 1296 - }, 1297 - "installation_id": { 1298 - "name": "installation_id", 1299 - "type": "integer", 1300 - "primaryKey": false, 1301 - "notNull": false 1302 - }, 1303 - "is_active": { 1304 - "name": "is_active", 1305 - "type": "boolean", 1306 - "primaryKey": false, 1307 - "notNull": false, 1308 - "default": true 1309 - }, 1310 - "created_at": { 1311 - "name": "created_at", 1312 - "type": "timestamp", 1313 - "primaryKey": false, 1314 - "notNull": true, 1315 - "default": "now()" 1316 - }, 1317 - "updated_at": { 1318 - "name": "updated_at", 1319 - "type": "timestamp", 1320 - "primaryKey": false, 1321 - "notNull": true, 1322 - "default": "now()" 1323 - } 1324 - }, 1325 - "indexes": {}, 1326 - "foreignKeys": { 1327 - "github_integration_project_id_project_id_fk": { 1328 - "name": "github_integration_project_id_project_id_fk", 1329 - "tableFrom": "github_integration", 1330 - "tableTo": "project", 1331 - "columnsFrom": [ 1332 - "project_id" 1333 - ], 1334 - "columnsTo": [ 1335 - "id" 1336 - ], 1337 - "onDelete": "cascade", 1338 - "onUpdate": "cascade" 1339 - } 1340 - }, 1341 - "compositePrimaryKeys": {}, 1342 - "uniqueConstraints": { 1343 - "github_integration_project_id_unique": { 1344 - "name": "github_integration_project_id_unique", 1345 - "nullsNotDistinct": false, 1346 - "columns": [ 1347 - "project_id" 1348 - ] 1349 - } 1350 - }, 1351 - "policies": {}, 1352 - "checkConstraints": {}, 1353 - "isRLSEnabled": false 1354 - }, 1355 - "public.integration": { 1356 - "name": "integration", 1357 - "schema": "", 1358 - "columns": { 1359 - "id": { 1360 - "name": "id", 1361 - "type": "text", 1362 - "primaryKey": true, 1363 - "notNull": true 1364 - }, 1365 - "project_id": { 1366 - "name": "project_id", 1367 - "type": "text", 1368 - "primaryKey": false, 1369 - "notNull": true 1370 - }, 1371 - "type": { 1372 - "name": "type", 1373 - "type": "text", 1374 - "primaryKey": false, 1375 - "notNull": true 1376 - }, 1377 - "config": { 1378 - "name": "config", 1379 - "type": "text", 1380 - "primaryKey": false, 1381 - "notNull": true 1382 - }, 1383 - "is_active": { 1384 - "name": "is_active", 1385 - "type": "boolean", 1386 - "primaryKey": false, 1387 - "notNull": false, 1388 - "default": true 1389 - }, 1390 - "created_at": { 1391 - "name": "created_at", 1392 - "type": "timestamp", 1393 - "primaryKey": false, 1394 - "notNull": true, 1395 - "default": "now()" 1396 - }, 1397 - "updated_at": { 1398 - "name": "updated_at", 1399 - "type": "timestamp", 1400 - "primaryKey": false, 1401 - "notNull": true, 1402 - "default": "now()" 1403 - } 1404 - }, 1405 - "indexes": { 1406 - "integration_projectId_idx": { 1407 - "name": "integration_projectId_idx", 1408 - "columns": [ 1409 - { 1410 - "expression": "project_id", 1411 - "isExpression": false, 1412 - "asc": true, 1413 - "nulls": "last" 1414 - } 1415 - ], 1416 - "isUnique": false, 1417 - "concurrently": false, 1418 - "method": "btree", 1419 - "with": {} 1420 - }, 1421 - "integration_type_idx": { 1422 - "name": "integration_type_idx", 1423 - "columns": [ 1424 - { 1425 - "expression": "type", 1426 - "isExpression": false, 1427 - "asc": true, 1428 - "nulls": "last" 1429 - } 1430 - ], 1431 - "isUnique": false, 1432 - "concurrently": false, 1433 - "method": "btree", 1434 - "with": {} 1435 - } 1436 - }, 1437 - "foreignKeys": { 1438 - "integration_project_id_project_id_fk": { 1439 - "name": "integration_project_id_project_id_fk", 1440 - "tableFrom": "integration", 1441 - "tableTo": "project", 1442 - "columnsFrom": [ 1443 - "project_id" 1444 - ], 1445 - "columnsTo": [ 1446 - "id" 1447 - ], 1448 - "onDelete": "cascade", 1449 - "onUpdate": "cascade" 1450 - } 1451 - }, 1452 - "compositePrimaryKeys": {}, 1453 - "uniqueConstraints": { 1454 - "integration_project_type_unique": { 1455 - "name": "integration_project_type_unique", 1456 - "nullsNotDistinct": false, 1457 - "columns": [ 1458 - "project_id", 1459 - "type" 1460 - ] 1461 - } 1462 - }, 1463 - "policies": {}, 1464 - "checkConstraints": {}, 1465 - "isRLSEnabled": false 1466 - }, 1467 - "public.invitation": { 1468 - "name": "invitation", 1469 - "schema": "", 1470 - "columns": { 1471 - "id": { 1472 - "name": "id", 1473 - "type": "text", 1474 - "primaryKey": true, 1475 - "notNull": true 1476 - }, 1477 - "workspace_id": { 1478 - "name": "workspace_id", 1479 - "type": "text", 1480 - "primaryKey": false, 1481 - "notNull": true 1482 - }, 1483 - "email": { 1484 - "name": "email", 1485 - "type": "text", 1486 - "primaryKey": false, 1487 - "notNull": true 1488 - }, 1489 - "role": { 1490 - "name": "role", 1491 - "type": "text", 1492 - "primaryKey": false, 1493 - "notNull": false 1494 - }, 1495 - "team_id": { 1496 - "name": "team_id", 1497 - "type": "text", 1498 - "primaryKey": false, 1499 - "notNull": false 1500 - }, 1501 - "status": { 1502 - "name": "status", 1503 - "type": "text", 1504 - "primaryKey": false, 1505 - "notNull": true, 1506 - "default": "'pending'" 1507 - }, 1508 - "expires_at": { 1509 - "name": "expires_at", 1510 - "type": "timestamp", 1511 - "primaryKey": false, 1512 - "notNull": true 1513 - }, 1514 - "created_at": { 1515 - "name": "created_at", 1516 - "type": "timestamp", 1517 - "primaryKey": false, 1518 - "notNull": true, 1519 - "default": "now()" 1520 - }, 1521 - "inviter_id": { 1522 - "name": "inviter_id", 1523 - "type": "text", 1524 - "primaryKey": false, 1525 - "notNull": true 1526 - } 1527 - }, 1528 - "indexes": { 1529 - "invitation_workspaceId_idx": { 1530 - "name": "invitation_workspaceId_idx", 1531 - "columns": [ 1532 - { 1533 - "expression": "workspace_id", 1534 - "isExpression": false, 1535 - "asc": true, 1536 - "nulls": "last" 1537 - } 1538 - ], 1539 - "isUnique": false, 1540 - "concurrently": false, 1541 - "method": "btree", 1542 - "with": {} 1543 - }, 1544 - "invitation_email_idx": { 1545 - "name": "invitation_email_idx", 1546 - "columns": [ 1547 - { 1548 - "expression": "email", 1549 - "isExpression": false, 1550 - "asc": true, 1551 - "nulls": "last" 1552 - } 1553 - ], 1554 - "isUnique": false, 1555 - "concurrently": false, 1556 - "method": "btree", 1557 - "with": {} 1558 - } 1559 - }, 1560 - "foreignKeys": { 1561 - "invitation_workspace_id_workspace_id_fk": { 1562 - "name": "invitation_workspace_id_workspace_id_fk", 1563 - "tableFrom": "invitation", 1564 - "tableTo": "workspace", 1565 - "columnsFrom": [ 1566 - "workspace_id" 1567 - ], 1568 - "columnsTo": [ 1569 - "id" 1570 - ], 1571 - "onDelete": "cascade", 1572 - "onUpdate": "no action" 1573 - }, 1574 - "invitation_inviter_id_user_id_fk": { 1575 - "name": "invitation_inviter_id_user_id_fk", 1576 - "tableFrom": "invitation", 1577 - "tableTo": "user", 1578 - "columnsFrom": [ 1579 - "inviter_id" 1580 - ], 1581 - "columnsTo": [ 1582 - "id" 1583 - ], 1584 - "onDelete": "cascade", 1585 - "onUpdate": "no action" 1586 - } 1587 - }, 1588 - "compositePrimaryKeys": {}, 1589 - "uniqueConstraints": {}, 1590 - "policies": {}, 1591 - "checkConstraints": {}, 1592 - "isRLSEnabled": false 1593 - }, 1594 - "public.label": { 1595 - "name": "label", 1596 - "schema": "", 1597 - "columns": { 1598 - "id": { 1599 - "name": "id", 1600 - "type": "text", 1601 - "primaryKey": true, 1602 - "notNull": true 1603 - }, 1604 - "name": { 1605 - "name": "name", 1606 - "type": "text", 1607 - "primaryKey": false, 1608 - "notNull": true 1609 - }, 1610 - "color": { 1611 - "name": "color", 1612 - "type": "text", 1613 - "primaryKey": false, 1614 - "notNull": true 1615 - }, 1616 - "created_at": { 1617 - "name": "created_at", 1618 - "type": "timestamp", 1619 - "primaryKey": false, 1620 - "notNull": true, 1621 - "default": "now()" 1622 - }, 1623 - "updated_at": { 1624 - "name": "updated_at", 1625 - "type": "timestamp", 1626 - "primaryKey": false, 1627 - "notNull": true, 1628 - "default": "now()" 1629 - }, 1630 - "task_id": { 1631 - "name": "task_id", 1632 - "type": "text", 1633 - "primaryKey": false, 1634 - "notNull": false 1635 - }, 1636 - "workspace_id": { 1637 - "name": "workspace_id", 1638 - "type": "text", 1639 - "primaryKey": false, 1640 - "notNull": false 1641 - } 1642 - }, 1643 - "indexes": { 1644 - "label_task_id_idx": { 1645 - "name": "label_task_id_idx", 1646 - "columns": [ 1647 - { 1648 - "expression": "task_id", 1649 - "isExpression": false, 1650 - "asc": true, 1651 - "nulls": "last" 1652 - } 1653 - ], 1654 - "isUnique": false, 1655 - "concurrently": false, 1656 - "method": "btree", 1657 - "with": {} 1658 - }, 1659 - "label_workspace_id_idx": { 1660 - "name": "label_workspace_id_idx", 1661 - "columns": [ 1662 - { 1663 - "expression": "workspace_id", 1664 - "isExpression": false, 1665 - "asc": true, 1666 - "nulls": "last" 1667 - } 1668 - ], 1669 - "isUnique": false, 1670 - "concurrently": false, 1671 - "method": "btree", 1672 - "with": {} 1673 - }, 1674 - "label_workspace_name_unique": { 1675 - "name": "label_workspace_name_unique", 1676 - "columns": [ 1677 - { 1678 - "expression": "workspace_id", 1679 - "isExpression": false, 1680 - "asc": true, 1681 - "nulls": "last" 1682 - }, 1683 - { 1684 - "expression": "name", 1685 - "isExpression": false, 1686 - "asc": true, 1687 - "nulls": "last" 1688 - } 1689 - ], 1690 - "isUnique": true, 1691 - "where": "\"label\".\"task_id\" is null", 1692 - "concurrently": false, 1693 - "method": "btree", 1694 - "with": {} 1695 - } 1696 - }, 1697 - "foreignKeys": { 1698 - "label_task_id_task_id_fk": { 1699 - "name": "label_task_id_task_id_fk", 1700 - "tableFrom": "label", 1701 - "tableTo": "task", 1702 - "columnsFrom": [ 1703 - "task_id" 1704 - ], 1705 - "columnsTo": [ 1706 - "id" 1707 - ], 1708 - "onDelete": "cascade", 1709 - "onUpdate": "cascade" 1710 - }, 1711 - "label_workspace_id_workspace_id_fk": { 1712 - "name": "label_workspace_id_workspace_id_fk", 1713 - "tableFrom": "label", 1714 - "tableTo": "workspace", 1715 - "columnsFrom": [ 1716 - "workspace_id" 1717 - ], 1718 - "columnsTo": [ 1719 - "id" 1720 - ], 1721 - "onDelete": "cascade", 1722 - "onUpdate": "cascade" 1723 - } 1724 - }, 1725 - "compositePrimaryKeys": {}, 1726 - "uniqueConstraints": { 1727 - "label_task_name_unique": { 1728 - "name": "label_task_name_unique", 1729 - "nullsNotDistinct": false, 1730 - "columns": [ 1731 - "task_id", 1732 - "name" 1733 - ] 1734 - } 1735 - }, 1736 - "policies": {}, 1737 - "checkConstraints": {}, 1738 - "isRLSEnabled": false 1739 - }, 1740 - "public.notification": { 1741 - "name": "notification", 1742 - "schema": "", 1743 - "columns": { 1744 - "id": { 1745 - "name": "id", 1746 - "type": "text", 1747 - "primaryKey": true, 1748 - "notNull": true 1749 - }, 1750 - "user_id": { 1751 - "name": "user_id", 1752 - "type": "text", 1753 - "primaryKey": false, 1754 - "notNull": true 1755 - }, 1756 - "title": { 1757 - "name": "title", 1758 - "type": "text", 1759 - "primaryKey": false, 1760 - "notNull": false 1761 - }, 1762 - "content": { 1763 - "name": "content", 1764 - "type": "text", 1765 - "primaryKey": false, 1766 - "notNull": false 1767 - }, 1768 - "type": { 1769 - "name": "type", 1770 - "type": "text", 1771 - "primaryKey": false, 1772 - "notNull": true, 1773 - "default": "'info'" 1774 - }, 1775 - "event_data": { 1776 - "name": "event_data", 1777 - "type": "jsonb", 1778 - "primaryKey": false, 1779 - "notNull": false 1780 - }, 1781 - "is_read": { 1782 - "name": "is_read", 1783 - "type": "boolean", 1784 - "primaryKey": false, 1785 - "notNull": false, 1786 - "default": false 1787 - }, 1788 - "resource_id": { 1789 - "name": "resource_id", 1790 - "type": "text", 1791 - "primaryKey": false, 1792 - "notNull": false 1793 - }, 1794 - "resource_type": { 1795 - "name": "resource_type", 1796 - "type": "text", 1797 - "primaryKey": false, 1798 - "notNull": false 1799 - }, 1800 - "created_at": { 1801 - "name": "created_at", 1802 - "type": "timestamp with time zone", 1803 - "primaryKey": false, 1804 - "notNull": true, 1805 - "default": "now()" 1806 - } 1807 - }, 1808 - "indexes": {}, 1809 - "foreignKeys": { 1810 - "notification_user_id_user_id_fk": { 1811 - "name": "notification_user_id_user_id_fk", 1812 - "tableFrom": "notification", 1813 - "tableTo": "user", 1814 - "columnsFrom": [ 1815 - "user_id" 1816 - ], 1817 - "columnsTo": [ 1818 - "id" 1819 - ], 1820 - "onDelete": "cascade", 1821 - "onUpdate": "cascade" 1822 - } 1823 - }, 1824 - "compositePrimaryKeys": {}, 1825 - "uniqueConstraints": {}, 1826 - "policies": {}, 1827 - "checkConstraints": {}, 1828 - "isRLSEnabled": false 1829 - }, 1830 - "public.project": { 1831 - "name": "project", 1832 - "schema": "", 1833 - "columns": { 1834 - "id": { 1835 - "name": "id", 1836 - "type": "text", 1837 - "primaryKey": true, 1838 - "notNull": true 1839 - }, 1840 - "workspace_id": { 1841 - "name": "workspace_id", 1842 - "type": "text", 1843 - "primaryKey": false, 1844 - "notNull": true 1845 - }, 1846 - "slug": { 1847 - "name": "slug", 1848 - "type": "text", 1849 - "primaryKey": false, 1850 - "notNull": true 1851 - }, 1852 - "icon": { 1853 - "name": "icon", 1854 - "type": "text", 1855 - "primaryKey": false, 1856 - "notNull": false, 1857 - "default": "'Layout'" 1858 - }, 1859 - "name": { 1860 - "name": "name", 1861 - "type": "text", 1862 - "primaryKey": false, 1863 - "notNull": true 1864 - }, 1865 - "description": { 1866 - "name": "description", 1867 - "type": "text", 1868 - "primaryKey": false, 1869 - "notNull": false 1870 - }, 1871 - "created_at": { 1872 - "name": "created_at", 1873 - "type": "timestamp", 1874 - "primaryKey": false, 1875 - "notNull": true, 1876 - "default": "now()" 1877 - }, 1878 - "is_public": { 1879 - "name": "is_public", 1880 - "type": "boolean", 1881 - "primaryKey": false, 1882 - "notNull": false, 1883 - "default": false 1884 - }, 1885 - "archived_at": { 1886 - "name": "archived_at", 1887 - "type": "timestamp", 1888 - "primaryKey": false, 1889 - "notNull": false 1890 - } 1891 - }, 1892 - "indexes": {}, 1893 - "foreignKeys": { 1894 - "project_workspace_id_workspace_id_fk": { 1895 - "name": "project_workspace_id_workspace_id_fk", 1896 - "tableFrom": "project", 1897 - "tableTo": "workspace", 1898 - "columnsFrom": [ 1899 - "workspace_id" 1900 - ], 1901 - "columnsTo": [ 1902 - "id" 1903 - ], 1904 - "onDelete": "cascade", 1905 - "onUpdate": "cascade" 1906 - } 1907 - }, 1908 - "compositePrimaryKeys": {}, 1909 - "uniqueConstraints": { 1910 - "project_workspace_id_id_unique": { 1911 - "name": "project_workspace_id_id_unique", 1912 - "nullsNotDistinct": false, 1913 - "columns": [ 1914 - "workspace_id", 1915 - "id" 1916 - ] 1917 - } 1918 - }, 1919 - "policies": {}, 1920 - "checkConstraints": {}, 1921 - "isRLSEnabled": false 1922 - }, 1923 - "public.session": { 1924 - "name": "session", 1925 - "schema": "", 1926 - "columns": { 1927 - "id": { 1928 - "name": "id", 1929 - "type": "text", 1930 - "primaryKey": true, 1931 - "notNull": true 1932 - }, 1933 - "expires_at": { 1934 - "name": "expires_at", 1935 - "type": "timestamp", 1936 - "primaryKey": false, 1937 - "notNull": true 1938 - }, 1939 - "token": { 1940 - "name": "token", 1941 - "type": "text", 1942 - "primaryKey": false, 1943 - "notNull": true 1944 - }, 1945 - "created_at": { 1946 - "name": "created_at", 1947 - "type": "timestamp", 1948 - "primaryKey": false, 1949 - "notNull": true, 1950 - "default": "now()" 1951 - }, 1952 - "updated_at": { 1953 - "name": "updated_at", 1954 - "type": "timestamp", 1955 - "primaryKey": false, 1956 - "notNull": true 1957 - }, 1958 - "ip_address": { 1959 - "name": "ip_address", 1960 - "type": "text", 1961 - "primaryKey": false, 1962 - "notNull": false 1963 - }, 1964 - "user_agent": { 1965 - "name": "user_agent", 1966 - "type": "text", 1967 - "primaryKey": false, 1968 - "notNull": false 1969 - }, 1970 - "user_id": { 1971 - "name": "user_id", 1972 - "type": "text", 1973 - "primaryKey": false, 1974 - "notNull": true 1975 - }, 1976 - "active_organization_id": { 1977 - "name": "active_organization_id", 1978 - "type": "text", 1979 - "primaryKey": false, 1980 - "notNull": false 1981 - }, 1982 - "active_team_id": { 1983 - "name": "active_team_id", 1984 - "type": "text", 1985 - "primaryKey": false, 1986 - "notNull": false 1987 - } 1988 - }, 1989 - "indexes": { 1990 - "session_userId_idx": { 1991 - "name": "session_userId_idx", 1992 - "columns": [ 1993 - { 1994 - "expression": "user_id", 1995 - "isExpression": false, 1996 - "asc": true, 1997 - "nulls": "last" 1998 - } 1999 - ], 2000 - "isUnique": false, 2001 - "concurrently": false, 2002 - "method": "btree", 2003 - "with": {} 2004 - } 2005 - }, 2006 - "foreignKeys": { 2007 - "session_user_id_user_id_fk": { 2008 - "name": "session_user_id_user_id_fk", 2009 - "tableFrom": "session", 2010 - "tableTo": "user", 2011 - "columnsFrom": [ 2012 - "user_id" 2013 - ], 2014 - "columnsTo": [ 2015 - "id" 2016 - ], 2017 - "onDelete": "cascade", 2018 - "onUpdate": "no action" 2019 - } 2020 - }, 2021 - "compositePrimaryKeys": {}, 2022 - "uniqueConstraints": { 2023 - "session_token_unique": { 2024 - "name": "session_token_unique", 2025 - "nullsNotDistinct": false, 2026 - "columns": [ 2027 - "token" 2028 - ] 2029 - } 2030 - }, 2031 - "policies": {}, 2032 - "checkConstraints": {}, 2033 - "isRLSEnabled": false 2034 - }, 2035 - "public.task_relation": { 2036 - "name": "task_relation", 2037 - "schema": "", 2038 - "columns": { 2039 - "id": { 2040 - "name": "id", 2041 - "type": "text", 2042 - "primaryKey": true, 2043 - "notNull": true 2044 - }, 2045 - "source_task_id": { 2046 - "name": "source_task_id", 2047 - "type": "text", 2048 - "primaryKey": false, 2049 - "notNull": true 2050 - }, 2051 - "target_task_id": { 2052 - "name": "target_task_id", 2053 - "type": "text", 2054 - "primaryKey": false, 2055 - "notNull": true 2056 - }, 2057 - "relation_type": { 2058 - "name": "relation_type", 2059 - "type": "text", 2060 - "primaryKey": false, 2061 - "notNull": true 2062 - }, 2063 - "created_at": { 2064 - "name": "created_at", 2065 - "type": "timestamp", 2066 - "primaryKey": false, 2067 - "notNull": true, 2068 - "default": "now()" 2069 - } 2070 - }, 2071 - "indexes": { 2072 - "task_relation_source_idx": { 2073 - "name": "task_relation_source_idx", 2074 - "columns": [ 2075 - { 2076 - "expression": "source_task_id", 2077 - "isExpression": false, 2078 - "asc": true, 2079 - "nulls": "last" 2080 - } 2081 - ], 2082 - "isUnique": false, 2083 - "concurrently": false, 2084 - "method": "btree", 2085 - "with": {} 2086 - }, 2087 - "task_relation_target_idx": { 2088 - "name": "task_relation_target_idx", 2089 - "columns": [ 2090 - { 2091 - "expression": "target_task_id", 2092 - "isExpression": false, 2093 - "asc": true, 2094 - "nulls": "last" 2095 - } 2096 - ], 2097 - "isUnique": false, 2098 - "concurrently": false, 2099 - "method": "btree", 2100 - "with": {} 2101 - } 2102 - }, 2103 - "foreignKeys": { 2104 - "task_relation_source_task_id_task_id_fk": { 2105 - "name": "task_relation_source_task_id_task_id_fk", 2106 - "tableFrom": "task_relation", 2107 - "tableTo": "task", 2108 - "columnsFrom": [ 2109 - "source_task_id" 2110 - ], 2111 - "columnsTo": [ 2112 - "id" 2113 - ], 2114 - "onDelete": "cascade", 2115 - "onUpdate": "cascade" 2116 - }, 2117 - "task_relation_target_task_id_task_id_fk": { 2118 - "name": "task_relation_target_task_id_task_id_fk", 2119 - "tableFrom": "task_relation", 2120 - "tableTo": "task", 2121 - "columnsFrom": [ 2122 - "target_task_id" 2123 - ], 2124 - "columnsTo": [ 2125 - "id" 2126 - ], 2127 - "onDelete": "cascade", 2128 - "onUpdate": "cascade" 2129 - } 2130 - }, 2131 - "compositePrimaryKeys": {}, 2132 - "uniqueConstraints": {}, 2133 - "policies": {}, 2134 - "checkConstraints": {}, 2135 - "isRLSEnabled": false 2136 - }, 2137 - "public.task": { 2138 - "name": "task", 2139 - "schema": "", 2140 - "columns": { 2141 - "id": { 2142 - "name": "id", 2143 - "type": "text", 2144 - "primaryKey": true, 2145 - "notNull": true 2146 - }, 2147 - "project_id": { 2148 - "name": "project_id", 2149 - "type": "text", 2150 - "primaryKey": false, 2151 - "notNull": true 2152 - }, 2153 - "position": { 2154 - "name": "position", 2155 - "type": "integer", 2156 - "primaryKey": false, 2157 - "notNull": false, 2158 - "default": 0 2159 - }, 2160 - "number": { 2161 - "name": "number", 2162 - "type": "integer", 2163 - "primaryKey": false, 2164 - "notNull": false, 2165 - "default": 1 2166 - }, 2167 - "assignee_id": { 2168 - "name": "assignee_id", 2169 - "type": "text", 2170 - "primaryKey": false, 2171 - "notNull": false 2172 - }, 2173 - "title": { 2174 - "name": "title", 2175 - "type": "text", 2176 - "primaryKey": false, 2177 - "notNull": true 2178 - }, 2179 - "description": { 2180 - "name": "description", 2181 - "type": "text", 2182 - "primaryKey": false, 2183 - "notNull": false 2184 - }, 2185 - "status": { 2186 - "name": "status", 2187 - "type": "text", 2188 - "primaryKey": false, 2189 - "notNull": true, 2190 - "default": "'to-do'" 2191 - }, 2192 - "column_id": { 2193 - "name": "column_id", 2194 - "type": "text", 2195 - "primaryKey": false, 2196 - "notNull": false 2197 - }, 2198 - "priority": { 2199 - "name": "priority", 2200 - "type": "text", 2201 - "primaryKey": false, 2202 - "notNull": false, 2203 - "default": "'low'" 2204 - }, 2205 - "start_date": { 2206 - "name": "start_date", 2207 - "type": "timestamp", 2208 - "primaryKey": false, 2209 - "notNull": false 2210 - }, 2211 - "due_date": { 2212 - "name": "due_date", 2213 - "type": "timestamp", 2214 - "primaryKey": false, 2215 - "notNull": false 2216 - }, 2217 - "created_at": { 2218 - "name": "created_at", 2219 - "type": "timestamp", 2220 - "primaryKey": false, 2221 - "notNull": true, 2222 - "default": "now()" 2223 - }, 2224 - "updated_at": { 2225 - "name": "updated_at", 2226 - "type": "timestamp", 2227 - "primaryKey": false, 2228 - "notNull": true, 2229 - "default": "now()" 2230 - } 2231 - }, 2232 - "indexes": { 2233 - "task_projectId_idx": { 2234 - "name": "task_projectId_idx", 2235 - "columns": [ 2236 - { 2237 - "expression": "project_id", 2238 - "isExpression": false, 2239 - "asc": true, 2240 - "nulls": "last" 2241 - } 2242 - ], 2243 - "isUnique": false, 2244 - "concurrently": false, 2245 - "method": "btree", 2246 - "with": {} 2247 - } 2248 - }, 2249 - "foreignKeys": { 2250 - "task_project_id_project_id_fk": { 2251 - "name": "task_project_id_project_id_fk", 2252 - "tableFrom": "task", 2253 - "tableTo": "project", 2254 - "columnsFrom": [ 2255 - "project_id" 2256 - ], 2257 - "columnsTo": [ 2258 - "id" 2259 - ], 2260 - "onDelete": "cascade", 2261 - "onUpdate": "cascade" 2262 - }, 2263 - "task_assignee_id_user_id_fk": { 2264 - "name": "task_assignee_id_user_id_fk", 2265 - "tableFrom": "task", 2266 - "tableTo": "user", 2267 - "columnsFrom": [ 2268 - "assignee_id" 2269 - ], 2270 - "columnsTo": [ 2271 - "id" 2272 - ], 2273 - "onDelete": "cascade", 2274 - "onUpdate": "cascade" 2275 - }, 2276 - "task_column_id_column_id_fk": { 2277 - "name": "task_column_id_column_id_fk", 2278 - "tableFrom": "task", 2279 - "tableTo": "column", 2280 - "columnsFrom": [ 2281 - "column_id" 2282 - ], 2283 - "columnsTo": [ 2284 - "id" 2285 - ], 2286 - "onDelete": "set null", 2287 - "onUpdate": "cascade" 2288 - } 2289 - }, 2290 - "compositePrimaryKeys": {}, 2291 - "uniqueConstraints": { 2292 - "task_project_number_unique": { 2293 - "name": "task_project_number_unique", 2294 - "nullsNotDistinct": false, 2295 - "columns": [ 2296 - "project_id", 2297 - "number" 2298 - ] 2299 - } 2300 - }, 2301 - "policies": {}, 2302 - "checkConstraints": {}, 2303 - "isRLSEnabled": false 2304 - }, 2305 - "public.team": { 2306 - "name": "team", 2307 - "schema": "", 2308 - "columns": { 2309 - "id": { 2310 - "name": "id", 2311 - "type": "text", 2312 - "primaryKey": true, 2313 - "notNull": true 2314 - }, 2315 - "name": { 2316 - "name": "name", 2317 - "type": "text", 2318 - "primaryKey": false, 2319 - "notNull": true 2320 - }, 2321 - "workspace_id": { 2322 - "name": "workspace_id", 2323 - "type": "text", 2324 - "primaryKey": false, 2325 - "notNull": true 2326 - }, 2327 - "created_at": { 2328 - "name": "created_at", 2329 - "type": "timestamp", 2330 - "primaryKey": false, 2331 - "notNull": true 2332 - }, 2333 - "updated_at": { 2334 - "name": "updated_at", 2335 - "type": "timestamp", 2336 - "primaryKey": false, 2337 - "notNull": false 2338 - } 2339 - }, 2340 - "indexes": { 2341 - "team_workspaceId_idx": { 2342 - "name": "team_workspaceId_idx", 2343 - "columns": [ 2344 - { 2345 - "expression": "workspace_id", 2346 - "isExpression": false, 2347 - "asc": true, 2348 - "nulls": "last" 2349 - } 2350 - ], 2351 - "isUnique": false, 2352 - "concurrently": false, 2353 - "method": "btree", 2354 - "with": {} 2355 - } 2356 - }, 2357 - "foreignKeys": { 2358 - "team_workspace_id_workspace_id_fk": { 2359 - "name": "team_workspace_id_workspace_id_fk", 2360 - "tableFrom": "team", 2361 - "tableTo": "workspace", 2362 - "columnsFrom": [ 2363 - "workspace_id" 2364 - ], 2365 - "columnsTo": [ 2366 - "id" 2367 - ], 2368 - "onDelete": "cascade", 2369 - "onUpdate": "no action" 2370 - } 2371 - }, 2372 - "compositePrimaryKeys": {}, 2373 - "uniqueConstraints": {}, 2374 - "policies": {}, 2375 - "checkConstraints": {}, 2376 - "isRLSEnabled": false 2377 - }, 2378 - "public.team_member": { 2379 - "name": "team_member", 2380 - "schema": "", 2381 - "columns": { 2382 - "id": { 2383 - "name": "id", 2384 - "type": "text", 2385 - "primaryKey": true, 2386 - "notNull": true 2387 - }, 2388 - "team_id": { 2389 - "name": "team_id", 2390 - "type": "text", 2391 - "primaryKey": false, 2392 - "notNull": true 2393 - }, 2394 - "user_id": { 2395 - "name": "user_id", 2396 - "type": "text", 2397 - "primaryKey": false, 2398 - "notNull": true 2399 - }, 2400 - "created_at": { 2401 - "name": "created_at", 2402 - "type": "timestamp", 2403 - "primaryKey": false, 2404 - "notNull": false 2405 - } 2406 - }, 2407 - "indexes": { 2408 - "teamMember_teamId_idx": { 2409 - "name": "teamMember_teamId_idx", 2410 - "columns": [ 2411 - { 2412 - "expression": "team_id", 2413 - "isExpression": false, 2414 - "asc": true, 2415 - "nulls": "last" 2416 - } 2417 - ], 2418 - "isUnique": false, 2419 - "concurrently": false, 2420 - "method": "btree", 2421 - "with": {} 2422 - }, 2423 - "teamMember_userId_idx": { 2424 - "name": "teamMember_userId_idx", 2425 - "columns": [ 2426 - { 2427 - "expression": "user_id", 2428 - "isExpression": false, 2429 - "asc": true, 2430 - "nulls": "last" 2431 - } 2432 - ], 2433 - "isUnique": false, 2434 - "concurrently": false, 2435 - "method": "btree", 2436 - "with": {} 2437 - } 2438 - }, 2439 - "foreignKeys": { 2440 - "team_member_team_id_team_id_fk": { 2441 - "name": "team_member_team_id_team_id_fk", 2442 - "tableFrom": "team_member", 2443 - "tableTo": "team", 2444 - "columnsFrom": [ 2445 - "team_id" 2446 - ], 2447 - "columnsTo": [ 2448 - "id" 2449 - ], 2450 - "onDelete": "cascade", 2451 - "onUpdate": "no action" 2452 - }, 2453 - "team_member_user_id_user_id_fk": { 2454 - "name": "team_member_user_id_user_id_fk", 2455 - "tableFrom": "team_member", 2456 - "tableTo": "user", 2457 - "columnsFrom": [ 2458 - "user_id" 2459 - ], 2460 - "columnsTo": [ 2461 - "id" 2462 - ], 2463 - "onDelete": "cascade", 2464 - "onUpdate": "no action" 2465 - } 2466 - }, 2467 - "compositePrimaryKeys": {}, 2468 - "uniqueConstraints": {}, 2469 - "policies": {}, 2470 - "checkConstraints": {}, 2471 - "isRLSEnabled": false 2472 - }, 2473 - "public.time_entry": { 2474 - "name": "time_entry", 2475 - "schema": "", 2476 - "columns": { 2477 - "id": { 2478 - "name": "id", 2479 - "type": "text", 2480 - "primaryKey": true, 2481 - "notNull": true 2482 - }, 2483 - "task_id": { 2484 - "name": "task_id", 2485 - "type": "text", 2486 - "primaryKey": false, 2487 - "notNull": true 2488 - }, 2489 - "user_id": { 2490 - "name": "user_id", 2491 - "type": "text", 2492 - "primaryKey": false, 2493 - "notNull": false 2494 - }, 2495 - "description": { 2496 - "name": "description", 2497 - "type": "text", 2498 - "primaryKey": false, 2499 - "notNull": false 2500 - }, 2501 - "start_time": { 2502 - "name": "start_time", 2503 - "type": "timestamp", 2504 - "primaryKey": false, 2505 - "notNull": true 2506 - }, 2507 - "end_time": { 2508 - "name": "end_time", 2509 - "type": "timestamp", 2510 - "primaryKey": false, 2511 - "notNull": false 2512 - }, 2513 - "duration": { 2514 - "name": "duration", 2515 - "type": "integer", 2516 - "primaryKey": false, 2517 - "notNull": false, 2518 - "default": 0 2519 - }, 2520 - "created_at": { 2521 - "name": "created_at", 2522 - "type": "timestamp", 2523 - "primaryKey": false, 2524 - "notNull": true, 2525 - "default": "now()" 2526 - } 2527 - }, 2528 - "indexes": {}, 2529 - "foreignKeys": { 2530 - "time_entry_task_id_task_id_fk": { 2531 - "name": "time_entry_task_id_task_id_fk", 2532 - "tableFrom": "time_entry", 2533 - "tableTo": "task", 2534 - "columnsFrom": [ 2535 - "task_id" 2536 - ], 2537 - "columnsTo": [ 2538 - "id" 2539 - ], 2540 - "onDelete": "cascade", 2541 - "onUpdate": "cascade" 2542 - }, 2543 - "time_entry_user_id_user_id_fk": { 2544 - "name": "time_entry_user_id_user_id_fk", 2545 - "tableFrom": "time_entry", 2546 - "tableTo": "user", 2547 - "columnsFrom": [ 2548 - "user_id" 2549 - ], 2550 - "columnsTo": [ 2551 - "id" 2552 - ], 2553 - "onDelete": "cascade", 2554 - "onUpdate": "cascade" 2555 - } 2556 - }, 2557 - "compositePrimaryKeys": {}, 2558 - "uniqueConstraints": {}, 2559 - "policies": {}, 2560 - "checkConstraints": {}, 2561 - "isRLSEnabled": false 2562 - }, 2563 - "public.user": { 2564 - "name": "user", 2565 - "schema": "", 2566 - "columns": { 2567 - "id": { 2568 - "name": "id", 2569 - "type": "text", 2570 - "primaryKey": true, 2571 - "notNull": true 2572 - }, 2573 - "name": { 2574 - "name": "name", 2575 - "type": "text", 2576 - "primaryKey": false, 2577 - "notNull": true 2578 - }, 2579 - "email": { 2580 - "name": "email", 2581 - "type": "text", 2582 - "primaryKey": false, 2583 - "notNull": true 2584 - }, 2585 - "email_verified": { 2586 - "name": "email_verified", 2587 - "type": "boolean", 2588 - "primaryKey": false, 2589 - "notNull": true 2590 - }, 2591 - "image": { 2592 - "name": "image", 2593 - "type": "text", 2594 - "primaryKey": false, 2595 - "notNull": false 2596 - }, 2597 - "locale": { 2598 - "name": "locale", 2599 - "type": "text", 2600 - "primaryKey": false, 2601 - "notNull": false 2602 - }, 2603 - "created_at": { 2604 - "name": "created_at", 2605 - "type": "timestamp", 2606 - "primaryKey": false, 2607 - "notNull": true, 2608 - "default": "now()" 2609 - }, 2610 - "updated_at": { 2611 - "name": "updated_at", 2612 - "type": "timestamp", 2613 - "primaryKey": false, 2614 - "notNull": true, 2615 - "default": "now()" 2616 - }, 2617 - "is_anonymous": { 2618 - "name": "is_anonymous", 2619 - "type": "boolean", 2620 - "primaryKey": false, 2621 - "notNull": false, 2622 - "default": false 2623 - } 2624 - }, 2625 - "indexes": {}, 2626 - "foreignKeys": {}, 2627 - "compositePrimaryKeys": {}, 2628 - "uniqueConstraints": { 2629 - "user_email_unique": { 2630 - "name": "user_email_unique", 2631 - "nullsNotDistinct": false, 2632 - "columns": [ 2633 - "email" 2634 - ] 2635 - } 2636 - }, 2637 - "policies": {}, 2638 - "checkConstraints": {}, 2639 - "isRLSEnabled": false 2640 - }, 2641 - "public.user_notification_preference": { 2642 - "name": "user_notification_preference", 2643 - "schema": "", 2644 - "columns": { 2645 - "id": { 2646 - "name": "id", 2647 - "type": "text", 2648 - "primaryKey": true, 2649 - "notNull": true 2650 - }, 2651 - "user_id": { 2652 - "name": "user_id", 2653 - "type": "text", 2654 - "primaryKey": false, 2655 - "notNull": true 2656 - }, 2657 - "email_enabled": { 2658 - "name": "email_enabled", 2659 - "type": "boolean", 2660 - "primaryKey": false, 2661 - "notNull": true, 2662 - "default": false 2663 - }, 2664 - "ntfy_enabled": { 2665 - "name": "ntfy_enabled", 2666 - "type": "boolean", 2667 - "primaryKey": false, 2668 - "notNull": true, 2669 - "default": false 2670 - }, 2671 - "ntfy_server_url": { 2672 - "name": "ntfy_server_url", 2673 - "type": "text", 2674 - "primaryKey": false, 2675 - "notNull": false 2676 - }, 2677 - "ntfy_topic": { 2678 - "name": "ntfy_topic", 2679 - "type": "text", 2680 - "primaryKey": false, 2681 - "notNull": false 2682 - }, 2683 - "ntfy_token": { 2684 - "name": "ntfy_token", 2685 - "type": "text", 2686 - "primaryKey": false, 2687 - "notNull": false 2688 - }, 2689 - "gotify_enabled": { 2690 - "name": "gotify_enabled", 2691 - "type": "boolean", 2692 - "primaryKey": false, 2693 - "notNull": true, 2694 - "default": false 2695 - }, 2696 - "gotify_server_url": { 2697 - "name": "gotify_server_url", 2698 - "type": "text", 2699 - "primaryKey": false, 2700 - "notNull": false 2701 - }, 2702 - "gotify_token": { 2703 - "name": "gotify_token", 2704 - "type": "text", 2705 - "primaryKey": false, 2706 - "notNull": false 2707 - }, 2708 - "webhook_enabled": { 2709 - "name": "webhook_enabled", 2710 - "type": "boolean", 2711 - "primaryKey": false, 2712 - "notNull": true, 2713 - "default": false 2714 - }, 2715 - "webhook_url": { 2716 - "name": "webhook_url", 2717 - "type": "text", 2718 - "primaryKey": false, 2719 - "notNull": false 2720 - }, 2721 - "webhook_secret": { 2722 - "name": "webhook_secret", 2723 - "type": "text", 2724 - "primaryKey": false, 2725 - "notNull": false 2726 - }, 2727 - "created_at": { 2728 - "name": "created_at", 2729 - "type": "timestamp", 2730 - "primaryKey": false, 2731 - "notNull": true, 2732 - "default": "now()" 2733 - }, 2734 - "updated_at": { 2735 - "name": "updated_at", 2736 - "type": "timestamp", 2737 - "primaryKey": false, 2738 - "notNull": true, 2739 - "default": "now()" 2740 - } 2741 - }, 2742 - "indexes": {}, 2743 - "foreignKeys": { 2744 - "user_notification_preference_user_id_user_id_fk": { 2745 - "name": "user_notification_preference_user_id_user_id_fk", 2746 - "tableFrom": "user_notification_preference", 2747 - "tableTo": "user", 2748 - "columnsFrom": [ 2749 - "user_id" 2750 - ], 2751 - "columnsTo": [ 2752 - "id" 2753 - ], 2754 - "onDelete": "cascade", 2755 - "onUpdate": "cascade" 2756 - } 2757 - }, 2758 - "compositePrimaryKeys": {}, 2759 - "uniqueConstraints": { 2760 - "user_notification_preference_user_id_unique": { 2761 - "name": "user_notification_preference_user_id_unique", 2762 - "nullsNotDistinct": false, 2763 - "columns": [ 2764 - "user_id" 2765 - ] 2766 - } 2767 - }, 2768 - "policies": {}, 2769 - "checkConstraints": {}, 2770 - "isRLSEnabled": false 2771 - }, 2772 - "public.user_notification_workspace_project": { 2773 - "name": "user_notification_workspace_project", 2774 - "schema": "", 2775 - "columns": { 2776 - "id": { 2777 - "name": "id", 2778 - "type": "text", 2779 - "primaryKey": true, 2780 - "notNull": true 2781 - }, 2782 - "workspace_id": { 2783 - "name": "workspace_id", 2784 - "type": "text", 2785 - "primaryKey": false, 2786 - "notNull": true 2787 - }, 2788 - "workspace_rule_id": { 2789 - "name": "workspace_rule_id", 2790 - "type": "text", 2791 - "primaryKey": false, 2792 - "notNull": true 2793 - }, 2794 - "project_id": { 2795 - "name": "project_id", 2796 - "type": "text", 2797 - "primaryKey": false, 2798 - "notNull": true 2799 - }, 2800 - "created_at": { 2801 - "name": "created_at", 2802 - "type": "timestamp", 2803 - "primaryKey": false, 2804 - "notNull": true, 2805 - "default": "now()" 2806 - }, 2807 - "updated_at": { 2808 - "name": "updated_at", 2809 - "type": "timestamp", 2810 - "primaryKey": false, 2811 - "notNull": true, 2812 - "default": "now()" 2813 - } 2814 - }, 2815 - "indexes": { 2816 - "user_notification_workspace_project_ruleId_idx": { 2817 - "name": "user_notification_workspace_project_ruleId_idx", 2818 - "columns": [ 2819 - { 2820 - "expression": "workspace_rule_id", 2821 - "isExpression": false, 2822 - "asc": true, 2823 - "nulls": "last" 2824 - } 2825 - ], 2826 - "isUnique": false, 2827 - "concurrently": false, 2828 - "method": "btree", 2829 - "with": {} 2830 - }, 2831 - "user_notification_workspace_project_projectId_idx": { 2832 - "name": "user_notification_workspace_project_projectId_idx", 2833 - "columns": [ 2834 - { 2835 - "expression": "project_id", 2836 - "isExpression": false, 2837 - "asc": true, 2838 - "nulls": "last" 2839 - } 2840 - ], 2841 - "isUnique": false, 2842 - "concurrently": false, 2843 - "method": "btree", 2844 - "with": {} 2845 - } 2846 - }, 2847 - "foreignKeys": { 2848 - "user_notification_workspace_project_workspace_id_workspace_id_fk": { 2849 - "name": "user_notification_workspace_project_workspace_id_workspace_id_fk", 2850 - "tableFrom": "user_notification_workspace_project", 2851 - "tableTo": "workspace", 2852 - "columnsFrom": [ 2853 - "workspace_id" 2854 - ], 2855 - "columnsTo": [ 2856 - "id" 2857 - ], 2858 - "onDelete": "cascade", 2859 - "onUpdate": "cascade" 2860 - }, 2861 - "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk": { 2862 - "name": "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk", 2863 - "tableFrom": "user_notification_workspace_project", 2864 - "tableTo": "user_notification_workspace_rule", 2865 - "columnsFrom": [ 2866 - "workspace_id", 2867 - "workspace_rule_id" 2868 - ], 2869 - "columnsTo": [ 2870 - "workspace_id", 2871 - "id" 2872 - ], 2873 - "onDelete": "cascade", 2874 - "onUpdate": "cascade" 2875 - }, 2876 - "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk": { 2877 - "name": "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk", 2878 - "tableFrom": "user_notification_workspace_project", 2879 - "tableTo": "project", 2880 - "columnsFrom": [ 2881 - "workspace_id", 2882 - "project_id" 2883 - ], 2884 - "columnsTo": [ 2885 - "workspace_id", 2886 - "id" 2887 - ], 2888 - "onDelete": "cascade", 2889 - "onUpdate": "cascade" 2890 - } 2891 - }, 2892 - "compositePrimaryKeys": {}, 2893 - "uniqueConstraints": { 2894 - "user_notification_workspace_project_rule_project_unique": { 2895 - "name": "user_notification_workspace_project_rule_project_unique", 2896 - "nullsNotDistinct": false, 2897 - "columns": [ 2898 - "workspace_rule_id", 2899 - "project_id" 2900 - ] 2901 - } 2902 - }, 2903 - "policies": {}, 2904 - "checkConstraints": {}, 2905 - "isRLSEnabled": false 2906 - }, 2907 - "public.user_notification_workspace_rule": { 2908 - "name": "user_notification_workspace_rule", 2909 - "schema": "", 2910 - "columns": { 2911 - "id": { 2912 - "name": "id", 2913 - "type": "text", 2914 - "primaryKey": true, 2915 - "notNull": true 2916 - }, 2917 - "user_id": { 2918 - "name": "user_id", 2919 - "type": "text", 2920 - "primaryKey": false, 2921 - "notNull": true 2922 - }, 2923 - "workspace_id": { 2924 - "name": "workspace_id", 2925 - "type": "text", 2926 - "primaryKey": false, 2927 - "notNull": true 2928 - }, 2929 - "is_active": { 2930 - "name": "is_active", 2931 - "type": "boolean", 2932 - "primaryKey": false, 2933 - "notNull": true, 2934 - "default": true 2935 - }, 2936 - "email_enabled": { 2937 - "name": "email_enabled", 2938 - "type": "boolean", 2939 - "primaryKey": false, 2940 - "notNull": true, 2941 - "default": false 2942 - }, 2943 - "ntfy_enabled": { 2944 - "name": "ntfy_enabled", 2945 - "type": "boolean", 2946 - "primaryKey": false, 2947 - "notNull": true, 2948 - "default": false 2949 - }, 2950 - "gotify_enabled": { 2951 - "name": "gotify_enabled", 2952 - "type": "boolean", 2953 - "primaryKey": false, 2954 - "notNull": true, 2955 - "default": false 2956 - }, 2957 - "webhook_enabled": { 2958 - "name": "webhook_enabled", 2959 - "type": "boolean", 2960 - "primaryKey": false, 2961 - "notNull": true, 2962 - "default": false 2963 - }, 2964 - "project_mode": { 2965 - "name": "project_mode", 2966 - "type": "text", 2967 - "primaryKey": false, 2968 - "notNull": true, 2969 - "default": "'all'" 2970 - }, 2971 - "created_at": { 2972 - "name": "created_at", 2973 - "type": "timestamp", 2974 - "primaryKey": false, 2975 - "notNull": true, 2976 - "default": "now()" 2977 - }, 2978 - "updated_at": { 2979 - "name": "updated_at", 2980 - "type": "timestamp", 2981 - "primaryKey": false, 2982 - "notNull": true, 2983 - "default": "now()" 2984 - } 2985 - }, 2986 - "indexes": { 2987 - "user_notification_workspace_rule_userId_idx": { 2988 - "name": "user_notification_workspace_rule_userId_idx", 2989 - "columns": [ 2990 - { 2991 - "expression": "user_id", 2992 - "isExpression": false, 2993 - "asc": true, 2994 - "nulls": "last" 2995 - } 2996 - ], 2997 - "isUnique": false, 2998 - "concurrently": false, 2999 - "method": "btree", 3000 - "with": {} 3001 - }, 3002 - "user_notification_workspace_rule_workspaceId_idx": { 3003 - "name": "user_notification_workspace_rule_workspaceId_idx", 3004 - "columns": [ 3005 - { 3006 - "expression": "workspace_id", 3007 - "isExpression": false, 3008 - "asc": true, 3009 - "nulls": "last" 3010 - } 3011 - ], 3012 - "isUnique": false, 3013 - "concurrently": false, 3014 - "method": "btree", 3015 - "with": {} 3016 - } 3017 - }, 3018 - "foreignKeys": { 3019 - "user_notification_workspace_rule_user_id_user_id_fk": { 3020 - "name": "user_notification_workspace_rule_user_id_user_id_fk", 3021 - "tableFrom": "user_notification_workspace_rule", 3022 - "tableTo": "user", 3023 - "columnsFrom": [ 3024 - "user_id" 3025 - ], 3026 - "columnsTo": [ 3027 - "id" 3028 - ], 3029 - "onDelete": "cascade", 3030 - "onUpdate": "cascade" 3031 - }, 3032 - "user_notification_workspace_rule_workspace_id_workspace_id_fk": { 3033 - "name": "user_notification_workspace_rule_workspace_id_workspace_id_fk", 3034 - "tableFrom": "user_notification_workspace_rule", 3035 - "tableTo": "workspace", 3036 - "columnsFrom": [ 3037 - "workspace_id" 3038 - ], 3039 - "columnsTo": [ 3040 - "id" 3041 - ], 3042 - "onDelete": "cascade", 3043 - "onUpdate": "cascade" 3044 - } 3045 - }, 3046 - "compositePrimaryKeys": {}, 3047 - "uniqueConstraints": { 3048 - "user_notification_workspace_rule_user_workspace_unique": { 3049 - "name": "user_notification_workspace_rule_user_workspace_unique", 3050 - "nullsNotDistinct": false, 3051 - "columns": [ 3052 - "user_id", 3053 - "workspace_id" 3054 - ] 3055 - }, 3056 - "user_notification_workspace_rule_workspace_id_id_unique": { 3057 - "name": "user_notification_workspace_rule_workspace_id_id_unique", 3058 - "nullsNotDistinct": false, 3059 - "columns": [ 3060 - "workspace_id", 3061 - "id" 3062 - ] 3063 - } 3064 - }, 3065 - "policies": {}, 3066 - "checkConstraints": {}, 3067 - "isRLSEnabled": false 3068 - }, 3069 - "public.verification": { 3070 - "name": "verification", 3071 - "schema": "", 3072 - "columns": { 3073 - "id": { 3074 - "name": "id", 3075 - "type": "text", 3076 - "primaryKey": true, 3077 - "notNull": true 3078 - }, 3079 - "identifier": { 3080 - "name": "identifier", 3081 - "type": "text", 3082 - "primaryKey": false, 3083 - "notNull": true 3084 - }, 3085 - "value": { 3086 - "name": "value", 3087 - "type": "text", 3088 - "primaryKey": false, 3089 - "notNull": true 3090 - }, 3091 - "expires_at": { 3092 - "name": "expires_at", 3093 - "type": "timestamp", 3094 - "primaryKey": false, 3095 - "notNull": true 3096 - }, 3097 - "created_at": { 3098 - "name": "created_at", 3099 - "type": "timestamp", 3100 - "primaryKey": false, 3101 - "notNull": true, 3102 - "default": "now()" 3103 - }, 3104 - "updated_at": { 3105 - "name": "updated_at", 3106 - "type": "timestamp", 3107 - "primaryKey": false, 3108 - "notNull": true, 3109 - "default": "now()" 3110 - } 3111 - }, 3112 - "indexes": { 3113 - "verification_identifier_idx": { 3114 - "name": "verification_identifier_idx", 3115 - "columns": [ 3116 - { 3117 - "expression": "identifier", 3118 - "isExpression": false, 3119 - "asc": true, 3120 - "nulls": "last" 3121 - } 3122 - ], 3123 - "isUnique": false, 3124 - "concurrently": false, 3125 - "method": "btree", 3126 - "with": {} 3127 - } 3128 - }, 3129 - "foreignKeys": {}, 3130 - "compositePrimaryKeys": {}, 3131 - "uniqueConstraints": {}, 3132 - "policies": {}, 3133 - "checkConstraints": {}, 3134 - "isRLSEnabled": false 3135 - }, 3136 - "public.workflow_rule": { 3137 - "name": "workflow_rule", 3138 - "schema": "", 3139 - "columns": { 3140 - "id": { 3141 - "name": "id", 3142 - "type": "text", 3143 - "primaryKey": true, 3144 - "notNull": true 3145 - }, 3146 - "project_id": { 3147 - "name": "project_id", 3148 - "type": "text", 3149 - "primaryKey": false, 3150 - "notNull": true 3151 - }, 3152 - "integration_type": { 3153 - "name": "integration_type", 3154 - "type": "text", 3155 - "primaryKey": false, 3156 - "notNull": true 3157 - }, 3158 - "event_type": { 3159 - "name": "event_type", 3160 - "type": "text", 3161 - "primaryKey": false, 3162 - "notNull": true 3163 - }, 3164 - "column_id": { 3165 - "name": "column_id", 3166 - "type": "text", 3167 - "primaryKey": false, 3168 - "notNull": true 3169 - }, 3170 - "created_at": { 3171 - "name": "created_at", 3172 - "type": "timestamp", 3173 - "primaryKey": false, 3174 - "notNull": true, 3175 - "default": "now()" 3176 - }, 3177 - "updated_at": { 3178 - "name": "updated_at", 3179 - "type": "timestamp", 3180 - "primaryKey": false, 3181 - "notNull": true, 3182 - "default": "now()" 3183 - } 3184 - }, 3185 - "indexes": { 3186 - "workflow_rule_projectId_idx": { 3187 - "name": "workflow_rule_projectId_idx", 3188 - "columns": [ 3189 - { 3190 - "expression": "project_id", 3191 - "isExpression": false, 3192 - "asc": true, 3193 - "nulls": "last" 3194 - } 3195 - ], 3196 - "isUnique": false, 3197 - "concurrently": false, 3198 - "method": "btree", 3199 - "with": {} 3200 - } 3201 - }, 3202 - "foreignKeys": { 3203 - "workflow_rule_project_id_project_id_fk": { 3204 - "name": "workflow_rule_project_id_project_id_fk", 3205 - "tableFrom": "workflow_rule", 3206 - "tableTo": "project", 3207 - "columnsFrom": [ 3208 - "project_id" 3209 - ], 3210 - "columnsTo": [ 3211 - "id" 3212 - ], 3213 - "onDelete": "cascade", 3214 - "onUpdate": "cascade" 3215 - }, 3216 - "workflow_rule_column_id_column_id_fk": { 3217 - "name": "workflow_rule_column_id_column_id_fk", 3218 - "tableFrom": "workflow_rule", 3219 - "tableTo": "column", 3220 - "columnsFrom": [ 3221 - "column_id" 3222 - ], 3223 - "columnsTo": [ 3224 - "id" 3225 - ], 3226 - "onDelete": "cascade", 3227 - "onUpdate": "cascade" 3228 - } 3229 - }, 3230 - "compositePrimaryKeys": {}, 3231 - "uniqueConstraints": {}, 3232 - "policies": {}, 3233 - "checkConstraints": {}, 3234 - "isRLSEnabled": false 3235 - }, 3236 - "public.workspace": { 3237 - "name": "workspace", 3238 - "schema": "", 3239 - "columns": { 3240 - "id": { 3241 - "name": "id", 3242 - "type": "text", 3243 - "primaryKey": true, 3244 - "notNull": true 3245 - }, 3246 - "name": { 3247 - "name": "name", 3248 - "type": "text", 3249 - "primaryKey": false, 3250 - "notNull": true 3251 - }, 3252 - "slug": { 3253 - "name": "slug", 3254 - "type": "text", 3255 - "primaryKey": false, 3256 - "notNull": true 3257 - }, 3258 - "logo": { 3259 - "name": "logo", 3260 - "type": "text", 3261 - "primaryKey": false, 3262 - "notNull": false 3263 - }, 3264 - "metadata": { 3265 - "name": "metadata", 3266 - "type": "text", 3267 - "primaryKey": false, 3268 - "notNull": false 3269 - }, 3270 - "description": { 3271 - "name": "description", 3272 - "type": "text", 3273 - "primaryKey": false, 3274 - "notNull": false 3275 - }, 3276 - "created_at": { 3277 - "name": "created_at", 3278 - "type": "timestamp", 3279 - "primaryKey": false, 3280 - "notNull": true 3281 - } 3282 - }, 3283 - "indexes": {}, 3284 - "foreignKeys": {}, 3285 - "compositePrimaryKeys": {}, 3286 - "uniqueConstraints": { 3287 - "workspace_slug_unique": { 3288 - "name": "workspace_slug_unique", 3289 - "nullsNotDistinct": false, 3290 - "columns": [ 3291 - "slug" 3292 - ] 3293 - } 3294 - }, 3295 - "policies": {}, 3296 - "checkConstraints": {}, 3297 - "isRLSEnabled": false 3298 - }, 3299 - "public.workspace_member": { 3300 - "name": "workspace_member", 3301 - "schema": "", 3302 - "columns": { 3303 - "id": { 3304 - "name": "id", 3305 - "type": "text", 3306 - "primaryKey": true, 3307 - "notNull": true 3308 - }, 3309 - "workspace_id": { 3310 - "name": "workspace_id", 3311 - "type": "text", 3312 - "primaryKey": false, 3313 - "notNull": true 3314 - }, 3315 - "user_id": { 3316 - "name": "user_id", 3317 - "type": "text", 3318 - "primaryKey": false, 3319 - "notNull": true 3320 - }, 3321 - "role": { 3322 - "name": "role", 3323 - "type": "text", 3324 - "primaryKey": false, 3325 - "notNull": true, 3326 - "default": "'member'" 3327 - }, 3328 - "joined_at": { 3329 - "name": "joined_at", 3330 - "type": "timestamp", 3331 - "primaryKey": false, 3332 - "notNull": true 3333 - } 3334 - }, 3335 - "indexes": { 3336 - "workspace_member_workspaceId_idx": { 3337 - "name": "workspace_member_workspaceId_idx", 3338 - "columns": [ 3339 - { 3340 - "expression": "workspace_id", 3341 - "isExpression": false, 3342 - "asc": true, 3343 - "nulls": "last" 3344 - } 3345 - ], 3346 - "isUnique": false, 3347 - "concurrently": false, 3348 - "method": "btree", 3349 - "with": {} 3350 - }, 3351 - "workspace_member_userId_idx": { 3352 - "name": "workspace_member_userId_idx", 3353 - "columns": [ 3354 - { 3355 - "expression": "user_id", 3356 - "isExpression": false, 3357 - "asc": true, 3358 - "nulls": "last" 3359 - } 3360 - ], 3361 - "isUnique": false, 3362 - "concurrently": false, 3363 - "method": "btree", 3364 - "with": {} 3365 - } 3366 - }, 3367 - "foreignKeys": { 3368 - "workspace_member_workspace_id_workspace_id_fk": { 3369 - "name": "workspace_member_workspace_id_workspace_id_fk", 3370 - "tableFrom": "workspace_member", 3371 - "tableTo": "workspace", 3372 - "columnsFrom": [ 3373 - "workspace_id" 3374 - ], 3375 - "columnsTo": [ 3376 - "id" 3377 - ], 3378 - "onDelete": "cascade", 3379 - "onUpdate": "no action" 3380 - }, 3381 - "workspace_member_user_id_user_id_fk": { 3382 - "name": "workspace_member_user_id_user_id_fk", 3383 - "tableFrom": "workspace_member", 3384 - "tableTo": "user", 3385 - "columnsFrom": [ 3386 - "user_id" 3387 - ], 3388 - "columnsTo": [ 3389 - "id" 3390 - ], 3391 - "onDelete": "cascade", 3392 - "onUpdate": "no action" 3393 - } 3394 - }, 3395 - "compositePrimaryKeys": {}, 3396 - "uniqueConstraints": {}, 3397 - "policies": {}, 3398 - "checkConstraints": {}, 3399 - "isRLSEnabled": false 3400 - } 3401 - }, 3402 - "enums": {}, 3403 - "schemas": {}, 3404 - "sequences": {}, 3405 - "roles": {}, 3406 - "policies": {}, 3407 - "views": {}, 3408 - "_meta": { 3409 - "columns": {}, 3410 - "schemas": {}, 3411 - "tables": {} 3412 - } 3413 - } 2 + "id": "0e05bf62-b50b-4a4e-9d73-3b4cdb696930", 3 + "prevId": "ee695959-0cad-4f20-9219-7bcefd51ff6d", 4 + "version": "7", 5 + "dialect": "postgresql", 6 + "tables": { 7 + "public.account": { 8 + "name": "account", 9 + "schema": "", 10 + "columns": { 11 + "id": { 12 + "name": "id", 13 + "type": "text", 14 + "primaryKey": true, 15 + "notNull": true 16 + }, 17 + "account_id": { 18 + "name": "account_id", 19 + "type": "text", 20 + "primaryKey": false, 21 + "notNull": true 22 + }, 23 + "provider_id": { 24 + "name": "provider_id", 25 + "type": "text", 26 + "primaryKey": false, 27 + "notNull": true 28 + }, 29 + "user_id": { 30 + "name": "user_id", 31 + "type": "text", 32 + "primaryKey": false, 33 + "notNull": true 34 + }, 35 + "access_token": { 36 + "name": "access_token", 37 + "type": "text", 38 + "primaryKey": false, 39 + "notNull": false 40 + }, 41 + "refresh_token": { 42 + "name": "refresh_token", 43 + "type": "text", 44 + "primaryKey": false, 45 + "notNull": false 46 + }, 47 + "id_token": { 48 + "name": "id_token", 49 + "type": "text", 50 + "primaryKey": false, 51 + "notNull": false 52 + }, 53 + "access_token_expires_at": { 54 + "name": "access_token_expires_at", 55 + "type": "timestamp", 56 + "primaryKey": false, 57 + "notNull": false 58 + }, 59 + "refresh_token_expires_at": { 60 + "name": "refresh_token_expires_at", 61 + "type": "timestamp", 62 + "primaryKey": false, 63 + "notNull": false 64 + }, 65 + "scope": { 66 + "name": "scope", 67 + "type": "text", 68 + "primaryKey": false, 69 + "notNull": false 70 + }, 71 + "password": { 72 + "name": "password", 73 + "type": "text", 74 + "primaryKey": false, 75 + "notNull": false 76 + }, 77 + "created_at": { 78 + "name": "created_at", 79 + "type": "timestamp", 80 + "primaryKey": false, 81 + "notNull": true, 82 + "default": "now()" 83 + }, 84 + "updated_at": { 85 + "name": "updated_at", 86 + "type": "timestamp", 87 + "primaryKey": false, 88 + "notNull": true 89 + } 90 + }, 91 + "indexes": { 92 + "account_userId_idx": { 93 + "name": "account_userId_idx", 94 + "columns": [ 95 + { 96 + "expression": "user_id", 97 + "isExpression": false, 98 + "asc": true, 99 + "nulls": "last" 100 + } 101 + ], 102 + "isUnique": false, 103 + "concurrently": false, 104 + "method": "btree", 105 + "with": {} 106 + } 107 + }, 108 + "foreignKeys": { 109 + "account_user_id_user_id_fk": { 110 + "name": "account_user_id_user_id_fk", 111 + "tableFrom": "account", 112 + "tableTo": "user", 113 + "columnsFrom": ["user_id"], 114 + "columnsTo": ["id"], 115 + "onDelete": "cascade", 116 + "onUpdate": "no action" 117 + } 118 + }, 119 + "compositePrimaryKeys": {}, 120 + "uniqueConstraints": {}, 121 + "policies": {}, 122 + "checkConstraints": {}, 123 + "isRLSEnabled": false 124 + }, 125 + "public.activity": { 126 + "name": "activity", 127 + "schema": "", 128 + "columns": { 129 + "id": { 130 + "name": "id", 131 + "type": "text", 132 + "primaryKey": true, 133 + "notNull": true 134 + }, 135 + "task_id": { 136 + "name": "task_id", 137 + "type": "text", 138 + "primaryKey": false, 139 + "notNull": true 140 + }, 141 + "type": { 142 + "name": "type", 143 + "type": "text", 144 + "primaryKey": false, 145 + "notNull": true 146 + }, 147 + "created_at": { 148 + "name": "created_at", 149 + "type": "timestamp", 150 + "primaryKey": false, 151 + "notNull": true, 152 + "default": "now()" 153 + }, 154 + "updated_at": { 155 + "name": "updated_at", 156 + "type": "timestamp", 157 + "primaryKey": false, 158 + "notNull": true, 159 + "default": "now()" 160 + }, 161 + "user_id": { 162 + "name": "user_id", 163 + "type": "text", 164 + "primaryKey": false, 165 + "notNull": false 166 + }, 167 + "content": { 168 + "name": "content", 169 + "type": "text", 170 + "primaryKey": false, 171 + "notNull": false 172 + }, 173 + "event_data": { 174 + "name": "event_data", 175 + "type": "jsonb", 176 + "primaryKey": false, 177 + "notNull": false 178 + }, 179 + "external_user_name": { 180 + "name": "external_user_name", 181 + "type": "text", 182 + "primaryKey": false, 183 + "notNull": false 184 + }, 185 + "external_user_avatar": { 186 + "name": "external_user_avatar", 187 + "type": "text", 188 + "primaryKey": false, 189 + "notNull": false 190 + }, 191 + "external_source": { 192 + "name": "external_source", 193 + "type": "text", 194 + "primaryKey": false, 195 + "notNull": false 196 + }, 197 + "external_url": { 198 + "name": "external_url", 199 + "type": "text", 200 + "primaryKey": false, 201 + "notNull": false 202 + } 203 + }, 204 + "indexes": { 205 + "activity_task_id_idx": { 206 + "name": "activity_task_id_idx", 207 + "columns": [ 208 + { 209 + "expression": "task_id", 210 + "isExpression": false, 211 + "asc": true, 212 + "nulls": "last" 213 + } 214 + ], 215 + "isUnique": false, 216 + "concurrently": false, 217 + "method": "btree", 218 + "with": {} 219 + } 220 + }, 221 + "foreignKeys": { 222 + "activity_task_id_task_id_fk": { 223 + "name": "activity_task_id_task_id_fk", 224 + "tableFrom": "activity", 225 + "tableTo": "task", 226 + "columnsFrom": ["task_id"], 227 + "columnsTo": ["id"], 228 + "onDelete": "cascade", 229 + "onUpdate": "cascade" 230 + }, 231 + "activity_user_id_user_id_fk": { 232 + "name": "activity_user_id_user_id_fk", 233 + "tableFrom": "activity", 234 + "tableTo": "user", 235 + "columnsFrom": ["user_id"], 236 + "columnsTo": ["id"], 237 + "onDelete": "cascade", 238 + "onUpdate": "cascade" 239 + } 240 + }, 241 + "compositePrimaryKeys": {}, 242 + "uniqueConstraints": { 243 + "activity_task_external_source_external_url_unique": { 244 + "name": "activity_task_external_source_external_url_unique", 245 + "nullsNotDistinct": false, 246 + "columns": ["task_id", "external_source", "external_url"] 247 + } 248 + }, 249 + "policies": {}, 250 + "checkConstraints": {}, 251 + "isRLSEnabled": false 252 + }, 253 + "public.apikey": { 254 + "name": "apikey", 255 + "schema": "", 256 + "columns": { 257 + "id": { 258 + "name": "id", 259 + "type": "text", 260 + "primaryKey": true, 261 + "notNull": true 262 + }, 263 + "config_id": { 264 + "name": "config_id", 265 + "type": "text", 266 + "primaryKey": false, 267 + "notNull": true, 268 + "default": "'default'" 269 + }, 270 + "name": { 271 + "name": "name", 272 + "type": "text", 273 + "primaryKey": false, 274 + "notNull": false 275 + }, 276 + "start": { 277 + "name": "start", 278 + "type": "text", 279 + "primaryKey": false, 280 + "notNull": false 281 + }, 282 + "reference_id": { 283 + "name": "reference_id", 284 + "type": "text", 285 + "primaryKey": false, 286 + "notNull": true 287 + }, 288 + "prefix": { 289 + "name": "prefix", 290 + "type": "text", 291 + "primaryKey": false, 292 + "notNull": false 293 + }, 294 + "key": { 295 + "name": "key", 296 + "type": "text", 297 + "primaryKey": false, 298 + "notNull": true 299 + }, 300 + "user_id": { 301 + "name": "user_id", 302 + "type": "text", 303 + "primaryKey": false, 304 + "notNull": false 305 + }, 306 + "refill_interval": { 307 + "name": "refill_interval", 308 + "type": "integer", 309 + "primaryKey": false, 310 + "notNull": false 311 + }, 312 + "refill_amount": { 313 + "name": "refill_amount", 314 + "type": "integer", 315 + "primaryKey": false, 316 + "notNull": false 317 + }, 318 + "last_refill_at": { 319 + "name": "last_refill_at", 320 + "type": "timestamp", 321 + "primaryKey": false, 322 + "notNull": false 323 + }, 324 + "enabled": { 325 + "name": "enabled", 326 + "type": "boolean", 327 + "primaryKey": false, 328 + "notNull": false, 329 + "default": true 330 + }, 331 + "rate_limit_enabled": { 332 + "name": "rate_limit_enabled", 333 + "type": "boolean", 334 + "primaryKey": false, 335 + "notNull": false, 336 + "default": true 337 + }, 338 + "rate_limit_time_window": { 339 + "name": "rate_limit_time_window", 340 + "type": "integer", 341 + "primaryKey": false, 342 + "notNull": false, 343 + "default": 86400000 344 + }, 345 + "rate_limit_max": { 346 + "name": "rate_limit_max", 347 + "type": "integer", 348 + "primaryKey": false, 349 + "notNull": false, 350 + "default": 10 351 + }, 352 + "request_count": { 353 + "name": "request_count", 354 + "type": "integer", 355 + "primaryKey": false, 356 + "notNull": false, 357 + "default": 0 358 + }, 359 + "remaining": { 360 + "name": "remaining", 361 + "type": "integer", 362 + "primaryKey": false, 363 + "notNull": false 364 + }, 365 + "last_request": { 366 + "name": "last_request", 367 + "type": "timestamp", 368 + "primaryKey": false, 369 + "notNull": false 370 + }, 371 + "expires_at": { 372 + "name": "expires_at", 373 + "type": "timestamp", 374 + "primaryKey": false, 375 + "notNull": false 376 + }, 377 + "created_at": { 378 + "name": "created_at", 379 + "type": "timestamp", 380 + "primaryKey": false, 381 + "notNull": true 382 + }, 383 + "updated_at": { 384 + "name": "updated_at", 385 + "type": "timestamp", 386 + "primaryKey": false, 387 + "notNull": true 388 + }, 389 + "permissions": { 390 + "name": "permissions", 391 + "type": "text", 392 + "primaryKey": false, 393 + "notNull": false 394 + }, 395 + "metadata": { 396 + "name": "metadata", 397 + "type": "text", 398 + "primaryKey": false, 399 + "notNull": false 400 + } 401 + }, 402 + "indexes": { 403 + "apikey_configId_idx": { 404 + "name": "apikey_configId_idx", 405 + "columns": [ 406 + { 407 + "expression": "config_id", 408 + "isExpression": false, 409 + "asc": true, 410 + "nulls": "last" 411 + } 412 + ], 413 + "isUnique": false, 414 + "concurrently": false, 415 + "method": "btree", 416 + "with": {} 417 + }, 418 + "apikey_key_idx": { 419 + "name": "apikey_key_idx", 420 + "columns": [ 421 + { 422 + "expression": "key", 423 + "isExpression": false, 424 + "asc": true, 425 + "nulls": "last" 426 + } 427 + ], 428 + "isUnique": false, 429 + "concurrently": false, 430 + "method": "btree", 431 + "with": {} 432 + }, 433 + "apikey_referenceId_idx": { 434 + "name": "apikey_referenceId_idx", 435 + "columns": [ 436 + { 437 + "expression": "reference_id", 438 + "isExpression": false, 439 + "asc": true, 440 + "nulls": "last" 441 + } 442 + ], 443 + "isUnique": false, 444 + "concurrently": false, 445 + "method": "btree", 446 + "with": {} 447 + }, 448 + "apikey_userId_idx": { 449 + "name": "apikey_userId_idx", 450 + "columns": [ 451 + { 452 + "expression": "user_id", 453 + "isExpression": false, 454 + "asc": true, 455 + "nulls": "last" 456 + } 457 + ], 458 + "isUnique": false, 459 + "concurrently": false, 460 + "method": "btree", 461 + "with": {} 462 + } 463 + }, 464 + "foreignKeys": { 465 + "apikey_reference_id_user_id_fk": { 466 + "name": "apikey_reference_id_user_id_fk", 467 + "tableFrom": "apikey", 468 + "tableTo": "user", 469 + "columnsFrom": ["reference_id"], 470 + "columnsTo": ["id"], 471 + "onDelete": "cascade", 472 + "onUpdate": "no action" 473 + }, 474 + "apikey_user_id_user_id_fk": { 475 + "name": "apikey_user_id_user_id_fk", 476 + "tableFrom": "apikey", 477 + "tableTo": "user", 478 + "columnsFrom": ["user_id"], 479 + "columnsTo": ["id"], 480 + "onDelete": "cascade", 481 + "onUpdate": "no action" 482 + } 483 + }, 484 + "compositePrimaryKeys": {}, 485 + "uniqueConstraints": {}, 486 + "policies": {}, 487 + "checkConstraints": {}, 488 + "isRLSEnabled": false 489 + }, 490 + "public.asset": { 491 + "name": "asset", 492 + "schema": "", 493 + "columns": { 494 + "id": { 495 + "name": "id", 496 + "type": "text", 497 + "primaryKey": true, 498 + "notNull": true 499 + }, 500 + "workspace_id": { 501 + "name": "workspace_id", 502 + "type": "text", 503 + "primaryKey": false, 504 + "notNull": true 505 + }, 506 + "project_id": { 507 + "name": "project_id", 508 + "type": "text", 509 + "primaryKey": false, 510 + "notNull": true 511 + }, 512 + "task_id": { 513 + "name": "task_id", 514 + "type": "text", 515 + "primaryKey": false, 516 + "notNull": false 517 + }, 518 + "activity_id": { 519 + "name": "activity_id", 520 + "type": "text", 521 + "primaryKey": false, 522 + "notNull": false 523 + }, 524 + "object_key": { 525 + "name": "object_key", 526 + "type": "text", 527 + "primaryKey": false, 528 + "notNull": true 529 + }, 530 + "filename": { 531 + "name": "filename", 532 + "type": "text", 533 + "primaryKey": false, 534 + "notNull": true 535 + }, 536 + "mime_type": { 537 + "name": "mime_type", 538 + "type": "text", 539 + "primaryKey": false, 540 + "notNull": true 541 + }, 542 + "size": { 543 + "name": "size", 544 + "type": "integer", 545 + "primaryKey": false, 546 + "notNull": true 547 + }, 548 + "kind": { 549 + "name": "kind", 550 + "type": "text", 551 + "primaryKey": false, 552 + "notNull": true, 553 + "default": "'image'" 554 + }, 555 + "surface": { 556 + "name": "surface", 557 + "type": "text", 558 + "primaryKey": false, 559 + "notNull": true, 560 + "default": "'description'" 561 + }, 562 + "created_by": { 563 + "name": "created_by", 564 + "type": "text", 565 + "primaryKey": false, 566 + "notNull": false 567 + }, 568 + "created_at": { 569 + "name": "created_at", 570 + "type": "timestamp", 571 + "primaryKey": false, 572 + "notNull": true, 573 + "default": "now()" 574 + } 575 + }, 576 + "indexes": { 577 + "asset_workspaceId_idx": { 578 + "name": "asset_workspaceId_idx", 579 + "columns": [ 580 + { 581 + "expression": "workspace_id", 582 + "isExpression": false, 583 + "asc": true, 584 + "nulls": "last" 585 + } 586 + ], 587 + "isUnique": false, 588 + "concurrently": false, 589 + "method": "btree", 590 + "with": {} 591 + }, 592 + "asset_projectId_idx": { 593 + "name": "asset_projectId_idx", 594 + "columns": [ 595 + { 596 + "expression": "project_id", 597 + "isExpression": false, 598 + "asc": true, 599 + "nulls": "last" 600 + } 601 + ], 602 + "isUnique": false, 603 + "concurrently": false, 604 + "method": "btree", 605 + "with": {} 606 + }, 607 + "asset_taskId_idx": { 608 + "name": "asset_taskId_idx", 609 + "columns": [ 610 + { 611 + "expression": "task_id", 612 + "isExpression": false, 613 + "asc": true, 614 + "nulls": "last" 615 + } 616 + ], 617 + "isUnique": false, 618 + "concurrently": false, 619 + "method": "btree", 620 + "with": {} 621 + }, 622 + "asset_activityId_idx": { 623 + "name": "asset_activityId_idx", 624 + "columns": [ 625 + { 626 + "expression": "activity_id", 627 + "isExpression": false, 628 + "asc": true, 629 + "nulls": "last" 630 + } 631 + ], 632 + "isUnique": false, 633 + "concurrently": false, 634 + "method": "btree", 635 + "with": {} 636 + } 637 + }, 638 + "foreignKeys": { 639 + "asset_workspace_id_workspace_id_fk": { 640 + "name": "asset_workspace_id_workspace_id_fk", 641 + "tableFrom": "asset", 642 + "tableTo": "workspace", 643 + "columnsFrom": ["workspace_id"], 644 + "columnsTo": ["id"], 645 + "onDelete": "cascade", 646 + "onUpdate": "cascade" 647 + }, 648 + "asset_project_id_project_id_fk": { 649 + "name": "asset_project_id_project_id_fk", 650 + "tableFrom": "asset", 651 + "tableTo": "project", 652 + "columnsFrom": ["project_id"], 653 + "columnsTo": ["id"], 654 + "onDelete": "cascade", 655 + "onUpdate": "cascade" 656 + }, 657 + "asset_task_id_task_id_fk": { 658 + "name": "asset_task_id_task_id_fk", 659 + "tableFrom": "asset", 660 + "tableTo": "task", 661 + "columnsFrom": ["task_id"], 662 + "columnsTo": ["id"], 663 + "onDelete": "cascade", 664 + "onUpdate": "cascade" 665 + }, 666 + "asset_activity_id_activity_id_fk": { 667 + "name": "asset_activity_id_activity_id_fk", 668 + "tableFrom": "asset", 669 + "tableTo": "activity", 670 + "columnsFrom": ["activity_id"], 671 + "columnsTo": ["id"], 672 + "onDelete": "cascade", 673 + "onUpdate": "cascade" 674 + }, 675 + "asset_created_by_user_id_fk": { 676 + "name": "asset_created_by_user_id_fk", 677 + "tableFrom": "asset", 678 + "tableTo": "user", 679 + "columnsFrom": ["created_by"], 680 + "columnsTo": ["id"], 681 + "onDelete": "set null", 682 + "onUpdate": "cascade" 683 + } 684 + }, 685 + "compositePrimaryKeys": {}, 686 + "uniqueConstraints": { 687 + "asset_object_key_unique": { 688 + "name": "asset_object_key_unique", 689 + "nullsNotDistinct": false, 690 + "columns": ["object_key"] 691 + } 692 + }, 693 + "policies": {}, 694 + "checkConstraints": {}, 695 + "isRLSEnabled": false 696 + }, 697 + "public.column": { 698 + "name": "column", 699 + "schema": "", 700 + "columns": { 701 + "id": { 702 + "name": "id", 703 + "type": "text", 704 + "primaryKey": true, 705 + "notNull": true 706 + }, 707 + "project_id": { 708 + "name": "project_id", 709 + "type": "text", 710 + "primaryKey": false, 711 + "notNull": true 712 + }, 713 + "name": { 714 + "name": "name", 715 + "type": "text", 716 + "primaryKey": false, 717 + "notNull": true 718 + }, 719 + "slug": { 720 + "name": "slug", 721 + "type": "text", 722 + "primaryKey": false, 723 + "notNull": true 724 + }, 725 + "position": { 726 + "name": "position", 727 + "type": "integer", 728 + "primaryKey": false, 729 + "notNull": true, 730 + "default": 0 731 + }, 732 + "icon": { 733 + "name": "icon", 734 + "type": "text", 735 + "primaryKey": false, 736 + "notNull": false 737 + }, 738 + "color": { 739 + "name": "color", 740 + "type": "text", 741 + "primaryKey": false, 742 + "notNull": false 743 + }, 744 + "is_final": { 745 + "name": "is_final", 746 + "type": "boolean", 747 + "primaryKey": false, 748 + "notNull": true, 749 + "default": false 750 + }, 751 + "created_at": { 752 + "name": "created_at", 753 + "type": "timestamp", 754 + "primaryKey": false, 755 + "notNull": true, 756 + "default": "now()" 757 + }, 758 + "updated_at": { 759 + "name": "updated_at", 760 + "type": "timestamp", 761 + "primaryKey": false, 762 + "notNull": true, 763 + "default": "now()" 764 + } 765 + }, 766 + "indexes": { 767 + "column_projectId_idx": { 768 + "name": "column_projectId_idx", 769 + "columns": [ 770 + { 771 + "expression": "project_id", 772 + "isExpression": false, 773 + "asc": true, 774 + "nulls": "last" 775 + } 776 + ], 777 + "isUnique": false, 778 + "concurrently": false, 779 + "method": "btree", 780 + "with": {} 781 + } 782 + }, 783 + "foreignKeys": { 784 + "column_project_id_project_id_fk": { 785 + "name": "column_project_id_project_id_fk", 786 + "tableFrom": "column", 787 + "tableTo": "project", 788 + "columnsFrom": ["project_id"], 789 + "columnsTo": ["id"], 790 + "onDelete": "cascade", 791 + "onUpdate": "cascade" 792 + } 793 + }, 794 + "compositePrimaryKeys": {}, 795 + "uniqueConstraints": {}, 796 + "policies": {}, 797 + "checkConstraints": {}, 798 + "isRLSEnabled": false 799 + }, 800 + "public.comment": { 801 + "name": "comment", 802 + "schema": "", 803 + "columns": { 804 + "id": { 805 + "name": "id", 806 + "type": "text", 807 + "primaryKey": true, 808 + "notNull": true 809 + }, 810 + "task_id": { 811 + "name": "task_id", 812 + "type": "text", 813 + "primaryKey": false, 814 + "notNull": true 815 + }, 816 + "user_id": { 817 + "name": "user_id", 818 + "type": "text", 819 + "primaryKey": false, 820 + "notNull": true 821 + }, 822 + "content": { 823 + "name": "content", 824 + "type": "text", 825 + "primaryKey": false, 826 + "notNull": true 827 + }, 828 + "created_at": { 829 + "name": "created_at", 830 + "type": "timestamp", 831 + "primaryKey": false, 832 + "notNull": true, 833 + "default": "now()" 834 + }, 835 + "updated_at": { 836 + "name": "updated_at", 837 + "type": "timestamp", 838 + "primaryKey": false, 839 + "notNull": true, 840 + "default": "now()" 841 + } 842 + }, 843 + "indexes": { 844 + "comment_task_idx": { 845 + "name": "comment_task_idx", 846 + "columns": [ 847 + { 848 + "expression": "task_id", 849 + "isExpression": false, 850 + "asc": true, 851 + "nulls": "last" 852 + } 853 + ], 854 + "isUnique": false, 855 + "concurrently": false, 856 + "method": "btree", 857 + "with": {} 858 + }, 859 + "comment_user_idx": { 860 + "name": "comment_user_idx", 861 + "columns": [ 862 + { 863 + "expression": "user_id", 864 + "isExpression": false, 865 + "asc": true, 866 + "nulls": "last" 867 + } 868 + ], 869 + "isUnique": false, 870 + "concurrently": false, 871 + "method": "btree", 872 + "with": {} 873 + } 874 + }, 875 + "foreignKeys": { 876 + "comment_task_id_task_id_fk": { 877 + "name": "comment_task_id_task_id_fk", 878 + "tableFrom": "comment", 879 + "tableTo": "task", 880 + "columnsFrom": ["task_id"], 881 + "columnsTo": ["id"], 882 + "onDelete": "cascade", 883 + "onUpdate": "cascade" 884 + }, 885 + "comment_user_id_user_id_fk": { 886 + "name": "comment_user_id_user_id_fk", 887 + "tableFrom": "comment", 888 + "tableTo": "user", 889 + "columnsFrom": ["user_id"], 890 + "columnsTo": ["id"], 891 + "onDelete": "cascade", 892 + "onUpdate": "cascade" 893 + } 894 + }, 895 + "compositePrimaryKeys": {}, 896 + "uniqueConstraints": {}, 897 + "policies": {}, 898 + "checkConstraints": {}, 899 + "isRLSEnabled": false 900 + }, 901 + "public.device_code": { 902 + "name": "device_code", 903 + "schema": "", 904 + "columns": { 905 + "id": { 906 + "name": "id", 907 + "type": "text", 908 + "primaryKey": true, 909 + "notNull": true 910 + }, 911 + "device_code": { 912 + "name": "device_code", 913 + "type": "text", 914 + "primaryKey": false, 915 + "notNull": true 916 + }, 917 + "user_code": { 918 + "name": "user_code", 919 + "type": "text", 920 + "primaryKey": false, 921 + "notNull": true 922 + }, 923 + "user_id": { 924 + "name": "user_id", 925 + "type": "text", 926 + "primaryKey": false, 927 + "notNull": false 928 + }, 929 + "created_at": { 930 + "name": "created_at", 931 + "type": "timestamp", 932 + "primaryKey": false, 933 + "notNull": true, 934 + "default": "now()" 935 + }, 936 + "updated_at": { 937 + "name": "updated_at", 938 + "type": "timestamp", 939 + "primaryKey": false, 940 + "notNull": true, 941 + "default": "now()" 942 + }, 943 + "expires_at": { 944 + "name": "expires_at", 945 + "type": "timestamp", 946 + "primaryKey": false, 947 + "notNull": true 948 + }, 949 + "status": { 950 + "name": "status", 951 + "type": "text", 952 + "primaryKey": false, 953 + "notNull": true 954 + }, 955 + "last_polled_at": { 956 + "name": "last_polled_at", 957 + "type": "timestamp", 958 + "primaryKey": false, 959 + "notNull": false 960 + }, 961 + "polling_interval": { 962 + "name": "polling_interval", 963 + "type": "integer", 964 + "primaryKey": false, 965 + "notNull": false 966 + }, 967 + "client_id": { 968 + "name": "client_id", 969 + "type": "text", 970 + "primaryKey": false, 971 + "notNull": false 972 + }, 973 + "scope": { 974 + "name": "scope", 975 + "type": "text", 976 + "primaryKey": false, 977 + "notNull": false 978 + } 979 + }, 980 + "indexes": { 981 + "device_code_device_code_uidx": { 982 + "name": "device_code_device_code_uidx", 983 + "columns": [ 984 + { 985 + "expression": "device_code", 986 + "isExpression": false, 987 + "asc": true, 988 + "nulls": "last" 989 + } 990 + ], 991 + "isUnique": true, 992 + "concurrently": false, 993 + "method": "btree", 994 + "with": {} 995 + }, 996 + "device_code_user_code_uidx": { 997 + "name": "device_code_user_code_uidx", 998 + "columns": [ 999 + { 1000 + "expression": "user_code", 1001 + "isExpression": false, 1002 + "asc": true, 1003 + "nulls": "last" 1004 + } 1005 + ], 1006 + "isUnique": true, 1007 + "concurrently": false, 1008 + "method": "btree", 1009 + "with": {} 1010 + }, 1011 + "device_code_user_id_idx": { 1012 + "name": "device_code_user_id_idx", 1013 + "columns": [ 1014 + { 1015 + "expression": "user_id", 1016 + "isExpression": false, 1017 + "asc": true, 1018 + "nulls": "last" 1019 + } 1020 + ], 1021 + "isUnique": false, 1022 + "concurrently": false, 1023 + "method": "btree", 1024 + "with": {} 1025 + } 1026 + }, 1027 + "foreignKeys": { 1028 + "device_code_user_id_user_id_fk": { 1029 + "name": "device_code_user_id_user_id_fk", 1030 + "tableFrom": "device_code", 1031 + "tableTo": "user", 1032 + "columnsFrom": ["user_id"], 1033 + "columnsTo": ["id"], 1034 + "onDelete": "cascade", 1035 + "onUpdate": "cascade" 1036 + } 1037 + }, 1038 + "compositePrimaryKeys": {}, 1039 + "uniqueConstraints": {}, 1040 + "policies": {}, 1041 + "checkConstraints": {}, 1042 + "isRLSEnabled": false 1043 + }, 1044 + "public.external_link": { 1045 + "name": "external_link", 1046 + "schema": "", 1047 + "columns": { 1048 + "id": { 1049 + "name": "id", 1050 + "type": "text", 1051 + "primaryKey": true, 1052 + "notNull": true 1053 + }, 1054 + "task_id": { 1055 + "name": "task_id", 1056 + "type": "text", 1057 + "primaryKey": false, 1058 + "notNull": true 1059 + }, 1060 + "integration_id": { 1061 + "name": "integration_id", 1062 + "type": "text", 1063 + "primaryKey": false, 1064 + "notNull": true 1065 + }, 1066 + "resource_type": { 1067 + "name": "resource_type", 1068 + "type": "text", 1069 + "primaryKey": false, 1070 + "notNull": true 1071 + }, 1072 + "external_id": { 1073 + "name": "external_id", 1074 + "type": "text", 1075 + "primaryKey": false, 1076 + "notNull": true 1077 + }, 1078 + "url": { 1079 + "name": "url", 1080 + "type": "text", 1081 + "primaryKey": false, 1082 + "notNull": true 1083 + }, 1084 + "title": { 1085 + "name": "title", 1086 + "type": "text", 1087 + "primaryKey": false, 1088 + "notNull": false 1089 + }, 1090 + "metadata": { 1091 + "name": "metadata", 1092 + "type": "text", 1093 + "primaryKey": false, 1094 + "notNull": false 1095 + }, 1096 + "created_at": { 1097 + "name": "created_at", 1098 + "type": "timestamp", 1099 + "primaryKey": false, 1100 + "notNull": true, 1101 + "default": "now()" 1102 + }, 1103 + "updated_at": { 1104 + "name": "updated_at", 1105 + "type": "timestamp", 1106 + "primaryKey": false, 1107 + "notNull": true, 1108 + "default": "now()" 1109 + } 1110 + }, 1111 + "indexes": { 1112 + "external_link_taskId_idx": { 1113 + "name": "external_link_taskId_idx", 1114 + "columns": [ 1115 + { 1116 + "expression": "task_id", 1117 + "isExpression": false, 1118 + "asc": true, 1119 + "nulls": "last" 1120 + } 1121 + ], 1122 + "isUnique": false, 1123 + "concurrently": false, 1124 + "method": "btree", 1125 + "with": {} 1126 + }, 1127 + "external_link_integrationId_idx": { 1128 + "name": "external_link_integrationId_idx", 1129 + "columns": [ 1130 + { 1131 + "expression": "integration_id", 1132 + "isExpression": false, 1133 + "asc": true, 1134 + "nulls": "last" 1135 + } 1136 + ], 1137 + "isUnique": false, 1138 + "concurrently": false, 1139 + "method": "btree", 1140 + "with": {} 1141 + }, 1142 + "external_link_externalId_idx": { 1143 + "name": "external_link_externalId_idx", 1144 + "columns": [ 1145 + { 1146 + "expression": "external_id", 1147 + "isExpression": false, 1148 + "asc": true, 1149 + "nulls": "last" 1150 + } 1151 + ], 1152 + "isUnique": false, 1153 + "concurrently": false, 1154 + "method": "btree", 1155 + "with": {} 1156 + }, 1157 + "external_link_resourceType_idx": { 1158 + "name": "external_link_resourceType_idx", 1159 + "columns": [ 1160 + { 1161 + "expression": "resource_type", 1162 + "isExpression": false, 1163 + "asc": true, 1164 + "nulls": "last" 1165 + } 1166 + ], 1167 + "isUnique": false, 1168 + "concurrently": false, 1169 + "method": "btree", 1170 + "with": {} 1171 + } 1172 + }, 1173 + "foreignKeys": { 1174 + "external_link_task_id_task_id_fk": { 1175 + "name": "external_link_task_id_task_id_fk", 1176 + "tableFrom": "external_link", 1177 + "tableTo": "task", 1178 + "columnsFrom": ["task_id"], 1179 + "columnsTo": ["id"], 1180 + "onDelete": "cascade", 1181 + "onUpdate": "cascade" 1182 + }, 1183 + "external_link_integration_id_integration_id_fk": { 1184 + "name": "external_link_integration_id_integration_id_fk", 1185 + "tableFrom": "external_link", 1186 + "tableTo": "integration", 1187 + "columnsFrom": ["integration_id"], 1188 + "columnsTo": ["id"], 1189 + "onDelete": "cascade", 1190 + "onUpdate": "cascade" 1191 + } 1192 + }, 1193 + "compositePrimaryKeys": {}, 1194 + "uniqueConstraints": {}, 1195 + "policies": {}, 1196 + "checkConstraints": {}, 1197 + "isRLSEnabled": false 1198 + }, 1199 + "public.github_integration": { 1200 + "name": "github_integration", 1201 + "schema": "", 1202 + "columns": { 1203 + "id": { 1204 + "name": "id", 1205 + "type": "text", 1206 + "primaryKey": true, 1207 + "notNull": true 1208 + }, 1209 + "project_id": { 1210 + "name": "project_id", 1211 + "type": "text", 1212 + "primaryKey": false, 1213 + "notNull": true 1214 + }, 1215 + "repository_owner": { 1216 + "name": "repository_owner", 1217 + "type": "text", 1218 + "primaryKey": false, 1219 + "notNull": true 1220 + }, 1221 + "repository_name": { 1222 + "name": "repository_name", 1223 + "type": "text", 1224 + "primaryKey": false, 1225 + "notNull": true 1226 + }, 1227 + "installation_id": { 1228 + "name": "installation_id", 1229 + "type": "integer", 1230 + "primaryKey": false, 1231 + "notNull": false 1232 + }, 1233 + "is_active": { 1234 + "name": "is_active", 1235 + "type": "boolean", 1236 + "primaryKey": false, 1237 + "notNull": false, 1238 + "default": true 1239 + }, 1240 + "created_at": { 1241 + "name": "created_at", 1242 + "type": "timestamp", 1243 + "primaryKey": false, 1244 + "notNull": true, 1245 + "default": "now()" 1246 + }, 1247 + "updated_at": { 1248 + "name": "updated_at", 1249 + "type": "timestamp", 1250 + "primaryKey": false, 1251 + "notNull": true, 1252 + "default": "now()" 1253 + } 1254 + }, 1255 + "indexes": {}, 1256 + "foreignKeys": { 1257 + "github_integration_project_id_project_id_fk": { 1258 + "name": "github_integration_project_id_project_id_fk", 1259 + "tableFrom": "github_integration", 1260 + "tableTo": "project", 1261 + "columnsFrom": ["project_id"], 1262 + "columnsTo": ["id"], 1263 + "onDelete": "cascade", 1264 + "onUpdate": "cascade" 1265 + } 1266 + }, 1267 + "compositePrimaryKeys": {}, 1268 + "uniqueConstraints": { 1269 + "github_integration_project_id_unique": { 1270 + "name": "github_integration_project_id_unique", 1271 + "nullsNotDistinct": false, 1272 + "columns": ["project_id"] 1273 + } 1274 + }, 1275 + "policies": {}, 1276 + "checkConstraints": {}, 1277 + "isRLSEnabled": false 1278 + }, 1279 + "public.integration": { 1280 + "name": "integration", 1281 + "schema": "", 1282 + "columns": { 1283 + "id": { 1284 + "name": "id", 1285 + "type": "text", 1286 + "primaryKey": true, 1287 + "notNull": true 1288 + }, 1289 + "project_id": { 1290 + "name": "project_id", 1291 + "type": "text", 1292 + "primaryKey": false, 1293 + "notNull": true 1294 + }, 1295 + "type": { 1296 + "name": "type", 1297 + "type": "text", 1298 + "primaryKey": false, 1299 + "notNull": true 1300 + }, 1301 + "config": { 1302 + "name": "config", 1303 + "type": "text", 1304 + "primaryKey": false, 1305 + "notNull": true 1306 + }, 1307 + "is_active": { 1308 + "name": "is_active", 1309 + "type": "boolean", 1310 + "primaryKey": false, 1311 + "notNull": false, 1312 + "default": true 1313 + }, 1314 + "created_at": { 1315 + "name": "created_at", 1316 + "type": "timestamp", 1317 + "primaryKey": false, 1318 + "notNull": true, 1319 + "default": "now()" 1320 + }, 1321 + "updated_at": { 1322 + "name": "updated_at", 1323 + "type": "timestamp", 1324 + "primaryKey": false, 1325 + "notNull": true, 1326 + "default": "now()" 1327 + } 1328 + }, 1329 + "indexes": { 1330 + "integration_projectId_idx": { 1331 + "name": "integration_projectId_idx", 1332 + "columns": [ 1333 + { 1334 + "expression": "project_id", 1335 + "isExpression": false, 1336 + "asc": true, 1337 + "nulls": "last" 1338 + } 1339 + ], 1340 + "isUnique": false, 1341 + "concurrently": false, 1342 + "method": "btree", 1343 + "with": {} 1344 + }, 1345 + "integration_type_idx": { 1346 + "name": "integration_type_idx", 1347 + "columns": [ 1348 + { 1349 + "expression": "type", 1350 + "isExpression": false, 1351 + "asc": true, 1352 + "nulls": "last" 1353 + } 1354 + ], 1355 + "isUnique": false, 1356 + "concurrently": false, 1357 + "method": "btree", 1358 + "with": {} 1359 + } 1360 + }, 1361 + "foreignKeys": { 1362 + "integration_project_id_project_id_fk": { 1363 + "name": "integration_project_id_project_id_fk", 1364 + "tableFrom": "integration", 1365 + "tableTo": "project", 1366 + "columnsFrom": ["project_id"], 1367 + "columnsTo": ["id"], 1368 + "onDelete": "cascade", 1369 + "onUpdate": "cascade" 1370 + } 1371 + }, 1372 + "compositePrimaryKeys": {}, 1373 + "uniqueConstraints": { 1374 + "integration_project_type_unique": { 1375 + "name": "integration_project_type_unique", 1376 + "nullsNotDistinct": false, 1377 + "columns": ["project_id", "type"] 1378 + } 1379 + }, 1380 + "policies": {}, 1381 + "checkConstraints": {}, 1382 + "isRLSEnabled": false 1383 + }, 1384 + "public.invitation": { 1385 + "name": "invitation", 1386 + "schema": "", 1387 + "columns": { 1388 + "id": { 1389 + "name": "id", 1390 + "type": "text", 1391 + "primaryKey": true, 1392 + "notNull": true 1393 + }, 1394 + "workspace_id": { 1395 + "name": "workspace_id", 1396 + "type": "text", 1397 + "primaryKey": false, 1398 + "notNull": true 1399 + }, 1400 + "email": { 1401 + "name": "email", 1402 + "type": "text", 1403 + "primaryKey": false, 1404 + "notNull": true 1405 + }, 1406 + "role": { 1407 + "name": "role", 1408 + "type": "text", 1409 + "primaryKey": false, 1410 + "notNull": false 1411 + }, 1412 + "team_id": { 1413 + "name": "team_id", 1414 + "type": "text", 1415 + "primaryKey": false, 1416 + "notNull": false 1417 + }, 1418 + "status": { 1419 + "name": "status", 1420 + "type": "text", 1421 + "primaryKey": false, 1422 + "notNull": true, 1423 + "default": "'pending'" 1424 + }, 1425 + "expires_at": { 1426 + "name": "expires_at", 1427 + "type": "timestamp", 1428 + "primaryKey": false, 1429 + "notNull": true 1430 + }, 1431 + "created_at": { 1432 + "name": "created_at", 1433 + "type": "timestamp", 1434 + "primaryKey": false, 1435 + "notNull": true, 1436 + "default": "now()" 1437 + }, 1438 + "inviter_id": { 1439 + "name": "inviter_id", 1440 + "type": "text", 1441 + "primaryKey": false, 1442 + "notNull": true 1443 + } 1444 + }, 1445 + "indexes": { 1446 + "invitation_workspaceId_idx": { 1447 + "name": "invitation_workspaceId_idx", 1448 + "columns": [ 1449 + { 1450 + "expression": "workspace_id", 1451 + "isExpression": false, 1452 + "asc": true, 1453 + "nulls": "last" 1454 + } 1455 + ], 1456 + "isUnique": false, 1457 + "concurrently": false, 1458 + "method": "btree", 1459 + "with": {} 1460 + }, 1461 + "invitation_email_idx": { 1462 + "name": "invitation_email_idx", 1463 + "columns": [ 1464 + { 1465 + "expression": "email", 1466 + "isExpression": false, 1467 + "asc": true, 1468 + "nulls": "last" 1469 + } 1470 + ], 1471 + "isUnique": false, 1472 + "concurrently": false, 1473 + "method": "btree", 1474 + "with": {} 1475 + } 1476 + }, 1477 + "foreignKeys": { 1478 + "invitation_workspace_id_workspace_id_fk": { 1479 + "name": "invitation_workspace_id_workspace_id_fk", 1480 + "tableFrom": "invitation", 1481 + "tableTo": "workspace", 1482 + "columnsFrom": ["workspace_id"], 1483 + "columnsTo": ["id"], 1484 + "onDelete": "cascade", 1485 + "onUpdate": "no action" 1486 + }, 1487 + "invitation_inviter_id_user_id_fk": { 1488 + "name": "invitation_inviter_id_user_id_fk", 1489 + "tableFrom": "invitation", 1490 + "tableTo": "user", 1491 + "columnsFrom": ["inviter_id"], 1492 + "columnsTo": ["id"], 1493 + "onDelete": "cascade", 1494 + "onUpdate": "no action" 1495 + } 1496 + }, 1497 + "compositePrimaryKeys": {}, 1498 + "uniqueConstraints": {}, 1499 + "policies": {}, 1500 + "checkConstraints": {}, 1501 + "isRLSEnabled": false 1502 + }, 1503 + "public.label": { 1504 + "name": "label", 1505 + "schema": "", 1506 + "columns": { 1507 + "id": { 1508 + "name": "id", 1509 + "type": "text", 1510 + "primaryKey": true, 1511 + "notNull": true 1512 + }, 1513 + "name": { 1514 + "name": "name", 1515 + "type": "text", 1516 + "primaryKey": false, 1517 + "notNull": true 1518 + }, 1519 + "color": { 1520 + "name": "color", 1521 + "type": "text", 1522 + "primaryKey": false, 1523 + "notNull": true 1524 + }, 1525 + "created_at": { 1526 + "name": "created_at", 1527 + "type": "timestamp", 1528 + "primaryKey": false, 1529 + "notNull": true, 1530 + "default": "now()" 1531 + }, 1532 + "updated_at": { 1533 + "name": "updated_at", 1534 + "type": "timestamp", 1535 + "primaryKey": false, 1536 + "notNull": true, 1537 + "default": "now()" 1538 + }, 1539 + "task_id": { 1540 + "name": "task_id", 1541 + "type": "text", 1542 + "primaryKey": false, 1543 + "notNull": false 1544 + }, 1545 + "workspace_id": { 1546 + "name": "workspace_id", 1547 + "type": "text", 1548 + "primaryKey": false, 1549 + "notNull": false 1550 + } 1551 + }, 1552 + "indexes": { 1553 + "label_task_id_idx": { 1554 + "name": "label_task_id_idx", 1555 + "columns": [ 1556 + { 1557 + "expression": "task_id", 1558 + "isExpression": false, 1559 + "asc": true, 1560 + "nulls": "last" 1561 + } 1562 + ], 1563 + "isUnique": false, 1564 + "concurrently": false, 1565 + "method": "btree", 1566 + "with": {} 1567 + }, 1568 + "label_workspace_id_idx": { 1569 + "name": "label_workspace_id_idx", 1570 + "columns": [ 1571 + { 1572 + "expression": "workspace_id", 1573 + "isExpression": false, 1574 + "asc": true, 1575 + "nulls": "last" 1576 + } 1577 + ], 1578 + "isUnique": false, 1579 + "concurrently": false, 1580 + "method": "btree", 1581 + "with": {} 1582 + }, 1583 + "label_workspace_name_unique": { 1584 + "name": "label_workspace_name_unique", 1585 + "columns": [ 1586 + { 1587 + "expression": "workspace_id", 1588 + "isExpression": false, 1589 + "asc": true, 1590 + "nulls": "last" 1591 + }, 1592 + { 1593 + "expression": "name", 1594 + "isExpression": false, 1595 + "asc": true, 1596 + "nulls": "last" 1597 + } 1598 + ], 1599 + "isUnique": true, 1600 + "where": "\"label\".\"task_id\" is null", 1601 + "concurrently": false, 1602 + "method": "btree", 1603 + "with": {} 1604 + } 1605 + }, 1606 + "foreignKeys": { 1607 + "label_task_id_task_id_fk": { 1608 + "name": "label_task_id_task_id_fk", 1609 + "tableFrom": "label", 1610 + "tableTo": "task", 1611 + "columnsFrom": ["task_id"], 1612 + "columnsTo": ["id"], 1613 + "onDelete": "cascade", 1614 + "onUpdate": "cascade" 1615 + }, 1616 + "label_workspace_id_workspace_id_fk": { 1617 + "name": "label_workspace_id_workspace_id_fk", 1618 + "tableFrom": "label", 1619 + "tableTo": "workspace", 1620 + "columnsFrom": ["workspace_id"], 1621 + "columnsTo": ["id"], 1622 + "onDelete": "cascade", 1623 + "onUpdate": "cascade" 1624 + } 1625 + }, 1626 + "compositePrimaryKeys": {}, 1627 + "uniqueConstraints": { 1628 + "label_task_name_unique": { 1629 + "name": "label_task_name_unique", 1630 + "nullsNotDistinct": false, 1631 + "columns": ["task_id", "name"] 1632 + } 1633 + }, 1634 + "policies": {}, 1635 + "checkConstraints": {}, 1636 + "isRLSEnabled": false 1637 + }, 1638 + "public.notification": { 1639 + "name": "notification", 1640 + "schema": "", 1641 + "columns": { 1642 + "id": { 1643 + "name": "id", 1644 + "type": "text", 1645 + "primaryKey": true, 1646 + "notNull": true 1647 + }, 1648 + "user_id": { 1649 + "name": "user_id", 1650 + "type": "text", 1651 + "primaryKey": false, 1652 + "notNull": true 1653 + }, 1654 + "title": { 1655 + "name": "title", 1656 + "type": "text", 1657 + "primaryKey": false, 1658 + "notNull": false 1659 + }, 1660 + "content": { 1661 + "name": "content", 1662 + "type": "text", 1663 + "primaryKey": false, 1664 + "notNull": false 1665 + }, 1666 + "type": { 1667 + "name": "type", 1668 + "type": "text", 1669 + "primaryKey": false, 1670 + "notNull": true, 1671 + "default": "'info'" 1672 + }, 1673 + "event_data": { 1674 + "name": "event_data", 1675 + "type": "jsonb", 1676 + "primaryKey": false, 1677 + "notNull": false 1678 + }, 1679 + "is_read": { 1680 + "name": "is_read", 1681 + "type": "boolean", 1682 + "primaryKey": false, 1683 + "notNull": false, 1684 + "default": false 1685 + }, 1686 + "resource_id": { 1687 + "name": "resource_id", 1688 + "type": "text", 1689 + "primaryKey": false, 1690 + "notNull": false 1691 + }, 1692 + "resource_type": { 1693 + "name": "resource_type", 1694 + "type": "text", 1695 + "primaryKey": false, 1696 + "notNull": false 1697 + }, 1698 + "created_at": { 1699 + "name": "created_at", 1700 + "type": "timestamp with time zone", 1701 + "primaryKey": false, 1702 + "notNull": true, 1703 + "default": "now()" 1704 + } 1705 + }, 1706 + "indexes": {}, 1707 + "foreignKeys": { 1708 + "notification_user_id_user_id_fk": { 1709 + "name": "notification_user_id_user_id_fk", 1710 + "tableFrom": "notification", 1711 + "tableTo": "user", 1712 + "columnsFrom": ["user_id"], 1713 + "columnsTo": ["id"], 1714 + "onDelete": "cascade", 1715 + "onUpdate": "cascade" 1716 + } 1717 + }, 1718 + "compositePrimaryKeys": {}, 1719 + "uniqueConstraints": {}, 1720 + "policies": {}, 1721 + "checkConstraints": {}, 1722 + "isRLSEnabled": false 1723 + }, 1724 + "public.project": { 1725 + "name": "project", 1726 + "schema": "", 1727 + "columns": { 1728 + "id": { 1729 + "name": "id", 1730 + "type": "text", 1731 + "primaryKey": true, 1732 + "notNull": true 1733 + }, 1734 + "workspace_id": { 1735 + "name": "workspace_id", 1736 + "type": "text", 1737 + "primaryKey": false, 1738 + "notNull": true 1739 + }, 1740 + "slug": { 1741 + "name": "slug", 1742 + "type": "text", 1743 + "primaryKey": false, 1744 + "notNull": true 1745 + }, 1746 + "icon": { 1747 + "name": "icon", 1748 + "type": "text", 1749 + "primaryKey": false, 1750 + "notNull": false, 1751 + "default": "'Layout'" 1752 + }, 1753 + "name": { 1754 + "name": "name", 1755 + "type": "text", 1756 + "primaryKey": false, 1757 + "notNull": true 1758 + }, 1759 + "description": { 1760 + "name": "description", 1761 + "type": "text", 1762 + "primaryKey": false, 1763 + "notNull": false 1764 + }, 1765 + "created_at": { 1766 + "name": "created_at", 1767 + "type": "timestamp", 1768 + "primaryKey": false, 1769 + "notNull": true, 1770 + "default": "now()" 1771 + }, 1772 + "is_public": { 1773 + "name": "is_public", 1774 + "type": "boolean", 1775 + "primaryKey": false, 1776 + "notNull": false, 1777 + "default": false 1778 + }, 1779 + "archived_at": { 1780 + "name": "archived_at", 1781 + "type": "timestamp", 1782 + "primaryKey": false, 1783 + "notNull": false 1784 + } 1785 + }, 1786 + "indexes": {}, 1787 + "foreignKeys": { 1788 + "project_workspace_id_workspace_id_fk": { 1789 + "name": "project_workspace_id_workspace_id_fk", 1790 + "tableFrom": "project", 1791 + "tableTo": "workspace", 1792 + "columnsFrom": ["workspace_id"], 1793 + "columnsTo": ["id"], 1794 + "onDelete": "cascade", 1795 + "onUpdate": "cascade" 1796 + } 1797 + }, 1798 + "compositePrimaryKeys": {}, 1799 + "uniqueConstraints": { 1800 + "project_workspace_id_id_unique": { 1801 + "name": "project_workspace_id_id_unique", 1802 + "nullsNotDistinct": false, 1803 + "columns": ["workspace_id", "id"] 1804 + } 1805 + }, 1806 + "policies": {}, 1807 + "checkConstraints": {}, 1808 + "isRLSEnabled": false 1809 + }, 1810 + "public.session": { 1811 + "name": "session", 1812 + "schema": "", 1813 + "columns": { 1814 + "id": { 1815 + "name": "id", 1816 + "type": "text", 1817 + "primaryKey": true, 1818 + "notNull": true 1819 + }, 1820 + "expires_at": { 1821 + "name": "expires_at", 1822 + "type": "timestamp", 1823 + "primaryKey": false, 1824 + "notNull": true 1825 + }, 1826 + "token": { 1827 + "name": "token", 1828 + "type": "text", 1829 + "primaryKey": false, 1830 + "notNull": true 1831 + }, 1832 + "created_at": { 1833 + "name": "created_at", 1834 + "type": "timestamp", 1835 + "primaryKey": false, 1836 + "notNull": true, 1837 + "default": "now()" 1838 + }, 1839 + "updated_at": { 1840 + "name": "updated_at", 1841 + "type": "timestamp", 1842 + "primaryKey": false, 1843 + "notNull": true 1844 + }, 1845 + "ip_address": { 1846 + "name": "ip_address", 1847 + "type": "text", 1848 + "primaryKey": false, 1849 + "notNull": false 1850 + }, 1851 + "user_agent": { 1852 + "name": "user_agent", 1853 + "type": "text", 1854 + "primaryKey": false, 1855 + "notNull": false 1856 + }, 1857 + "user_id": { 1858 + "name": "user_id", 1859 + "type": "text", 1860 + "primaryKey": false, 1861 + "notNull": true 1862 + }, 1863 + "active_organization_id": { 1864 + "name": "active_organization_id", 1865 + "type": "text", 1866 + "primaryKey": false, 1867 + "notNull": false 1868 + }, 1869 + "active_team_id": { 1870 + "name": "active_team_id", 1871 + "type": "text", 1872 + "primaryKey": false, 1873 + "notNull": false 1874 + } 1875 + }, 1876 + "indexes": { 1877 + "session_userId_idx": { 1878 + "name": "session_userId_idx", 1879 + "columns": [ 1880 + { 1881 + "expression": "user_id", 1882 + "isExpression": false, 1883 + "asc": true, 1884 + "nulls": "last" 1885 + } 1886 + ], 1887 + "isUnique": false, 1888 + "concurrently": false, 1889 + "method": "btree", 1890 + "with": {} 1891 + } 1892 + }, 1893 + "foreignKeys": { 1894 + "session_user_id_user_id_fk": { 1895 + "name": "session_user_id_user_id_fk", 1896 + "tableFrom": "session", 1897 + "tableTo": "user", 1898 + "columnsFrom": ["user_id"], 1899 + "columnsTo": ["id"], 1900 + "onDelete": "cascade", 1901 + "onUpdate": "no action" 1902 + } 1903 + }, 1904 + "compositePrimaryKeys": {}, 1905 + "uniqueConstraints": { 1906 + "session_token_unique": { 1907 + "name": "session_token_unique", 1908 + "nullsNotDistinct": false, 1909 + "columns": ["token"] 1910 + } 1911 + }, 1912 + "policies": {}, 1913 + "checkConstraints": {}, 1914 + "isRLSEnabled": false 1915 + }, 1916 + "public.task_relation": { 1917 + "name": "task_relation", 1918 + "schema": "", 1919 + "columns": { 1920 + "id": { 1921 + "name": "id", 1922 + "type": "text", 1923 + "primaryKey": true, 1924 + "notNull": true 1925 + }, 1926 + "source_task_id": { 1927 + "name": "source_task_id", 1928 + "type": "text", 1929 + "primaryKey": false, 1930 + "notNull": true 1931 + }, 1932 + "target_task_id": { 1933 + "name": "target_task_id", 1934 + "type": "text", 1935 + "primaryKey": false, 1936 + "notNull": true 1937 + }, 1938 + "relation_type": { 1939 + "name": "relation_type", 1940 + "type": "text", 1941 + "primaryKey": false, 1942 + "notNull": true 1943 + }, 1944 + "created_at": { 1945 + "name": "created_at", 1946 + "type": "timestamp", 1947 + "primaryKey": false, 1948 + "notNull": true, 1949 + "default": "now()" 1950 + } 1951 + }, 1952 + "indexes": { 1953 + "task_relation_source_idx": { 1954 + "name": "task_relation_source_idx", 1955 + "columns": [ 1956 + { 1957 + "expression": "source_task_id", 1958 + "isExpression": false, 1959 + "asc": true, 1960 + "nulls": "last" 1961 + } 1962 + ], 1963 + "isUnique": false, 1964 + "concurrently": false, 1965 + "method": "btree", 1966 + "with": {} 1967 + }, 1968 + "task_relation_target_idx": { 1969 + "name": "task_relation_target_idx", 1970 + "columns": [ 1971 + { 1972 + "expression": "target_task_id", 1973 + "isExpression": false, 1974 + "asc": true, 1975 + "nulls": "last" 1976 + } 1977 + ], 1978 + "isUnique": false, 1979 + "concurrently": false, 1980 + "method": "btree", 1981 + "with": {} 1982 + } 1983 + }, 1984 + "foreignKeys": { 1985 + "task_relation_source_task_id_task_id_fk": { 1986 + "name": "task_relation_source_task_id_task_id_fk", 1987 + "tableFrom": "task_relation", 1988 + "tableTo": "task", 1989 + "columnsFrom": ["source_task_id"], 1990 + "columnsTo": ["id"], 1991 + "onDelete": "cascade", 1992 + "onUpdate": "cascade" 1993 + }, 1994 + "task_relation_target_task_id_task_id_fk": { 1995 + "name": "task_relation_target_task_id_task_id_fk", 1996 + "tableFrom": "task_relation", 1997 + "tableTo": "task", 1998 + "columnsFrom": ["target_task_id"], 1999 + "columnsTo": ["id"], 2000 + "onDelete": "cascade", 2001 + "onUpdate": "cascade" 2002 + } 2003 + }, 2004 + "compositePrimaryKeys": {}, 2005 + "uniqueConstraints": {}, 2006 + "policies": {}, 2007 + "checkConstraints": {}, 2008 + "isRLSEnabled": false 2009 + }, 2010 + "public.task": { 2011 + "name": "task", 2012 + "schema": "", 2013 + "columns": { 2014 + "id": { 2015 + "name": "id", 2016 + "type": "text", 2017 + "primaryKey": true, 2018 + "notNull": true 2019 + }, 2020 + "project_id": { 2021 + "name": "project_id", 2022 + "type": "text", 2023 + "primaryKey": false, 2024 + "notNull": true 2025 + }, 2026 + "position": { 2027 + "name": "position", 2028 + "type": "integer", 2029 + "primaryKey": false, 2030 + "notNull": false, 2031 + "default": 0 2032 + }, 2033 + "number": { 2034 + "name": "number", 2035 + "type": "integer", 2036 + "primaryKey": false, 2037 + "notNull": false, 2038 + "default": 1 2039 + }, 2040 + "assignee_id": { 2041 + "name": "assignee_id", 2042 + "type": "text", 2043 + "primaryKey": false, 2044 + "notNull": false 2045 + }, 2046 + "title": { 2047 + "name": "title", 2048 + "type": "text", 2049 + "primaryKey": false, 2050 + "notNull": true 2051 + }, 2052 + "description": { 2053 + "name": "description", 2054 + "type": "text", 2055 + "primaryKey": false, 2056 + "notNull": false 2057 + }, 2058 + "status": { 2059 + "name": "status", 2060 + "type": "text", 2061 + "primaryKey": false, 2062 + "notNull": true, 2063 + "default": "'to-do'" 2064 + }, 2065 + "column_id": { 2066 + "name": "column_id", 2067 + "type": "text", 2068 + "primaryKey": false, 2069 + "notNull": false 2070 + }, 2071 + "priority": { 2072 + "name": "priority", 2073 + "type": "text", 2074 + "primaryKey": false, 2075 + "notNull": false, 2076 + "default": "'low'" 2077 + }, 2078 + "start_date": { 2079 + "name": "start_date", 2080 + "type": "timestamp", 2081 + "primaryKey": false, 2082 + "notNull": false 2083 + }, 2084 + "due_date": { 2085 + "name": "due_date", 2086 + "type": "timestamp", 2087 + "primaryKey": false, 2088 + "notNull": false 2089 + }, 2090 + "created_at": { 2091 + "name": "created_at", 2092 + "type": "timestamp", 2093 + "primaryKey": false, 2094 + "notNull": true, 2095 + "default": "now()" 2096 + }, 2097 + "updated_at": { 2098 + "name": "updated_at", 2099 + "type": "timestamp", 2100 + "primaryKey": false, 2101 + "notNull": true, 2102 + "default": "now()" 2103 + } 2104 + }, 2105 + "indexes": { 2106 + "task_projectId_idx": { 2107 + "name": "task_projectId_idx", 2108 + "columns": [ 2109 + { 2110 + "expression": "project_id", 2111 + "isExpression": false, 2112 + "asc": true, 2113 + "nulls": "last" 2114 + } 2115 + ], 2116 + "isUnique": false, 2117 + "concurrently": false, 2118 + "method": "btree", 2119 + "with": {} 2120 + } 2121 + }, 2122 + "foreignKeys": { 2123 + "task_project_id_project_id_fk": { 2124 + "name": "task_project_id_project_id_fk", 2125 + "tableFrom": "task", 2126 + "tableTo": "project", 2127 + "columnsFrom": ["project_id"], 2128 + "columnsTo": ["id"], 2129 + "onDelete": "cascade", 2130 + "onUpdate": "cascade" 2131 + }, 2132 + "task_assignee_id_user_id_fk": { 2133 + "name": "task_assignee_id_user_id_fk", 2134 + "tableFrom": "task", 2135 + "tableTo": "user", 2136 + "columnsFrom": ["assignee_id"], 2137 + "columnsTo": ["id"], 2138 + "onDelete": "cascade", 2139 + "onUpdate": "cascade" 2140 + }, 2141 + "task_column_id_column_id_fk": { 2142 + "name": "task_column_id_column_id_fk", 2143 + "tableFrom": "task", 2144 + "tableTo": "column", 2145 + "columnsFrom": ["column_id"], 2146 + "columnsTo": ["id"], 2147 + "onDelete": "set null", 2148 + "onUpdate": "cascade" 2149 + } 2150 + }, 2151 + "compositePrimaryKeys": {}, 2152 + "uniqueConstraints": { 2153 + "task_project_number_unique": { 2154 + "name": "task_project_number_unique", 2155 + "nullsNotDistinct": false, 2156 + "columns": ["project_id", "number"] 2157 + } 2158 + }, 2159 + "policies": {}, 2160 + "checkConstraints": {}, 2161 + "isRLSEnabled": false 2162 + }, 2163 + "public.team": { 2164 + "name": "team", 2165 + "schema": "", 2166 + "columns": { 2167 + "id": { 2168 + "name": "id", 2169 + "type": "text", 2170 + "primaryKey": true, 2171 + "notNull": true 2172 + }, 2173 + "name": { 2174 + "name": "name", 2175 + "type": "text", 2176 + "primaryKey": false, 2177 + "notNull": true 2178 + }, 2179 + "workspace_id": { 2180 + "name": "workspace_id", 2181 + "type": "text", 2182 + "primaryKey": false, 2183 + "notNull": true 2184 + }, 2185 + "created_at": { 2186 + "name": "created_at", 2187 + "type": "timestamp", 2188 + "primaryKey": false, 2189 + "notNull": true 2190 + }, 2191 + "updated_at": { 2192 + "name": "updated_at", 2193 + "type": "timestamp", 2194 + "primaryKey": false, 2195 + "notNull": false 2196 + } 2197 + }, 2198 + "indexes": { 2199 + "team_workspaceId_idx": { 2200 + "name": "team_workspaceId_idx", 2201 + "columns": [ 2202 + { 2203 + "expression": "workspace_id", 2204 + "isExpression": false, 2205 + "asc": true, 2206 + "nulls": "last" 2207 + } 2208 + ], 2209 + "isUnique": false, 2210 + "concurrently": false, 2211 + "method": "btree", 2212 + "with": {} 2213 + } 2214 + }, 2215 + "foreignKeys": { 2216 + "team_workspace_id_workspace_id_fk": { 2217 + "name": "team_workspace_id_workspace_id_fk", 2218 + "tableFrom": "team", 2219 + "tableTo": "workspace", 2220 + "columnsFrom": ["workspace_id"], 2221 + "columnsTo": ["id"], 2222 + "onDelete": "cascade", 2223 + "onUpdate": "no action" 2224 + } 2225 + }, 2226 + "compositePrimaryKeys": {}, 2227 + "uniqueConstraints": {}, 2228 + "policies": {}, 2229 + "checkConstraints": {}, 2230 + "isRLSEnabled": false 2231 + }, 2232 + "public.team_member": { 2233 + "name": "team_member", 2234 + "schema": "", 2235 + "columns": { 2236 + "id": { 2237 + "name": "id", 2238 + "type": "text", 2239 + "primaryKey": true, 2240 + "notNull": true 2241 + }, 2242 + "team_id": { 2243 + "name": "team_id", 2244 + "type": "text", 2245 + "primaryKey": false, 2246 + "notNull": true 2247 + }, 2248 + "user_id": { 2249 + "name": "user_id", 2250 + "type": "text", 2251 + "primaryKey": false, 2252 + "notNull": true 2253 + }, 2254 + "created_at": { 2255 + "name": "created_at", 2256 + "type": "timestamp", 2257 + "primaryKey": false, 2258 + "notNull": false 2259 + } 2260 + }, 2261 + "indexes": { 2262 + "teamMember_teamId_idx": { 2263 + "name": "teamMember_teamId_idx", 2264 + "columns": [ 2265 + { 2266 + "expression": "team_id", 2267 + "isExpression": false, 2268 + "asc": true, 2269 + "nulls": "last" 2270 + } 2271 + ], 2272 + "isUnique": false, 2273 + "concurrently": false, 2274 + "method": "btree", 2275 + "with": {} 2276 + }, 2277 + "teamMember_userId_idx": { 2278 + "name": "teamMember_userId_idx", 2279 + "columns": [ 2280 + { 2281 + "expression": "user_id", 2282 + "isExpression": false, 2283 + "asc": true, 2284 + "nulls": "last" 2285 + } 2286 + ], 2287 + "isUnique": false, 2288 + "concurrently": false, 2289 + "method": "btree", 2290 + "with": {} 2291 + } 2292 + }, 2293 + "foreignKeys": { 2294 + "team_member_team_id_team_id_fk": { 2295 + "name": "team_member_team_id_team_id_fk", 2296 + "tableFrom": "team_member", 2297 + "tableTo": "team", 2298 + "columnsFrom": ["team_id"], 2299 + "columnsTo": ["id"], 2300 + "onDelete": "cascade", 2301 + "onUpdate": "no action" 2302 + }, 2303 + "team_member_user_id_user_id_fk": { 2304 + "name": "team_member_user_id_user_id_fk", 2305 + "tableFrom": "team_member", 2306 + "tableTo": "user", 2307 + "columnsFrom": ["user_id"], 2308 + "columnsTo": ["id"], 2309 + "onDelete": "cascade", 2310 + "onUpdate": "no action" 2311 + } 2312 + }, 2313 + "compositePrimaryKeys": {}, 2314 + "uniqueConstraints": {}, 2315 + "policies": {}, 2316 + "checkConstraints": {}, 2317 + "isRLSEnabled": false 2318 + }, 2319 + "public.time_entry": { 2320 + "name": "time_entry", 2321 + "schema": "", 2322 + "columns": { 2323 + "id": { 2324 + "name": "id", 2325 + "type": "text", 2326 + "primaryKey": true, 2327 + "notNull": true 2328 + }, 2329 + "task_id": { 2330 + "name": "task_id", 2331 + "type": "text", 2332 + "primaryKey": false, 2333 + "notNull": true 2334 + }, 2335 + "user_id": { 2336 + "name": "user_id", 2337 + "type": "text", 2338 + "primaryKey": false, 2339 + "notNull": false 2340 + }, 2341 + "description": { 2342 + "name": "description", 2343 + "type": "text", 2344 + "primaryKey": false, 2345 + "notNull": false 2346 + }, 2347 + "start_time": { 2348 + "name": "start_time", 2349 + "type": "timestamp", 2350 + "primaryKey": false, 2351 + "notNull": true 2352 + }, 2353 + "end_time": { 2354 + "name": "end_time", 2355 + "type": "timestamp", 2356 + "primaryKey": false, 2357 + "notNull": false 2358 + }, 2359 + "duration": { 2360 + "name": "duration", 2361 + "type": "integer", 2362 + "primaryKey": false, 2363 + "notNull": false, 2364 + "default": 0 2365 + }, 2366 + "created_at": { 2367 + "name": "created_at", 2368 + "type": "timestamp", 2369 + "primaryKey": false, 2370 + "notNull": true, 2371 + "default": "now()" 2372 + } 2373 + }, 2374 + "indexes": {}, 2375 + "foreignKeys": { 2376 + "time_entry_task_id_task_id_fk": { 2377 + "name": "time_entry_task_id_task_id_fk", 2378 + "tableFrom": "time_entry", 2379 + "tableTo": "task", 2380 + "columnsFrom": ["task_id"], 2381 + "columnsTo": ["id"], 2382 + "onDelete": "cascade", 2383 + "onUpdate": "cascade" 2384 + }, 2385 + "time_entry_user_id_user_id_fk": { 2386 + "name": "time_entry_user_id_user_id_fk", 2387 + "tableFrom": "time_entry", 2388 + "tableTo": "user", 2389 + "columnsFrom": ["user_id"], 2390 + "columnsTo": ["id"], 2391 + "onDelete": "cascade", 2392 + "onUpdate": "cascade" 2393 + } 2394 + }, 2395 + "compositePrimaryKeys": {}, 2396 + "uniqueConstraints": {}, 2397 + "policies": {}, 2398 + "checkConstraints": {}, 2399 + "isRLSEnabled": false 2400 + }, 2401 + "public.user": { 2402 + "name": "user", 2403 + "schema": "", 2404 + "columns": { 2405 + "id": { 2406 + "name": "id", 2407 + "type": "text", 2408 + "primaryKey": true, 2409 + "notNull": true 2410 + }, 2411 + "name": { 2412 + "name": "name", 2413 + "type": "text", 2414 + "primaryKey": false, 2415 + "notNull": true 2416 + }, 2417 + "email": { 2418 + "name": "email", 2419 + "type": "text", 2420 + "primaryKey": false, 2421 + "notNull": true 2422 + }, 2423 + "email_verified": { 2424 + "name": "email_verified", 2425 + "type": "boolean", 2426 + "primaryKey": false, 2427 + "notNull": true 2428 + }, 2429 + "image": { 2430 + "name": "image", 2431 + "type": "text", 2432 + "primaryKey": false, 2433 + "notNull": false 2434 + }, 2435 + "locale": { 2436 + "name": "locale", 2437 + "type": "text", 2438 + "primaryKey": false, 2439 + "notNull": false 2440 + }, 2441 + "created_at": { 2442 + "name": "created_at", 2443 + "type": "timestamp", 2444 + "primaryKey": false, 2445 + "notNull": true, 2446 + "default": "now()" 2447 + }, 2448 + "updated_at": { 2449 + "name": "updated_at", 2450 + "type": "timestamp", 2451 + "primaryKey": false, 2452 + "notNull": true, 2453 + "default": "now()" 2454 + }, 2455 + "is_anonymous": { 2456 + "name": "is_anonymous", 2457 + "type": "boolean", 2458 + "primaryKey": false, 2459 + "notNull": false, 2460 + "default": false 2461 + } 2462 + }, 2463 + "indexes": {}, 2464 + "foreignKeys": {}, 2465 + "compositePrimaryKeys": {}, 2466 + "uniqueConstraints": { 2467 + "user_email_unique": { 2468 + "name": "user_email_unique", 2469 + "nullsNotDistinct": false, 2470 + "columns": ["email"] 2471 + } 2472 + }, 2473 + "policies": {}, 2474 + "checkConstraints": {}, 2475 + "isRLSEnabled": false 2476 + }, 2477 + "public.user_notification_preference": { 2478 + "name": "user_notification_preference", 2479 + "schema": "", 2480 + "columns": { 2481 + "id": { 2482 + "name": "id", 2483 + "type": "text", 2484 + "primaryKey": true, 2485 + "notNull": true 2486 + }, 2487 + "user_id": { 2488 + "name": "user_id", 2489 + "type": "text", 2490 + "primaryKey": false, 2491 + "notNull": true 2492 + }, 2493 + "email_enabled": { 2494 + "name": "email_enabled", 2495 + "type": "boolean", 2496 + "primaryKey": false, 2497 + "notNull": true, 2498 + "default": false 2499 + }, 2500 + "ntfy_enabled": { 2501 + "name": "ntfy_enabled", 2502 + "type": "boolean", 2503 + "primaryKey": false, 2504 + "notNull": true, 2505 + "default": false 2506 + }, 2507 + "ntfy_server_url": { 2508 + "name": "ntfy_server_url", 2509 + "type": "text", 2510 + "primaryKey": false, 2511 + "notNull": false 2512 + }, 2513 + "ntfy_topic": { 2514 + "name": "ntfy_topic", 2515 + "type": "text", 2516 + "primaryKey": false, 2517 + "notNull": false 2518 + }, 2519 + "ntfy_token": { 2520 + "name": "ntfy_token", 2521 + "type": "text", 2522 + "primaryKey": false, 2523 + "notNull": false 2524 + }, 2525 + "gotify_enabled": { 2526 + "name": "gotify_enabled", 2527 + "type": "boolean", 2528 + "primaryKey": false, 2529 + "notNull": true, 2530 + "default": false 2531 + }, 2532 + "gotify_server_url": { 2533 + "name": "gotify_server_url", 2534 + "type": "text", 2535 + "primaryKey": false, 2536 + "notNull": false 2537 + }, 2538 + "gotify_token": { 2539 + "name": "gotify_token", 2540 + "type": "text", 2541 + "primaryKey": false, 2542 + "notNull": false 2543 + }, 2544 + "webhook_enabled": { 2545 + "name": "webhook_enabled", 2546 + "type": "boolean", 2547 + "primaryKey": false, 2548 + "notNull": true, 2549 + "default": false 2550 + }, 2551 + "webhook_url": { 2552 + "name": "webhook_url", 2553 + "type": "text", 2554 + "primaryKey": false, 2555 + "notNull": false 2556 + }, 2557 + "webhook_secret": { 2558 + "name": "webhook_secret", 2559 + "type": "text", 2560 + "primaryKey": false, 2561 + "notNull": false 2562 + }, 2563 + "created_at": { 2564 + "name": "created_at", 2565 + "type": "timestamp", 2566 + "primaryKey": false, 2567 + "notNull": true, 2568 + "default": "now()" 2569 + }, 2570 + "updated_at": { 2571 + "name": "updated_at", 2572 + "type": "timestamp", 2573 + "primaryKey": false, 2574 + "notNull": true, 2575 + "default": "now()" 2576 + } 2577 + }, 2578 + "indexes": {}, 2579 + "foreignKeys": { 2580 + "user_notification_preference_user_id_user_id_fk": { 2581 + "name": "user_notification_preference_user_id_user_id_fk", 2582 + "tableFrom": "user_notification_preference", 2583 + "tableTo": "user", 2584 + "columnsFrom": ["user_id"], 2585 + "columnsTo": ["id"], 2586 + "onDelete": "cascade", 2587 + "onUpdate": "cascade" 2588 + } 2589 + }, 2590 + "compositePrimaryKeys": {}, 2591 + "uniqueConstraints": { 2592 + "user_notification_preference_user_id_unique": { 2593 + "name": "user_notification_preference_user_id_unique", 2594 + "nullsNotDistinct": false, 2595 + "columns": ["user_id"] 2596 + } 2597 + }, 2598 + "policies": {}, 2599 + "checkConstraints": {}, 2600 + "isRLSEnabled": false 2601 + }, 2602 + "public.user_notification_workspace_project": { 2603 + "name": "user_notification_workspace_project", 2604 + "schema": "", 2605 + "columns": { 2606 + "id": { 2607 + "name": "id", 2608 + "type": "text", 2609 + "primaryKey": true, 2610 + "notNull": true 2611 + }, 2612 + "workspace_id": { 2613 + "name": "workspace_id", 2614 + "type": "text", 2615 + "primaryKey": false, 2616 + "notNull": true 2617 + }, 2618 + "workspace_rule_id": { 2619 + "name": "workspace_rule_id", 2620 + "type": "text", 2621 + "primaryKey": false, 2622 + "notNull": true 2623 + }, 2624 + "project_id": { 2625 + "name": "project_id", 2626 + "type": "text", 2627 + "primaryKey": false, 2628 + "notNull": true 2629 + }, 2630 + "created_at": { 2631 + "name": "created_at", 2632 + "type": "timestamp", 2633 + "primaryKey": false, 2634 + "notNull": true, 2635 + "default": "now()" 2636 + }, 2637 + "updated_at": { 2638 + "name": "updated_at", 2639 + "type": "timestamp", 2640 + "primaryKey": false, 2641 + "notNull": true, 2642 + "default": "now()" 2643 + } 2644 + }, 2645 + "indexes": { 2646 + "user_notification_workspace_project_ruleId_idx": { 2647 + "name": "user_notification_workspace_project_ruleId_idx", 2648 + "columns": [ 2649 + { 2650 + "expression": "workspace_rule_id", 2651 + "isExpression": false, 2652 + "asc": true, 2653 + "nulls": "last" 2654 + } 2655 + ], 2656 + "isUnique": false, 2657 + "concurrently": false, 2658 + "method": "btree", 2659 + "with": {} 2660 + }, 2661 + "user_notification_workspace_project_projectId_idx": { 2662 + "name": "user_notification_workspace_project_projectId_idx", 2663 + "columns": [ 2664 + { 2665 + "expression": "project_id", 2666 + "isExpression": false, 2667 + "asc": true, 2668 + "nulls": "last" 2669 + } 2670 + ], 2671 + "isUnique": false, 2672 + "concurrently": false, 2673 + "method": "btree", 2674 + "with": {} 2675 + } 2676 + }, 2677 + "foreignKeys": { 2678 + "user_notification_workspace_project_workspace_id_workspace_id_fk": { 2679 + "name": "user_notification_workspace_project_workspace_id_workspace_id_fk", 2680 + "tableFrom": "user_notification_workspace_project", 2681 + "tableTo": "workspace", 2682 + "columnsFrom": ["workspace_id"], 2683 + "columnsTo": ["id"], 2684 + "onDelete": "cascade", 2685 + "onUpdate": "cascade" 2686 + }, 2687 + "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk": { 2688 + "name": "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk", 2689 + "tableFrom": "user_notification_workspace_project", 2690 + "tableTo": "user_notification_workspace_rule", 2691 + "columnsFrom": ["workspace_id", "workspace_rule_id"], 2692 + "columnsTo": ["workspace_id", "id"], 2693 + "onDelete": "cascade", 2694 + "onUpdate": "cascade" 2695 + }, 2696 + "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk": { 2697 + "name": "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk", 2698 + "tableFrom": "user_notification_workspace_project", 2699 + "tableTo": "project", 2700 + "columnsFrom": ["workspace_id", "project_id"], 2701 + "columnsTo": ["workspace_id", "id"], 2702 + "onDelete": "cascade", 2703 + "onUpdate": "cascade" 2704 + } 2705 + }, 2706 + "compositePrimaryKeys": {}, 2707 + "uniqueConstraints": { 2708 + "user_notification_workspace_project_rule_project_unique": { 2709 + "name": "user_notification_workspace_project_rule_project_unique", 2710 + "nullsNotDistinct": false, 2711 + "columns": ["workspace_rule_id", "project_id"] 2712 + } 2713 + }, 2714 + "policies": {}, 2715 + "checkConstraints": {}, 2716 + "isRLSEnabled": false 2717 + }, 2718 + "public.user_notification_workspace_rule": { 2719 + "name": "user_notification_workspace_rule", 2720 + "schema": "", 2721 + "columns": { 2722 + "id": { 2723 + "name": "id", 2724 + "type": "text", 2725 + "primaryKey": true, 2726 + "notNull": true 2727 + }, 2728 + "user_id": { 2729 + "name": "user_id", 2730 + "type": "text", 2731 + "primaryKey": false, 2732 + "notNull": true 2733 + }, 2734 + "workspace_id": { 2735 + "name": "workspace_id", 2736 + "type": "text", 2737 + "primaryKey": false, 2738 + "notNull": true 2739 + }, 2740 + "is_active": { 2741 + "name": "is_active", 2742 + "type": "boolean", 2743 + "primaryKey": false, 2744 + "notNull": true, 2745 + "default": true 2746 + }, 2747 + "email_enabled": { 2748 + "name": "email_enabled", 2749 + "type": "boolean", 2750 + "primaryKey": false, 2751 + "notNull": true, 2752 + "default": false 2753 + }, 2754 + "ntfy_enabled": { 2755 + "name": "ntfy_enabled", 2756 + "type": "boolean", 2757 + "primaryKey": false, 2758 + "notNull": true, 2759 + "default": false 2760 + }, 2761 + "gotify_enabled": { 2762 + "name": "gotify_enabled", 2763 + "type": "boolean", 2764 + "primaryKey": false, 2765 + "notNull": true, 2766 + "default": false 2767 + }, 2768 + "webhook_enabled": { 2769 + "name": "webhook_enabled", 2770 + "type": "boolean", 2771 + "primaryKey": false, 2772 + "notNull": true, 2773 + "default": false 2774 + }, 2775 + "project_mode": { 2776 + "name": "project_mode", 2777 + "type": "text", 2778 + "primaryKey": false, 2779 + "notNull": true, 2780 + "default": "'all'" 2781 + }, 2782 + "created_at": { 2783 + "name": "created_at", 2784 + "type": "timestamp", 2785 + "primaryKey": false, 2786 + "notNull": true, 2787 + "default": "now()" 2788 + }, 2789 + "updated_at": { 2790 + "name": "updated_at", 2791 + "type": "timestamp", 2792 + "primaryKey": false, 2793 + "notNull": true, 2794 + "default": "now()" 2795 + } 2796 + }, 2797 + "indexes": { 2798 + "user_notification_workspace_rule_userId_idx": { 2799 + "name": "user_notification_workspace_rule_userId_idx", 2800 + "columns": [ 2801 + { 2802 + "expression": "user_id", 2803 + "isExpression": false, 2804 + "asc": true, 2805 + "nulls": "last" 2806 + } 2807 + ], 2808 + "isUnique": false, 2809 + "concurrently": false, 2810 + "method": "btree", 2811 + "with": {} 2812 + }, 2813 + "user_notification_workspace_rule_workspaceId_idx": { 2814 + "name": "user_notification_workspace_rule_workspaceId_idx", 2815 + "columns": [ 2816 + { 2817 + "expression": "workspace_id", 2818 + "isExpression": false, 2819 + "asc": true, 2820 + "nulls": "last" 2821 + } 2822 + ], 2823 + "isUnique": false, 2824 + "concurrently": false, 2825 + "method": "btree", 2826 + "with": {} 2827 + } 2828 + }, 2829 + "foreignKeys": { 2830 + "user_notification_workspace_rule_user_id_user_id_fk": { 2831 + "name": "user_notification_workspace_rule_user_id_user_id_fk", 2832 + "tableFrom": "user_notification_workspace_rule", 2833 + "tableTo": "user", 2834 + "columnsFrom": ["user_id"], 2835 + "columnsTo": ["id"], 2836 + "onDelete": "cascade", 2837 + "onUpdate": "cascade" 2838 + }, 2839 + "user_notification_workspace_rule_workspace_id_workspace_id_fk": { 2840 + "name": "user_notification_workspace_rule_workspace_id_workspace_id_fk", 2841 + "tableFrom": "user_notification_workspace_rule", 2842 + "tableTo": "workspace", 2843 + "columnsFrom": ["workspace_id"], 2844 + "columnsTo": ["id"], 2845 + "onDelete": "cascade", 2846 + "onUpdate": "cascade" 2847 + } 2848 + }, 2849 + "compositePrimaryKeys": {}, 2850 + "uniqueConstraints": { 2851 + "user_notification_workspace_rule_user_workspace_unique": { 2852 + "name": "user_notification_workspace_rule_user_workspace_unique", 2853 + "nullsNotDistinct": false, 2854 + "columns": ["user_id", "workspace_id"] 2855 + }, 2856 + "user_notification_workspace_rule_workspace_id_id_unique": { 2857 + "name": "user_notification_workspace_rule_workspace_id_id_unique", 2858 + "nullsNotDistinct": false, 2859 + "columns": ["workspace_id", "id"] 2860 + } 2861 + }, 2862 + "policies": {}, 2863 + "checkConstraints": {}, 2864 + "isRLSEnabled": false 2865 + }, 2866 + "public.verification": { 2867 + "name": "verification", 2868 + "schema": "", 2869 + "columns": { 2870 + "id": { 2871 + "name": "id", 2872 + "type": "text", 2873 + "primaryKey": true, 2874 + "notNull": true 2875 + }, 2876 + "identifier": { 2877 + "name": "identifier", 2878 + "type": "text", 2879 + "primaryKey": false, 2880 + "notNull": true 2881 + }, 2882 + "value": { 2883 + "name": "value", 2884 + "type": "text", 2885 + "primaryKey": false, 2886 + "notNull": true 2887 + }, 2888 + "expires_at": { 2889 + "name": "expires_at", 2890 + "type": "timestamp", 2891 + "primaryKey": false, 2892 + "notNull": true 2893 + }, 2894 + "created_at": { 2895 + "name": "created_at", 2896 + "type": "timestamp", 2897 + "primaryKey": false, 2898 + "notNull": true, 2899 + "default": "now()" 2900 + }, 2901 + "updated_at": { 2902 + "name": "updated_at", 2903 + "type": "timestamp", 2904 + "primaryKey": false, 2905 + "notNull": true, 2906 + "default": "now()" 2907 + } 2908 + }, 2909 + "indexes": { 2910 + "verification_identifier_idx": { 2911 + "name": "verification_identifier_idx", 2912 + "columns": [ 2913 + { 2914 + "expression": "identifier", 2915 + "isExpression": false, 2916 + "asc": true, 2917 + "nulls": "last" 2918 + } 2919 + ], 2920 + "isUnique": false, 2921 + "concurrently": false, 2922 + "method": "btree", 2923 + "with": {} 2924 + } 2925 + }, 2926 + "foreignKeys": {}, 2927 + "compositePrimaryKeys": {}, 2928 + "uniqueConstraints": {}, 2929 + "policies": {}, 2930 + "checkConstraints": {}, 2931 + "isRLSEnabled": false 2932 + }, 2933 + "public.workflow_rule": { 2934 + "name": "workflow_rule", 2935 + "schema": "", 2936 + "columns": { 2937 + "id": { 2938 + "name": "id", 2939 + "type": "text", 2940 + "primaryKey": true, 2941 + "notNull": true 2942 + }, 2943 + "project_id": { 2944 + "name": "project_id", 2945 + "type": "text", 2946 + "primaryKey": false, 2947 + "notNull": true 2948 + }, 2949 + "integration_type": { 2950 + "name": "integration_type", 2951 + "type": "text", 2952 + "primaryKey": false, 2953 + "notNull": true 2954 + }, 2955 + "event_type": { 2956 + "name": "event_type", 2957 + "type": "text", 2958 + "primaryKey": false, 2959 + "notNull": true 2960 + }, 2961 + "column_id": { 2962 + "name": "column_id", 2963 + "type": "text", 2964 + "primaryKey": false, 2965 + "notNull": true 2966 + }, 2967 + "created_at": { 2968 + "name": "created_at", 2969 + "type": "timestamp", 2970 + "primaryKey": false, 2971 + "notNull": true, 2972 + "default": "now()" 2973 + }, 2974 + "updated_at": { 2975 + "name": "updated_at", 2976 + "type": "timestamp", 2977 + "primaryKey": false, 2978 + "notNull": true, 2979 + "default": "now()" 2980 + } 2981 + }, 2982 + "indexes": { 2983 + "workflow_rule_projectId_idx": { 2984 + "name": "workflow_rule_projectId_idx", 2985 + "columns": [ 2986 + { 2987 + "expression": "project_id", 2988 + "isExpression": false, 2989 + "asc": true, 2990 + "nulls": "last" 2991 + } 2992 + ], 2993 + "isUnique": false, 2994 + "concurrently": false, 2995 + "method": "btree", 2996 + "with": {} 2997 + } 2998 + }, 2999 + "foreignKeys": { 3000 + "workflow_rule_project_id_project_id_fk": { 3001 + "name": "workflow_rule_project_id_project_id_fk", 3002 + "tableFrom": "workflow_rule", 3003 + "tableTo": "project", 3004 + "columnsFrom": ["project_id"], 3005 + "columnsTo": ["id"], 3006 + "onDelete": "cascade", 3007 + "onUpdate": "cascade" 3008 + }, 3009 + "workflow_rule_column_id_column_id_fk": { 3010 + "name": "workflow_rule_column_id_column_id_fk", 3011 + "tableFrom": "workflow_rule", 3012 + "tableTo": "column", 3013 + "columnsFrom": ["column_id"], 3014 + "columnsTo": ["id"], 3015 + "onDelete": "cascade", 3016 + "onUpdate": "cascade" 3017 + } 3018 + }, 3019 + "compositePrimaryKeys": {}, 3020 + "uniqueConstraints": {}, 3021 + "policies": {}, 3022 + "checkConstraints": {}, 3023 + "isRLSEnabled": false 3024 + }, 3025 + "public.workspace": { 3026 + "name": "workspace", 3027 + "schema": "", 3028 + "columns": { 3029 + "id": { 3030 + "name": "id", 3031 + "type": "text", 3032 + "primaryKey": true, 3033 + "notNull": true 3034 + }, 3035 + "name": { 3036 + "name": "name", 3037 + "type": "text", 3038 + "primaryKey": false, 3039 + "notNull": true 3040 + }, 3041 + "slug": { 3042 + "name": "slug", 3043 + "type": "text", 3044 + "primaryKey": false, 3045 + "notNull": true 3046 + }, 3047 + "logo": { 3048 + "name": "logo", 3049 + "type": "text", 3050 + "primaryKey": false, 3051 + "notNull": false 3052 + }, 3053 + "metadata": { 3054 + "name": "metadata", 3055 + "type": "text", 3056 + "primaryKey": false, 3057 + "notNull": false 3058 + }, 3059 + "description": { 3060 + "name": "description", 3061 + "type": "text", 3062 + "primaryKey": false, 3063 + "notNull": false 3064 + }, 3065 + "created_at": { 3066 + "name": "created_at", 3067 + "type": "timestamp", 3068 + "primaryKey": false, 3069 + "notNull": true 3070 + } 3071 + }, 3072 + "indexes": {}, 3073 + "foreignKeys": {}, 3074 + "compositePrimaryKeys": {}, 3075 + "uniqueConstraints": { 3076 + "workspace_slug_unique": { 3077 + "name": "workspace_slug_unique", 3078 + "nullsNotDistinct": false, 3079 + "columns": ["slug"] 3080 + } 3081 + }, 3082 + "policies": {}, 3083 + "checkConstraints": {}, 3084 + "isRLSEnabled": false 3085 + }, 3086 + "public.workspace_member": { 3087 + "name": "workspace_member", 3088 + "schema": "", 3089 + "columns": { 3090 + "id": { 3091 + "name": "id", 3092 + "type": "text", 3093 + "primaryKey": true, 3094 + "notNull": true 3095 + }, 3096 + "workspace_id": { 3097 + "name": "workspace_id", 3098 + "type": "text", 3099 + "primaryKey": false, 3100 + "notNull": true 3101 + }, 3102 + "user_id": { 3103 + "name": "user_id", 3104 + "type": "text", 3105 + "primaryKey": false, 3106 + "notNull": true 3107 + }, 3108 + "role": { 3109 + "name": "role", 3110 + "type": "text", 3111 + "primaryKey": false, 3112 + "notNull": true, 3113 + "default": "'member'" 3114 + }, 3115 + "joined_at": { 3116 + "name": "joined_at", 3117 + "type": "timestamp", 3118 + "primaryKey": false, 3119 + "notNull": true 3120 + } 3121 + }, 3122 + "indexes": { 3123 + "workspace_member_workspaceId_idx": { 3124 + "name": "workspace_member_workspaceId_idx", 3125 + "columns": [ 3126 + { 3127 + "expression": "workspace_id", 3128 + "isExpression": false, 3129 + "asc": true, 3130 + "nulls": "last" 3131 + } 3132 + ], 3133 + "isUnique": false, 3134 + "concurrently": false, 3135 + "method": "btree", 3136 + "with": {} 3137 + }, 3138 + "workspace_member_userId_idx": { 3139 + "name": "workspace_member_userId_idx", 3140 + "columns": [ 3141 + { 3142 + "expression": "user_id", 3143 + "isExpression": false, 3144 + "asc": true, 3145 + "nulls": "last" 3146 + } 3147 + ], 3148 + "isUnique": false, 3149 + "concurrently": false, 3150 + "method": "btree", 3151 + "with": {} 3152 + } 3153 + }, 3154 + "foreignKeys": { 3155 + "workspace_member_workspace_id_workspace_id_fk": { 3156 + "name": "workspace_member_workspace_id_workspace_id_fk", 3157 + "tableFrom": "workspace_member", 3158 + "tableTo": "workspace", 3159 + "columnsFrom": ["workspace_id"], 3160 + "columnsTo": ["id"], 3161 + "onDelete": "cascade", 3162 + "onUpdate": "no action" 3163 + }, 3164 + "workspace_member_user_id_user_id_fk": { 3165 + "name": "workspace_member_user_id_user_id_fk", 3166 + "tableFrom": "workspace_member", 3167 + "tableTo": "user", 3168 + "columnsFrom": ["user_id"], 3169 + "columnsTo": ["id"], 3170 + "onDelete": "cascade", 3171 + "onUpdate": "no action" 3172 + } 3173 + }, 3174 + "compositePrimaryKeys": {}, 3175 + "uniqueConstraints": {}, 3176 + "policies": {}, 3177 + "checkConstraints": {}, 3178 + "isRLSEnabled": false 3179 + } 3180 + }, 3181 + "enums": {}, 3182 + "schemas": {}, 3183 + "sequences": {}, 3184 + "roles": {}, 3185 + "policies": {}, 3186 + "views": {}, 3187 + "_meta": { 3188 + "columns": {}, 3189 + "schemas": {}, 3190 + "tables": {} 3191 + } 3192 + }
+193 -193
apps/api/drizzle/meta/_journal.json
··· 1 1 { 2 - "version": "7", 3 - "dialect": "postgresql", 4 - "entries": [ 5 - { 6 - "idx": 0, 7 - "version": "7", 8 - "when": 1750083630484, 9 - "tag": "0000_confused_pixie", 10 - "breakpoints": true 11 - }, 12 - { 13 - "idx": 1, 14 - "version": "7", 15 - "when": 1750504871903, 16 - "tag": "0001_natural_robin_chapel", 17 - "breakpoints": true 18 - }, 19 - { 20 - "idx": 2, 21 - "version": "7", 22 - "when": 1752666410349, 23 - "tag": "0002_easy_miek", 24 - "breakpoints": true 25 - }, 26 - { 27 - "idx": 3, 28 - "version": "7", 29 - "when": 1755016234993, 30 - "tag": "0003_round_human_fly", 31 - "breakpoints": true 32 - }, 33 - { 34 - "idx": 4, 35 - "version": "7", 36 - "when": 1755720143109, 37 - "tag": "0004_curved_stingray", 38 - "breakpoints": true 39 - }, 40 - { 41 - "idx": 5, 42 - "version": "7", 43 - "when": 1759234332200, 44 - "tag": "0005_jittery_monster_badoon", 45 - "breakpoints": true 46 - }, 47 - { 48 - "idx": 6, 49 - "version": "7", 50 - "when": 1733703124000, 51 - "tag": "0006_rename_active_workspace_to_organization", 52 - "breakpoints": true 53 - }, 54 - { 55 - "idx": 7, 56 - "version": "7", 57 - "when": 1765390825431, 58 - "tag": "0007_careful_moira_mactaggert", 59 - "breakpoints": true 60 - }, 61 - { 62 - "idx": 8, 63 - "version": "7", 64 - "when": 1765392072530, 65 - "tag": "0008_square_silvermane", 66 - "breakpoints": true 67 - }, 68 - { 69 - "idx": 9, 70 - "version": "7", 71 - "when": 1766950050412, 72 - "tag": "0009_harsh_blacklash", 73 - "breakpoints": true 74 - }, 75 - { 76 - "idx": 10, 77 - "version": "7", 78 - "when": 1767037216750, 79 - "tag": "0010_bouncy_taskmaster", 80 - "breakpoints": true 81 - }, 82 - { 83 - "idx": 11, 84 - "version": "7", 85 - "when": 1767037714394, 86 - "tag": "0011_flashy_masked_marvel", 87 - "breakpoints": true 88 - }, 89 - { 90 - "idx": 12, 91 - "version": "7", 92 - "when": 1770375054098, 93 - "tag": "0012_mixed_thor_girl", 94 - "breakpoints": true 95 - }, 96 - { 97 - "idx": 13, 98 - "version": "7", 99 - "when": 1772660160328, 100 - "tag": "0013_quiet_gladiator", 101 - "breakpoints": true 102 - }, 103 - { 104 - "idx": 14, 105 - "version": "7", 106 - "when": 1773259300000, 107 - "tag": "0014_private_assets", 108 - "breakpoints": true 109 - }, 110 - { 111 - "idx": 15, 112 - "version": "7", 113 - "when": 1773947411304, 114 - "tag": "0015_add_comment_and_archival", 115 - "breakpoints": true 116 - }, 117 - { 118 - "idx": 16, 119 - "version": "7", 120 - "when": 1773952461673, 121 - "tag": "0016_add_task_relation", 122 - "breakpoints": true 123 - }, 124 - { 125 - "idx": 17, 126 - "version": "7", 127 - "when": 1774269662424, 128 - "tag": "0017_white_omega_flight", 129 - "breakpoints": true 130 - }, 131 - { 132 - "idx": 18, 133 - "version": "7", 134 - "when": 1774726270729, 135 - "tag": "0018_motionless_luckman", 136 - "breakpoints": true 137 - }, 138 - { 139 - "idx": 19, 140 - "version": "7", 141 - "when": 1774823200346, 142 - "tag": "0019_sloppy_meteorite", 143 - "breakpoints": true 144 - }, 145 - { 146 - "idx": 20, 147 - "version": "7", 148 - "when": 1774908000000, 149 - "tag": "0020_gitea_dedup_guards", 150 - "breakpoints": true 151 - }, 152 - { 153 - "idx": 21, 154 - "version": "7", 155 - "when": 1774942282393, 156 - "tag": "0021_pretty_smiling_tiger", 157 - "breakpoints": true 158 - }, 159 - { 160 - "idx": 22, 161 - "version": "7", 162 - "when": 1774944216644, 163 - "tag": "0022_material_electro", 164 - "breakpoints": true 165 - }, 166 - { 167 - "idx": 23, 168 - "version": "7", 169 - "when": 1775215568801, 170 - "tag": "0023_cold_omega_red", 171 - "breakpoints": true 172 - }, 173 - { 174 - "idx": 24, 175 - "version": "7", 176 - "when": 1775215568802, 177 - "tag": "0024_device_code_timestamps", 178 - "breakpoints": true 179 - }, 180 - { 181 - "idx": 25, 182 - "version": "7", 183 - "when": 1775156843372, 184 - "tag": "0025_early_owl", 185 - "breakpoints": true 186 - }, 187 - { 188 - "idx": 26, 189 - "version": "7", 190 - "when": 1775102400000, 191 - "tag": "0026_encrypt_notification_preference_secrets", 192 - "breakpoints": true 193 - } 194 - ] 2 + "version": "7", 3 + "dialect": "postgresql", 4 + "entries": [ 5 + { 6 + "idx": 0, 7 + "version": "7", 8 + "when": 1750083630484, 9 + "tag": "0000_confused_pixie", 10 + "breakpoints": true 11 + }, 12 + { 13 + "idx": 1, 14 + "version": "7", 15 + "when": 1750504871903, 16 + "tag": "0001_natural_robin_chapel", 17 + "breakpoints": true 18 + }, 19 + { 20 + "idx": 2, 21 + "version": "7", 22 + "when": 1752666410349, 23 + "tag": "0002_easy_miek", 24 + "breakpoints": true 25 + }, 26 + { 27 + "idx": 3, 28 + "version": "7", 29 + "when": 1755016234993, 30 + "tag": "0003_round_human_fly", 31 + "breakpoints": true 32 + }, 33 + { 34 + "idx": 4, 35 + "version": "7", 36 + "when": 1755720143109, 37 + "tag": "0004_curved_stingray", 38 + "breakpoints": true 39 + }, 40 + { 41 + "idx": 5, 42 + "version": "7", 43 + "when": 1759234332200, 44 + "tag": "0005_jittery_monster_badoon", 45 + "breakpoints": true 46 + }, 47 + { 48 + "idx": 6, 49 + "version": "7", 50 + "when": 1733703124000, 51 + "tag": "0006_rename_active_workspace_to_organization", 52 + "breakpoints": true 53 + }, 54 + { 55 + "idx": 7, 56 + "version": "7", 57 + "when": 1765390825431, 58 + "tag": "0007_careful_moira_mactaggert", 59 + "breakpoints": true 60 + }, 61 + { 62 + "idx": 8, 63 + "version": "7", 64 + "when": 1765392072530, 65 + "tag": "0008_square_silvermane", 66 + "breakpoints": true 67 + }, 68 + { 69 + "idx": 9, 70 + "version": "7", 71 + "when": 1766950050412, 72 + "tag": "0009_harsh_blacklash", 73 + "breakpoints": true 74 + }, 75 + { 76 + "idx": 10, 77 + "version": "7", 78 + "when": 1767037216750, 79 + "tag": "0010_bouncy_taskmaster", 80 + "breakpoints": true 81 + }, 82 + { 83 + "idx": 11, 84 + "version": "7", 85 + "when": 1767037714394, 86 + "tag": "0011_flashy_masked_marvel", 87 + "breakpoints": true 88 + }, 89 + { 90 + "idx": 12, 91 + "version": "7", 92 + "when": 1770375054098, 93 + "tag": "0012_mixed_thor_girl", 94 + "breakpoints": true 95 + }, 96 + { 97 + "idx": 13, 98 + "version": "7", 99 + "when": 1772660160328, 100 + "tag": "0013_quiet_gladiator", 101 + "breakpoints": true 102 + }, 103 + { 104 + "idx": 14, 105 + "version": "7", 106 + "when": 1773259300000, 107 + "tag": "0014_private_assets", 108 + "breakpoints": true 109 + }, 110 + { 111 + "idx": 15, 112 + "version": "7", 113 + "when": 1773947411304, 114 + "tag": "0015_add_comment_and_archival", 115 + "breakpoints": true 116 + }, 117 + { 118 + "idx": 16, 119 + "version": "7", 120 + "when": 1773952461673, 121 + "tag": "0016_add_task_relation", 122 + "breakpoints": true 123 + }, 124 + { 125 + "idx": 17, 126 + "version": "7", 127 + "when": 1774269662424, 128 + "tag": "0017_white_omega_flight", 129 + "breakpoints": true 130 + }, 131 + { 132 + "idx": 18, 133 + "version": "7", 134 + "when": 1774726270729, 135 + "tag": "0018_motionless_luckman", 136 + "breakpoints": true 137 + }, 138 + { 139 + "idx": 19, 140 + "version": "7", 141 + "when": 1774823200346, 142 + "tag": "0019_sloppy_meteorite", 143 + "breakpoints": true 144 + }, 145 + { 146 + "idx": 20, 147 + "version": "7", 148 + "when": 1774908000000, 149 + "tag": "0020_gitea_dedup_guards", 150 + "breakpoints": true 151 + }, 152 + { 153 + "idx": 21, 154 + "version": "7", 155 + "when": 1774942282393, 156 + "tag": "0021_pretty_smiling_tiger", 157 + "breakpoints": true 158 + }, 159 + { 160 + "idx": 22, 161 + "version": "7", 162 + "when": 1774944216644, 163 + "tag": "0022_material_electro", 164 + "breakpoints": true 165 + }, 166 + { 167 + "idx": 23, 168 + "version": "7", 169 + "when": 1775215568801, 170 + "tag": "0023_cold_omega_red", 171 + "breakpoints": true 172 + }, 173 + { 174 + "idx": 24, 175 + "version": "7", 176 + "when": 1775215568802, 177 + "tag": "0024_device_code_timestamps", 178 + "breakpoints": true 179 + }, 180 + { 181 + "idx": 25, 182 + "version": "7", 183 + "when": 1775156843372, 184 + "tag": "0025_early_owl", 185 + "breakpoints": true 186 + }, 187 + { 188 + "idx": 26, 189 + "version": "7", 190 + "when": 1775102400000, 191 + "tag": "0026_encrypt_notification_preference_secrets", 192 + "breakpoints": true 193 + } 194 + ] 195 195 }