| 1 | { |
| 2 | "id": "986bb5ae-6049-44ee-820c-7f1bb9781ba7", |
| 3 | "prevId": |
| 4 | "version": |
| 5 | "dialect": |
| 6 | "tables": |
| 7 | "public.accounts": |
| 8 | "name": |
| 9 | "schema": |
| 10 | "columns": |
| 11 | "id": |
| 12 | "name": |
| 13 | "type": |
| 14 | "primaryKey": |
| 15 | "notNull": |
| 16 | }, |
| 17 | "account_id": |
| 18 | "name": |
| 19 | "type": |
| 20 | "primaryKey": |
| 21 | "notNull": |
| 22 | }, |
| 23 | "provider_id": |
| 24 | "name": |
| 25 | "type": |
| 26 | "primaryKey": |
| 27 | "notNull": |
| 28 | }, |
| 29 | "user_id": |
| 30 | "name": |
| 31 | "type": |
| 32 | "primaryKey": |
| 33 | "notNull": |
| 34 | }, |
| 35 | "access_token": |
| 36 | "name": |
| 37 | "type": |
| 38 | "primaryKey": |
| 39 | "notNull": |
| 40 | }, |
| 41 | "refresh_token": |
| 42 | "name": |
| 43 | "type": |
| 44 | "primaryKey": |
| 45 | "notNull": |
| 46 | }, |
| 47 | "id_token": |
| 48 | "name": |
| 49 | "type": |
| 50 | "primaryKey": |
| 51 | "notNull": |
| 52 | }, |
| 53 | "access_token_expires_at": |
| 54 | "name": |
| 55 | "type": |
| 56 | "primaryKey": |
| 57 | "notNull": |
| 58 | }, |
| 59 | "refresh_token_expires_at": |
| 60 | "name": |
| 61 | "type": |
| 62 | "primaryKey": |
| 63 | "notNull": |
| 64 | }, |
| 65 | "scope": |
| 66 | "name": |
| 67 | "type": |
| 68 | "primaryKey": |
| 69 | "notNull": |
| 70 | }, |
| 71 | "password": |
| 72 | "name": |
| 73 | "type": |
| 74 | "primaryKey": |
| 75 | "notNull": |
| 76 | }, |
| 77 | "created_at": |
| 78 | "name": |
| 79 | "type": |
| 80 | "primaryKey": |
| 81 | "notNull": |
| 82 | "default": |
| 83 | }, |
| 84 | "updated_at": |
| 85 | "name": |
| 86 | "type": |
| 87 | "primaryKey": |
| 88 | "notNull": |
| 89 | } |
| 90 | }, |
| 91 | "indexes": |
| 92 | "accounts_userId_idx": |
| 93 | "name": |
| 94 | "columns": |
| 95 | { |
| 96 | "expression": |
| 97 | "isExpression": |
| 98 | "asc": |
| 99 | "nulls": |
| 100 | } |
| 101 | ], |
| 102 | "isUnique": |
| 103 | "concurrently": |
| 104 | "method": |
| 105 | "with": |
| 106 | } |
| 107 | }, |
| 108 | "foreignKeys": |
| 109 | "accounts_user_id_users_id_fk": |
| 110 | "name": |
| 111 | "tableFrom": |
| 112 | "tableTo": |
| 113 | "columnsFrom": |
| 114 | "user_id" |
| 115 | ], |
| 116 | "columnsTo": |
| 117 | "id" |
| 118 | ], |
| 119 | "onDelete": |
| 120 | "onUpdate": |
| 121 | } |
| 122 | }, |
| 123 | "compositePrimaryKeys": |
| 124 | "uniqueConstraints": |
| 125 | "policies": |
| 126 | "checkConstraints": |
| 127 | "isRLSEnabled": |
| 128 | }, |
| 129 | "public.apikeys": |
| 130 | "name": |
| 131 | "schema": |
| 132 | "columns": |
| 133 | "id": |
| 134 | "name": |
| 135 | "type": |
| 136 | "primaryKey": |
| 137 | "notNull": |
| 138 | }, |
| 139 | "config_id": |
| 140 | "name": |
| 141 | "type": |
| 142 | "primaryKey": |
| 143 | "notNull": |
| 144 | "default": |
| 145 | }, |
| 146 | "name": |
| 147 | "name": |
| 148 | "type": |
| 149 | "primaryKey": |
| 150 | "notNull": |
| 151 | }, |
| 152 | "start": |
| 153 | "name": |
| 154 | "type": |
| 155 | "primaryKey": |
| 156 | "notNull": |
| 157 | }, |
| 158 | "reference_id": |
| 159 | "name": |
| 160 | "type": |
| 161 | "primaryKey": |
| 162 | "notNull": |
| 163 | }, |
| 164 | "prefix": |
| 165 | "name": |
| 166 | "type": |
| 167 | "primaryKey": |
| 168 | "notNull": |
| 169 | }, |
| 170 | "key": |
| 171 | "name": |
| 172 | "type": |
| 173 | "primaryKey": |
| 174 | "notNull": |
| 175 | }, |
| 176 | "refill_interval": |
| 177 | "name": |
| 178 | "type": |
| 179 | "primaryKey": |
| 180 | "notNull": |
| 181 | }, |
| 182 | "refill_amount": |
| 183 | "name": |
| 184 | "type": |
| 185 | "primaryKey": |
| 186 | "notNull": |
| 187 | }, |
| 188 | "last_refill_at": |
| 189 | "name": |
| 190 | "type": |
| 191 | "primaryKey": |
| 192 | "notNull": |
| 193 | }, |
| 194 | "enabled": |
| 195 | "name": |
| 196 | "type": |
| 197 | "primaryKey": |
| 198 | "notNull": |
| 199 | "default": |
| 200 | }, |
| 201 | "rate_limit_enabled": |
| 202 | "name": |
| 203 | "type": |
| 204 | "primaryKey": |
| 205 | "notNull": |
| 206 | "default": |
| 207 | }, |
| 208 | "rate_limit_time_window": |
| 209 | "name": |
| 210 | "type": |
| 211 | "primaryKey": |
| 212 | "notNull": |
| 213 | "default": |
| 214 | }, |
| 215 | "rate_limit_max": |
| 216 | "name": |
| 217 | "type": |
| 218 | "primaryKey": |
| 219 | "notNull": |
| 220 | "default": |
| 221 | }, |
| 222 | "request_count": |
| 223 | "name": |
| 224 | "type": |
| 225 | "primaryKey": |
| 226 | "notNull": |
| 227 | "default": |
| 228 | }, |
| 229 | "remaining": |
| 230 | "name": |
| 231 | "type": |
| 232 | "primaryKey": |
| 233 | "notNull": |
| 234 | }, |
| 235 | "last_request": |
| 236 | "name": |
| 237 | "type": |
| 238 | "primaryKey": |
| 239 | "notNull": |
| 240 | }, |
| 241 | "expires_at": |
| 242 | "name": |
| 243 | "type": |
| 244 | "primaryKey": |
| 245 | "notNull": |
| 246 | }, |
| 247 | "created_at": |
| 248 | "name": |
| 249 | "type": |
| 250 | "primaryKey": |
| 251 | "notNull": |
| 252 | }, |
| 253 | "updated_at": |
| 254 | "name": |
| 255 | "type": |
| 256 | "primaryKey": |
| 257 | "notNull": |
| 258 | }, |
| 259 | "permissions": |
| 260 | "name": |
| 261 | "type": |
| 262 | "primaryKey": |
| 263 | "notNull": |
| 264 | }, |
| 265 | "metadata": |
| 266 | "name": |
| 267 | "type": |
| 268 | "primaryKey": |
| 269 | "notNull": |
| 270 | } |
| 271 | }, |
| 272 | "indexes": |
| 273 | "apikeys_configId_idx": |
| 274 | "name": |
| 275 | "columns": |
| 276 | { |
| 277 | "expression": |
| 278 | "isExpression": |
| 279 | "asc": |
| 280 | "nulls": |
| 281 | } |
| 282 | ], |
| 283 | "isUnique": |
| 284 | "concurrently": |
| 285 | "method": |
| 286 | "with": |
| 287 | }, |
| 288 | "apikeys_referenceId_idx": |
| 289 | "name": |
| 290 | "columns": |
| 291 | { |
| 292 | "expression": |
| 293 | "isExpression": |
| 294 | "asc": |
| 295 | "nulls": |
| 296 | } |
| 297 | ], |
| 298 | "isUnique": |
| 299 | "concurrently": |
| 300 | "method": |
| 301 | "with": |
| 302 | }, |
| 303 | "apikeys_key_idx": |
| 304 | "name": |
| 305 | "columns": |
| 306 | { |
| 307 | "expression": |
| 308 | "isExpression": |
| 309 | "asc": |
| 310 | "nulls": |
| 311 | } |
| 312 | ], |
| 313 | "isUnique": |
| 314 | "concurrently": |
| 315 | "method": |
| 316 | "with": |
| 317 | } |
| 318 | }, |
| 319 | "foreignKeys": |
| 320 | "compositePrimaryKeys": |
| 321 | "uniqueConstraints": |
| 322 | "policies": |
| 323 | "checkConstraints": |
| 324 | "isRLSEnabled": |
| 325 | }, |
| 326 | "public.invitations": |
| 327 | "name": |
| 328 | "schema": |
| 329 | "columns": |
| 330 | "id": |
| 331 | "name": |
| 332 | "type": |
| 333 | "primaryKey": |
| 334 | "notNull": |
| 335 | }, |
| 336 | "organization_id": |
| 337 | "name": |
| 338 | "type": |
| 339 | "primaryKey": |
| 340 | "notNull": |
| 341 | }, |
| 342 | "email": |
| 343 | "name": |
| 344 | "type": |
| 345 | "primaryKey": |
| 346 | "notNull": |
| 347 | }, |
| 348 | "role": |
| 349 | "name": |
| 350 | "type": |
| 351 | "primaryKey": |
| 352 | "notNull": |
| 353 | }, |
| 354 | "team_id": |
| 355 | "name": |
| 356 | "type": |
| 357 | "primaryKey": |
| 358 | "notNull": |
| 359 | }, |
| 360 | "status": |
| 361 | "name": |
| 362 | "type": |
| 363 | "primaryKey": |
| 364 | "notNull": |
| 365 | "default": |
| 366 | }, |
| 367 | "expires_at": |
| 368 | "name": |
| 369 | "type": |
| 370 | "primaryKey": |
| 371 | "notNull": |
| 372 | }, |
| 373 | "created_at": |
| 374 | "name": |
| 375 | "type": |
| 376 | "primaryKey": |
| 377 | "notNull": |
| 378 | "default": |
| 379 | }, |
| 380 | "inviter_id": |
| 381 | "name": |
| 382 | "type": |
| 383 | "primaryKey": |
| 384 | "notNull": |
| 385 | } |
| 386 | }, |
| 387 | "indexes": |
| 388 | "invitations_organizationId_idx": |
| 389 | "name": |
| 390 | "columns": |
| 391 | { |
| 392 | "expression": |
| 393 | "isExpression": |
| 394 | "asc": |
| 395 | "nulls": |
| 396 | } |
| 397 | ], |
| 398 | "isUnique": |
| 399 | "concurrently": |
| 400 | "method": |
| 401 | "with": |
| 402 | }, |
| 403 | "invitations_email_idx": |
| 404 | "name": |
| 405 | "columns": |
| 406 | { |
| 407 | "expression": |
| 408 | "isExpression": |
| 409 | "asc": |
| 410 | "nulls": |
| 411 | } |
| 412 | ], |
| 413 | "isUnique": |
| 414 | "concurrently": |
| 415 | "method": |
| 416 | "with": |
| 417 | } |
| 418 | }, |
| 419 | "foreignKeys": |
| 420 | "invitations_organization_id_organizations_id_fk": |
| 421 | "name": |
| 422 | "tableFrom": |
| 423 | "tableTo": |
| 424 | "columnsFrom": |
| 425 | "organization_id" |
| 426 | ], |
| 427 | "columnsTo": |
| 428 | "id" |
| 429 | ], |
| 430 | "onDelete": |
| 431 | "onUpdate": |
| 432 | }, |
| 433 | "invitations_inviter_id_users_id_fk": |
| 434 | "name": |
| 435 | "tableFrom": |
| 436 | "tableTo": |
| 437 | "columnsFrom": |
| 438 | "inviter_id" |
| 439 | ], |
| 440 | "columnsTo": |
| 441 | "id" |
| 442 | ], |
| 443 | "onDelete": |
| 444 | "onUpdate": |
| 445 | } |
| 446 | }, |
| 447 | "compositePrimaryKeys": |
| 448 | "uniqueConstraints": |
| 449 | "policies": |
| 450 | "checkConstraints": |
| 451 | "isRLSEnabled": |
| 452 | }, |
| 453 | "public.members": |
| 454 | "name": |
| 455 | "schema": |
| 456 | "columns": |
| 457 | "id": |
| 458 | "name": |
| 459 | "type": |
| 460 | "primaryKey": |
| 461 | "notNull": |
| 462 | }, |
| 463 | "organization_id": |
| 464 | "name": |
| 465 | "type": |
| 466 | "primaryKey": |
| 467 | "notNull": |
| 468 | }, |
| 469 | "user_id": |
| 470 | "name": |
| 471 | "type": |
| 472 | "primaryKey": |
| 473 | "notNull": |
| 474 | }, |
| 475 | "role": |
| 476 | "name": |
| 477 | "type": |
| 478 | "primaryKey": |
| 479 | "notNull": |
| 480 | "default": |
| 481 | }, |
| 482 | "created_at": |
| 483 | "name": |
| 484 | "type": |
| 485 | "primaryKey": |
| 486 | "notNull": |
| 487 | } |
| 488 | }, |
| 489 | "indexes": |
| 490 | "members_organizationId_idx": |
| 491 | "name": |
| 492 | "columns": |
| 493 | { |
| 494 | "expression": |
| 495 | "isExpression": |
| 496 | "asc": |
| 497 | "nulls": |
| 498 | } |
| 499 | ], |
| 500 | "isUnique": |
| 501 | "concurrently": |
| 502 | "method": |
| 503 | "with": |
| 504 | }, |
| 505 | "members_userId_idx": |
| 506 | "name": |
| 507 | "columns": |
| 508 | { |
| 509 | "expression": |
| 510 | "isExpression": |
| 511 | "asc": |
| 512 | "nulls": |
| 513 | } |
| 514 | ], |
| 515 | "isUnique": |
| 516 | "concurrently": |
| 517 | "method": |
| 518 | "with": |
| 519 | } |
| 520 | }, |
| 521 | "foreignKeys": |
| 522 | "members_organization_id_organizations_id_fk": |
| 523 | "name": |
| 524 | "tableFrom": |
| 525 | "tableTo": |
| 526 | "columnsFrom": |
| 527 | "organization_id" |
| 528 | ], |
| 529 | "columnsTo": |
| 530 | "id" |
| 531 | ], |
| 532 | "onDelete": |
| 533 | "onUpdate": |
| 534 | }, |
| 535 | "members_user_id_users_id_fk": |
| 536 | "name": |
| 537 | "tableFrom": |
| 538 | "tableTo": |
| 539 | "columnsFrom": |
| 540 | "user_id" |
| 541 | ], |
| 542 | "columnsTo": |
| 543 | "id" |
| 544 | ], |
| 545 | "onDelete": |
| 546 | "onUpdate": |
| 547 | } |
| 548 | }, |
| 549 | "compositePrimaryKeys": |
| 550 | "uniqueConstraints": |
| 551 | "policies": |
| 552 | "checkConstraints": |
| 553 | "isRLSEnabled": |
| 554 | }, |
| 555 | "public.organizations": |
| 556 | "name": |
| 557 | "schema": |
| 558 | "columns": |
| 559 | "id": |
| 560 | "name": |
| 561 | "type": |
| 562 | "primaryKey": |
| 563 | "notNull": |
| 564 | }, |
| 565 | "name": |
| 566 | "name": |
| 567 | "type": |
| 568 | "primaryKey": |
| 569 | "notNull": |
| 570 | }, |
| 571 | "slug": |
| 572 | "name": |
| 573 | "type": |
| 574 | "primaryKey": |
| 575 | "notNull": |
| 576 | }, |
| 577 | "logo": |
| 578 | "name": |
| 579 | "type": |
| 580 | "primaryKey": |
| 581 | "notNull": |
| 582 | }, |
| 583 | "created_at": |
| 584 | "name": |
| 585 | "type": |
| 586 | "primaryKey": |
| 587 | "notNull": |
| 588 | }, |
| 589 | "metadata": |
| 590 | "name": |
| 591 | "type": |
| 592 | "primaryKey": |
| 593 | "notNull": |
| 594 | } |
| 595 | }, |
| 596 | "indexes": |
| 597 | "organizations_slug_uidx": |
| 598 | "name": |
| 599 | "columns": |
| 600 | { |
| 601 | "expression": |
| 602 | "isExpression": |
| 603 | "asc": |
| 604 | "nulls": |
| 605 | } |
| 606 | ], |
| 607 | "isUnique": |
| 608 | "concurrently": |
| 609 | "method": |
| 610 | "with": |
| 611 | } |
| 612 | }, |
| 613 | "foreignKeys": |
| 614 | "compositePrimaryKeys": |
| 615 | "uniqueConstraints": |
| 616 | "organizations_slug_unique": |
| 617 | "name": |
| 618 | "nullsNotDistinct": |
| 619 | "columns": |
| 620 | "slug" |
| 621 | ] |
| 622 | } |
| 623 | }, |
| 624 | "policies": |
| 625 | "checkConstraints": |
| 626 | "isRLSEnabled": |
| 627 | }, |
| 628 | "public.sessions": |
| 629 | "name": |
| 630 | "schema": |
| 631 | "columns": |
| 632 | "id": |
| 633 | "name": |
| 634 | "type": |
| 635 | "primaryKey": |
| 636 | "notNull": |
| 637 | }, |
| 638 | "expires_at": |
| 639 | "name": |
| 640 | "type": |
| 641 | "primaryKey": |
| 642 | "notNull": |
| 643 | }, |
| 644 | "token": |
| 645 | "name": |
| 646 | "type": |
| 647 | "primaryKey": |
| 648 | "notNull": |
| 649 | }, |
| 650 | "created_at": |
| 651 | "name": |
| 652 | "type": |
| 653 | "primaryKey": |
| 654 | "notNull": |
| 655 | "default": |
| 656 | }, |
| 657 | "updated_at": |
| 658 | "name": |
| 659 | "type": |
| 660 | "primaryKey": |
| 661 | "notNull": |
| 662 | }, |
| 663 | "ip_address": |
| 664 | "name": |
| 665 | "type": |
| 666 | "primaryKey": |
| 667 | "notNull": |
| 668 | }, |
| 669 | "user_agent": |
| 670 | "name": |
| 671 | "type": |
| 672 | "primaryKey": |
| 673 | "notNull": |
| 674 | }, |
| 675 | "user_id": |
| 676 | "name": |
| 677 | "type": |
| 678 | "primaryKey": |
| 679 | "notNull": |
| 680 | }, |
| 681 | "active_organization_id": |
| 682 | "name": |
| 683 | "type": |
| 684 | "primaryKey": |
| 685 | "notNull": |
| 686 | }, |
| 687 | "active_team_id": |
| 688 | "name": |
| 689 | "type": |
| 690 | "primaryKey": |
| 691 | "notNull": |
| 692 | } |
| 693 | }, |
| 694 | "indexes": |
| 695 | "sessions_userId_idx": |
| 696 | "name": |
| 697 | "columns": |
| 698 | { |
| 699 | "expression": |
| 700 | "isExpression": |
| 701 | "asc": |
| 702 | "nulls": |
| 703 | } |
| 704 | ], |
| 705 | "isUnique": |
| 706 | "concurrently": |
| 707 | "method": |
| 708 | "with": |
| 709 | } |
| 710 | }, |
| 711 | "foreignKeys": |
| 712 | "sessions_user_id_users_id_fk": |
| 713 | "name": |
| 714 | "tableFrom": |
| 715 | "tableTo": |
| 716 | "columnsFrom": |
| 717 | "user_id" |
| 718 | ], |
| 719 | "columnsTo": |
| 720 | "id" |
| 721 | ], |
| 722 | "onDelete": |
| 723 | "onUpdate": |
| 724 | } |
| 725 | }, |
| 726 | "compositePrimaryKeys": |
| 727 | "uniqueConstraints": |
| 728 | "sessions_token_unique": |
| 729 | "name": |
| 730 | "nullsNotDistinct": |
| 731 | "columns": |
| 732 | "token" |
| 733 | ] |
| 734 | } |
| 735 | }, |
| 736 | "policies": |
| 737 | "checkConstraints": |
| 738 | "isRLSEnabled": |
| 739 | }, |
| 740 | "public.team_members": |
| 741 | "name": |
| 742 | "schema": |
| 743 | "columns": |
| 744 | "id": |
| 745 | "name": |
| 746 | "type": |
| 747 | "primaryKey": |
| 748 | "notNull": |
| 749 | }, |
| 750 | "team_id": |
| 751 | "name": |
| 752 | "type": |
| 753 | "primaryKey": |
| 754 | "notNull": |
| 755 | }, |
| 756 | "user_id": |
| 757 | "name": |
| 758 | "type": |
| 759 | "primaryKey": |
| 760 | "notNull": |
| 761 | }, |
| 762 | "created_at": |
| 763 | "name": |
| 764 | "type": |
| 765 | "primaryKey": |
| 766 | "notNull": |
| 767 | } |
| 768 | }, |
| 769 | "indexes": |
| 770 | "teamMembers_teamId_idx": |
| 771 | "name": |
| 772 | "columns": |
| 773 | { |
| 774 | "expression": |
| 775 | "isExpression": |
| 776 | "asc": |
| 777 | "nulls": |
| 778 | } |
| 779 | ], |
| 780 | "isUnique": |
| 781 | "concurrently": |
| 782 | "method": |
| 783 | "with": |
| 784 | }, |
| 785 | "teamMembers_userId_idx": |
| 786 | "name": |
| 787 | "columns": |
| 788 | { |
| 789 | "expression": |
| 790 | "isExpression": |
| 791 | "asc": |
| 792 | "nulls": |
| 793 | } |
| 794 | ], |
| 795 | "isUnique": |
| 796 | "concurrently": |
| 797 | "method": |
| 798 | "with": |
| 799 | } |
| 800 | }, |
| 801 | "foreignKeys": |
| 802 | "team_members_team_id_teams_id_fk": |
| 803 | "name": |
| 804 | "tableFrom": |
| 805 | "tableTo": |
| 806 | "columnsFrom": |
| 807 | "team_id" |
| 808 | ], |
| 809 | "columnsTo": |
| 810 | "id" |
| 811 | ], |
| 812 | "onDelete": |
| 813 | "onUpdate": |
| 814 | }, |
| 815 | "team_members_user_id_users_id_fk": |
| 816 | "name": |
| 817 | "tableFrom": |
| 818 | "tableTo": |
| 819 | "columnsFrom": |
| 820 | "user_id" |
| 821 | ], |
| 822 | "columnsTo": |
| 823 | "id" |
| 824 | ], |
| 825 | "onDelete": |
| 826 | "onUpdate": |
| 827 | } |
| 828 | }, |
| 829 | "compositePrimaryKeys": |
| 830 | "uniqueConstraints": |
| 831 | "policies": |
| 832 | "checkConstraints": |
| 833 | "isRLSEnabled": |
| 834 | }, |
| 835 | "public.teams": |
| 836 | "name": |
| 837 | "schema": |
| 838 | "columns": |
| 839 | "id": |
| 840 | "name": |
| 841 | "type": |
| 842 | "primaryKey": |
| 843 | "notNull": |
| 844 | }, |
| 845 | "name": |
| 846 | "name": |
| 847 | "type": |
| 848 | "primaryKey": |
| 849 | "notNull": |
| 850 | }, |
| 851 | "organization_id": |
| 852 | "name": |
| 853 | "type": |
| 854 | "primaryKey": |
| 855 | "notNull": |
| 856 | }, |
| 857 | "created_at": |
| 858 | "name": |
| 859 | "type": |
| 860 | "primaryKey": |
| 861 | "notNull": |
| 862 | }, |
| 863 | "updated_at": |
| 864 | "name": |
| 865 | "type": |
| 866 | "primaryKey": |
| 867 | "notNull": |
| 868 | } |
| 869 | }, |
| 870 | "indexes": |
| 871 | "teams_organizationId_idx": |
| 872 | "name": |
| 873 | "columns": |
| 874 | { |
| 875 | "expression": |
| 876 | "isExpression": |
| 877 | "asc": |
| 878 | "nulls": |
| 879 | } |
| 880 | ], |
| 881 | "isUnique": |
| 882 | "concurrently": |
| 883 | "method": |
| 884 | "with": |
| 885 | } |
| 886 | }, |
| 887 | "foreignKeys": |
| 888 | "teams_organization_id_organizations_id_fk": |
| 889 | "name": |
| 890 | "tableFrom": |
| 891 | "tableTo": |
| 892 | "columnsFrom": |
| 893 | "organization_id" |
| 894 | ], |
| 895 | "columnsTo": |
| 896 | "id" |
| 897 | ], |
| 898 | "onDelete": |
| 899 | "onUpdate": |
| 900 | } |
| 901 | }, |
| 902 | "compositePrimaryKeys": |
| 903 | "uniqueConstraints": |
| 904 | "policies": |
| 905 | "checkConstraints": |
| 906 | "isRLSEnabled": |
| 907 | }, |
| 908 | "public.users": |
| 909 | "name": |
| 910 | "schema": |
| 911 | "columns": |
| 912 | "id": |
| 913 | "name": |
| 914 | "type": |
| 915 | "primaryKey": |
| 916 | "notNull": |
| 917 | }, |
| 918 | "name": |
| 919 | "name": |
| 920 | "type": |
| 921 | "primaryKey": |
| 922 | "notNull": |
| 923 | }, |
| 924 | "email": |
| 925 | "name": |
| 926 | "type": |
| 927 | "primaryKey": |
| 928 | "notNull": |
| 929 | }, |
| 930 | "email_verified": |
| 931 | "name": |
| 932 | "type": |
| 933 | "primaryKey": |
| 934 | "notNull": |
| 935 | "default": |
| 936 | }, |
| 937 | "image": |
| 938 | "name": |
| 939 | "type": |
| 940 | "primaryKey": |
| 941 | "notNull": |
| 942 | }, |
| 943 | "created_at": |
| 944 | "name": |
| 945 | "type": |
| 946 | "primaryKey": |
| 947 | "notNull": |
| 948 | "default": |
| 949 | }, |
| 950 | "updated_at": |
| 951 | "name": |
| 952 | "type": |
| 953 | "primaryKey": |
| 954 | "notNull": |
| 955 | "default": |
| 956 | } |
| 957 | }, |
| 958 | "indexes": |
| 959 | "foreignKeys": |
| 960 | "compositePrimaryKeys": |
| 961 | "uniqueConstraints": |
| 962 | "users_email_unique": |
| 963 | "name": |
| 964 | "nullsNotDistinct": |
| 965 | "columns": |
| 966 | "email" |
| 967 | ] |
| 968 | } |
| 969 | }, |
| 970 | "policies": |
| 971 | "checkConstraints": |
| 972 | "isRLSEnabled": |
| 973 | }, |
| 974 | "public.verifications": |
| 975 | "name": |
| 976 | "schema": |
| 977 | "columns": |
| 978 | "id": |
| 979 | "name": |
| 980 | "type": |
| 981 | "primaryKey": |
| 982 | "notNull": |
| 983 | }, |
| 984 | "identifier": |
| 985 | "name": |
| 986 | "type": |
| 987 | "primaryKey": |
| 988 | "notNull": |
| 989 | }, |
| 990 | "value": |
| 991 | "name": |
| 992 | "type": |
| 993 | "primaryKey": |
| 994 | "notNull": |
| 995 | }, |
| 996 | "expires_at": |
| 997 | "name": |
| 998 | "type": |
| 999 | "primaryKey": |
| 1000 | "notNull": |
| 1001 | }, |
| 1002 | "created_at": |
| 1003 | "name": |
| 1004 | "type": |
| 1005 | "primaryKey": |
| 1006 | "notNull": |
| 1007 | "default": |
| 1008 | }, |
| 1009 | "updated_at": |
| 1010 | "name": |
| 1011 | "type": |
| 1012 | "primaryKey": |
| 1013 | "notNull": |
| 1014 | "default": |
| 1015 | } |
| 1016 | }, |
| 1017 | "indexes": |
| 1018 | "verifications_identifier_idx": |
| 1019 | "name": |
| 1020 | "columns": |
| 1021 | { |
| 1022 | "expression": |
| 1023 | "isExpression": |
| 1024 | "asc": |
| 1025 | "nulls": |
| 1026 | } |
| 1027 | ], |
| 1028 | "isUnique": |
| 1029 | "concurrently": |
| 1030 | "method": |
| 1031 | "with": |
| 1032 | } |
| 1033 | }, |
| 1034 | "foreignKeys": |
| 1035 | "compositePrimaryKeys": |
| 1036 | "uniqueConstraints": |
| 1037 | "policies": |
| 1038 | "checkConstraints": |
| 1039 | "isRLSEnabled": |
| 1040 | }, |
| 1041 | "public.media": |
| 1042 | "name": |
| 1043 | "schema": |
| 1044 | "columns": |
| 1045 | "id": |
| 1046 | "name": |
| 1047 | "type": |
| 1048 | "primaryKey": |
| 1049 | "notNull": |
| 1050 | }, |
| 1051 | "organization_id": |
| 1052 | "name": |
| 1053 | "type": |
| 1054 | "primaryKey": |
| 1055 | "notNull": |
| 1056 | }, |
| 1057 | "uploaded_by_member_id": |
| 1058 | "name": |
| 1059 | "type": |
| 1060 | "primaryKey": |
| 1061 | "notNull": |
| 1062 | }, |
| 1063 | "name": |
| 1064 | "name": |
| 1065 | "type": |
| 1066 | "primaryKey": |
| 1067 | "notNull": |
| 1068 | }, |
| 1069 | "key": |
| 1070 | "name": |
| 1071 | "type": |
| 1072 | "primaryKey": |
| 1073 | "notNull": |
| 1074 | }, |
| 1075 | "url": |
| 1076 | "name": |
| 1077 | "type": |
| 1078 | "primaryKey": |
| 1079 | "notNull": |
| 1080 | }, |
| 1081 | "content_type": |
| 1082 | "name": |
| 1083 | "type": |
| 1084 | "primaryKey": |
| 1085 | "notNull": |
| 1086 | }, |
| 1087 | "size": |
| 1088 | "name": |
| 1089 | "type": |
| 1090 | "primaryKey": |
| 1091 | "notNull": |
| 1092 | }, |
| 1093 | "created_at": |
| 1094 | "name": |
| 1095 | "type": |
| 1096 | "primaryKey": |
| 1097 | "notNull": |
| 1098 | "default": |
| 1099 | } |
| 1100 | }, |
| 1101 | "indexes": |
| 1102 | "foreignKeys": |
| 1103 | "media_uploaded_by_member_id_members_id_fk": |
| 1104 | "name": |
| 1105 | "tableFrom": |
| 1106 | "tableTo": |
| 1107 | "columnsFrom": |
| 1108 | "uploaded_by_member_id" |
| 1109 | ], |
| 1110 | "columnsTo": |
| 1111 | "id" |
| 1112 | ], |
| 1113 | "onDelete": |
| 1114 | "onUpdate": |
| 1115 | } |
| 1116 | }, |
| 1117 | "compositePrimaryKeys": |
| 1118 | "uniqueConstraints": |
| 1119 | "media_key_unique": |
| 1120 | "name": |
| 1121 | "nullsNotDistinct": |
| 1122 | "columns": |
| 1123 | "key" |
| 1124 | ] |
| 1125 | } |
| 1126 | }, |
| 1127 | "policies": |
| 1128 | "checkConstraints": |
| 1129 | "isRLSEnabled": |
| 1130 | }, |
| 1131 | "public.milestone_requirements": |
| 1132 | "name": |
| 1133 | "schema": |
| 1134 | "columns": |
| 1135 | "id": |
| 1136 | "name": |
| 1137 | "type": |
| 1138 | "primaryKey": |
| 1139 | "notNull": |
| 1140 | }, |
| 1141 | "milestone_id": |
| 1142 | "name": |
| 1143 | "type": |
| 1144 | "primaryKey": |
| 1145 | "notNull": |
| 1146 | }, |
| 1147 | "requirement_id": |
| 1148 | "name": |
| 1149 | "type": |
| 1150 | "primaryKey": |
| 1151 | "notNull": |
| 1152 | }, |
| 1153 | "sort_order": |
| 1154 | "name": |
| 1155 | "type": |
| 1156 | "primaryKey": |
| 1157 | "notNull": |
| 1158 | "default": |
| 1159 | } |
| 1160 | }, |
| 1161 | "indexes": |
| 1162 | "milestone_requirement_unique": |
| 1163 | "name": |
| 1164 | "columns": |
| 1165 | { |
| 1166 | "expression": |
| 1167 | "isExpression": |
| 1168 | "asc": |
| 1169 | "nulls": |
| 1170 | }, |
| 1171 | { |
| 1172 | "expression": |
| 1173 | "isExpression": |
| 1174 | "asc": |
| 1175 | "nulls": |
| 1176 | } |
| 1177 | ], |
| 1178 | "isUnique": |
| 1179 | "concurrently": |
| 1180 | "method": |
| 1181 | "with": |
| 1182 | } |
| 1183 | }, |
| 1184 | "foreignKeys": |
| 1185 | "milestone_requirements_milestone_id_milestones_id_fk": |
| 1186 | "name": |
| 1187 | "tableFrom": |
| 1188 | "tableTo": |
| 1189 | "columnsFrom": |
| 1190 | "milestone_id" |
| 1191 | ], |
| 1192 | "columnsTo": |
| 1193 | "id" |
| 1194 | ], |
| 1195 | "onDelete": |
| 1196 | "onUpdate": |
| 1197 | }, |
| 1198 | "milestone_requirements_requirement_id_requirements_id_fk": |
| 1199 | "name": |
| 1200 | "tableFrom": |
| 1201 | "tableTo": |
| 1202 | "columnsFrom": |
| 1203 | "requirement_id" |
| 1204 | ], |
| 1205 | "columnsTo": |
| 1206 | "id" |
| 1207 | ], |
| 1208 | "onDelete": |
| 1209 | "onUpdate": |
| 1210 | } |
| 1211 | }, |
| 1212 | "compositePrimaryKeys": |
| 1213 | "uniqueConstraints": |
| 1214 | "policies": |
| 1215 | "checkConstraints": |
| 1216 | "isRLSEnabled": |
| 1217 | }, |
| 1218 | "public.milestones": |
| 1219 | "name": |
| 1220 | "schema": |
| 1221 | "columns": |
| 1222 | "id": |
| 1223 | "name": |
| 1224 | "type": |
| 1225 | "primaryKey": |
| 1226 | "notNull": |
| 1227 | }, |
| 1228 | "project_id": |
| 1229 | "name": |
| 1230 | "type": |
| 1231 | "primaryKey": |
| 1232 | "notNull": |
| 1233 | }, |
| 1234 | "name": |
| 1235 | "name": |
| 1236 | "type": |
| 1237 | "primaryKey": |
| 1238 | "notNull": |
| 1239 | }, |
| 1240 | "description": |
| 1241 | "name": |
| 1242 | "type": |
| 1243 | "primaryKey": |
| 1244 | "notNull": |
| 1245 | }, |
| 1246 | "status": |
| 1247 | "name": |
| 1248 | "type": |
| 1249 | "typeSchema": |
| 1250 | "primaryKey": |
| 1251 | "notNull": |
| 1252 | "default": |
| 1253 | }, |
| 1254 | "sort_order": |
| 1255 | "name": |
| 1256 | "type": |
| 1257 | "primaryKey": |
| 1258 | "notNull": |
| 1259 | "default": |
| 1260 | }, |
| 1261 | "due_date": |
| 1262 | "name": |
| 1263 | "type": |
| 1264 | "primaryKey": |
| 1265 | "notNull": |
| 1266 | }, |
| 1267 | "completed_at": |
| 1268 | "name": |
| 1269 | "type": |
| 1270 | "primaryKey": |
| 1271 | "notNull": |
| 1272 | }, |
| 1273 | "budget_minutes": |
| 1274 | "name": |
| 1275 | "type": |
| 1276 | "primaryKey": |
| 1277 | "notNull": |
| 1278 | }, |
| 1279 | "budget_amount_cents": |
| 1280 | "name": |
| 1281 | "type": |
| 1282 | "primaryKey": |
| 1283 | "notNull": |
| 1284 | }, |
| 1285 | "block_reason": |
| 1286 | "name": |
| 1287 | "type": |
| 1288 | "primaryKey": |
| 1289 | "notNull": |
| 1290 | }, |
| 1291 | "created_at": |
| 1292 | "name": |
| 1293 | "type": |
| 1294 | "primaryKey": |
| 1295 | "notNull": |
| 1296 | "default": |
| 1297 | }, |
| 1298 | "updated_at": |
| 1299 | "name": |
| 1300 | "type": |
| 1301 | "primaryKey": |
| 1302 | "notNull": |
| 1303 | "default": |
| 1304 | } |
| 1305 | }, |
| 1306 | "indexes": |
| 1307 | "foreignKeys": |
| 1308 | "milestones_project_id_projects_id_fk": |
| 1309 | "name": |
| 1310 | "tableFrom": |
| 1311 | "tableTo": |
| 1312 | "columnsFrom": |
| 1313 | "project_id" |
| 1314 | ], |
| 1315 | "columnsTo": |
| 1316 | "id" |
| 1317 | ], |
| 1318 | "onDelete": |
| 1319 | "onUpdate": |
| 1320 | } |
| 1321 | }, |
| 1322 | "compositePrimaryKeys": |
| 1323 | "uniqueConstraints": |
| 1324 | "policies": |
| 1325 | "checkConstraints": |
| 1326 | "isRLSEnabled": |
| 1327 | }, |
| 1328 | "public.project_client_assignments": |
| 1329 | "name": |
| 1330 | "schema": |
| 1331 | "columns": |
| 1332 | "id": |
| 1333 | "name": |
| 1334 | "type": |
| 1335 | "primaryKey": |
| 1336 | "notNull": |
| 1337 | }, |
| 1338 | "project_id": |
| 1339 | "name": |
| 1340 | "type": |
| 1341 | "primaryKey": |
| 1342 | "notNull": |
| 1343 | }, |
| 1344 | "member_id": |
| 1345 | "name": |
| 1346 | "type": |
| 1347 | "primaryKey": |
| 1348 | "notNull": |
| 1349 | }, |
| 1350 | "assigned_at": |
| 1351 | "name": |
| 1352 | "type": |
| 1353 | "primaryKey": |
| 1354 | "notNull": |
| 1355 | "default": |
| 1356 | } |
| 1357 | }, |
| 1358 | "indexes": |
| 1359 | "project_client_unique": |
| 1360 | "name": |
| 1361 | "columns": |
| 1362 | { |
| 1363 | "expression": |
| 1364 | "isExpression": |
| 1365 | "asc": |
| 1366 | "nulls": |
| 1367 | }, |
| 1368 | { |
| 1369 | "expression": |
| 1370 | "isExpression": |
| 1371 | "asc": |
| 1372 | "nulls": |
| 1373 | } |
| 1374 | ], |
| 1375 | "isUnique": |
| 1376 | "concurrently": |
| 1377 | "method": |
| 1378 | "with": |
| 1379 | } |
| 1380 | }, |
| 1381 | "foreignKeys": |
| 1382 | "project_client_assignments_project_id_projects_id_fk": |
| 1383 | "name": |
| 1384 | "tableFrom": |
| 1385 | "tableTo": |
| 1386 | "columnsFrom": |
| 1387 | "project_id" |
| 1388 | ], |
| 1389 | "columnsTo": |
| 1390 | "id" |
| 1391 | ], |
| 1392 | "onDelete": |
| 1393 | "onUpdate": |
| 1394 | }, |
| 1395 | "project_client_assignments_member_id_members_id_fk": |
| 1396 | "name": |
| 1397 | "tableFrom": |
| 1398 | "tableTo": |
| 1399 | "columnsFrom": |
| 1400 | "member_id" |
| 1401 | ], |
| 1402 | "columnsTo": |
| 1403 | "id" |
| 1404 | ], |
| 1405 | "onDelete": |
| 1406 | "onUpdate": |
| 1407 | } |
| 1408 | }, |
| 1409 | "compositePrimaryKeys": |
| 1410 | "uniqueConstraints": |
| 1411 | "policies": |
| 1412 | "checkConstraints": |
| 1413 | "isRLSEnabled": |
| 1414 | }, |
| 1415 | "public.project_invitations": |
| 1416 | "name": |
| 1417 | "schema": |
| 1418 | "columns": |
| 1419 | "id": |
| 1420 | "name": |
| 1421 | "type": |
| 1422 | "primaryKey": |
| 1423 | "notNull": |
| 1424 | }, |
| 1425 | "invitation_id": |
| 1426 | "name": |
| 1427 | "type": |
| 1428 | "primaryKey": |
| 1429 | "notNull": |
| 1430 | }, |
| 1431 | "project_id": |
| 1432 | "name": |
| 1433 | "type": |
| 1434 | "primaryKey": |
| 1435 | "notNull": |
| 1436 | }, |
| 1437 | "type": |
| 1438 | "name": |
| 1439 | "type": |
| 1440 | "typeSchema": |
| 1441 | "primaryKey": |
| 1442 | "notNull": |
| 1443 | }, |
| 1444 | "created_at": |
| 1445 | "name": |
| 1446 | "type": |
| 1447 | "primaryKey": |
| 1448 | "notNull": |
| 1449 | "default": |
| 1450 | } |
| 1451 | }, |
| 1452 | "indexes": |
| 1453 | "foreignKeys": |
| 1454 | "project_invitations_project_id_projects_id_fk": |
| 1455 | "name": |
| 1456 | "tableFrom": |
| 1457 | "tableTo": |
| 1458 | "columnsFrom": |
| 1459 | "project_id" |
| 1460 | ], |
| 1461 | "columnsTo": |
| 1462 | "id" |
| 1463 | ], |
| 1464 | "onDelete": |
| 1465 | "onUpdate": |
| 1466 | } |
| 1467 | }, |
| 1468 | "compositePrimaryKeys": |
| 1469 | "uniqueConstraints": |
| 1470 | "project_invitations_invitation_id_unique": |
| 1471 | "name": |
| 1472 | "nullsNotDistinct": |
| 1473 | "columns": |
| 1474 | "invitation_id" |
| 1475 | ] |
| 1476 | } |
| 1477 | }, |
| 1478 | "policies": |
| 1479 | "checkConstraints": |
| 1480 | "isRLSEnabled": |
| 1481 | }, |
| 1482 | "public.project_member_assignments": |
| 1483 | "name": |
| 1484 | "schema": |
| 1485 | "columns": |
| 1486 | "id": |
| 1487 | "name": |
| 1488 | "type": |
| 1489 | "primaryKey": |
| 1490 | "notNull": |
| 1491 | }, |
| 1492 | "project_id": |
| 1493 | "name": |
| 1494 | "type": |
| 1495 | "primaryKey": |
| 1496 | "notNull": |
| 1497 | }, |
| 1498 | "member_id": |
| 1499 | "name": |
| 1500 | "type": |
| 1501 | "primaryKey": |
| 1502 | "notNull": |
| 1503 | }, |
| 1504 | "role": |
| 1505 | "name": |
| 1506 | "type": |
| 1507 | "primaryKey": |
| 1508 | "notNull": |
| 1509 | "default": |
| 1510 | }, |
| 1511 | "assigned_at": |
| 1512 | "name": |
| 1513 | "type": |
| 1514 | "primaryKey": |
| 1515 | "notNull": |
| 1516 | "default": |
| 1517 | } |
| 1518 | }, |
| 1519 | "indexes": |
| 1520 | "project_member_unique": |
| 1521 | "name": |
| 1522 | "columns": |
| 1523 | { |
| 1524 | "expression": |
| 1525 | "isExpression": |
| 1526 | "asc": |
| 1527 | "nulls": |
| 1528 | }, |
| 1529 | { |
| 1530 | "expression": |
| 1531 | "isExpression": |
| 1532 | "asc": |
| 1533 | "nulls": |
| 1534 | } |
| 1535 | ], |
| 1536 | "isUnique": |
| 1537 | "concurrently": |
| 1538 | "method": |
| 1539 | "with": |
| 1540 | } |
| 1541 | }, |
| 1542 | "foreignKeys": |
| 1543 | "project_member_assignments_project_id_projects_id_fk": |
| 1544 | "name": |
| 1545 | "tableFrom": |
| 1546 | "tableTo": |
| 1547 | "columnsFrom": |
| 1548 | "project_id" |
| 1549 | ], |
| 1550 | "columnsTo": |
| 1551 | "id" |
| 1552 | ], |
| 1553 | "onDelete": |
| 1554 | "onUpdate": |
| 1555 | }, |
| 1556 | "project_member_assignments_member_id_members_id_fk": |
| 1557 | "name": |
| 1558 | "tableFrom": |
| 1559 | "tableTo": |
| 1560 | "columnsFrom": |
| 1561 | "member_id" |
| 1562 | ], |
| 1563 | "columnsTo": |
| 1564 | "id" |
| 1565 | ], |
| 1566 | "onDelete": |
| 1567 | "onUpdate": |
| 1568 | } |
| 1569 | }, |
| 1570 | "compositePrimaryKeys": |
| 1571 | "uniqueConstraints": |
| 1572 | "policies": |
| 1573 | "checkConstraints": |
| 1574 | "isRLSEnabled": |
| 1575 | }, |
| 1576 | "public.project_team_assignments": |
| 1577 | "name": |
| 1578 | "schema": |
| 1579 | "columns": |
| 1580 | "id": |
| 1581 | "name": |
| 1582 | "type": |
| 1583 | "primaryKey": |
| 1584 | "notNull": |
| 1585 | }, |
| 1586 | "project_id": |
| 1587 | "name": |
| 1588 | "type": |
| 1589 | "primaryKey": |
| 1590 | "notNull": |
| 1591 | }, |
| 1592 | "team_id": |
| 1593 | "name": |
| 1594 | "type": |
| 1595 | "primaryKey": |
| 1596 | "notNull": |
| 1597 | }, |
| 1598 | "assigned_at": |
| 1599 | "name": |
| 1600 | "type": |
| 1601 | "primaryKey": |
| 1602 | "notNull": |
| 1603 | "default": |
| 1604 | } |
| 1605 | }, |
| 1606 | "indexes": |
| 1607 | "project_team_unique": |
| 1608 | "name": |
| 1609 | "columns": |
| 1610 | { |
| 1611 | "expression": |
| 1612 | "isExpression": |
| 1613 | "asc": |
| 1614 | "nulls": |
| 1615 | }, |
| 1616 | { |
| 1617 | "expression": |
| 1618 | "isExpression": |
| 1619 | "asc": |
| 1620 | "nulls": |
| 1621 | } |
| 1622 | ], |
| 1623 | "isUnique": |
| 1624 | "concurrently": |
| 1625 | "method": |
| 1626 | "with": |
| 1627 | } |
| 1628 | }, |
| 1629 | "foreignKeys": |
| 1630 | "project_team_assignments_project_id_projects_id_fk": |
| 1631 | "name": |
| 1632 | "tableFrom": |
| 1633 | "tableTo": |
| 1634 | "columnsFrom": |
| 1635 | "project_id" |
| 1636 | ], |
| 1637 | "columnsTo": |
| 1638 | "id" |
| 1639 | ], |
| 1640 | "onDelete": |
| 1641 | "onUpdate": |
| 1642 | }, |
| 1643 | "project_team_assignments_team_id_teams_id_fk": |
| 1644 | "name": |
| 1645 | "tableFrom": |
| 1646 | "tableTo": |
| 1647 | "columnsFrom": |
| 1648 | "team_id" |
| 1649 | ], |
| 1650 | "columnsTo": |
| 1651 | "id" |
| 1652 | ], |
| 1653 | "onDelete": |
| 1654 | "onUpdate": |
| 1655 | } |
| 1656 | }, |
| 1657 | "compositePrimaryKeys": |
| 1658 | "uniqueConstraints": |
| 1659 | "policies": |
| 1660 | "checkConstraints": |
| 1661 | "isRLSEnabled": |
| 1662 | }, |
| 1663 | "public.projects": |
| 1664 | "name": |
| 1665 | "schema": |
| 1666 | "columns": |
| 1667 | "id": |
| 1668 | "name": |
| 1669 | "type": |
| 1670 | "primaryKey": |
| 1671 | "notNull": |
| 1672 | }, |
| 1673 | "name": |
| 1674 | "name": |
| 1675 | "type": |
| 1676 | "primaryKey": |
| 1677 | "notNull": |
| 1678 | }, |
| 1679 | "description": |
| 1680 | "name": |
| 1681 | "type": |
| 1682 | "primaryKey": |
| 1683 | "notNull": |
| 1684 | }, |
| 1685 | "slug": |
| 1686 | "name": |
| 1687 | "type": |
| 1688 | "primaryKey": |
| 1689 | "notNull": |
| 1690 | }, |
| 1691 | "organization_id": |
| 1692 | "name": |
| 1693 | "type": |
| 1694 | "primaryKey": |
| 1695 | "notNull": |
| 1696 | }, |
| 1697 | "due_date": |
| 1698 | "name": |
| 1699 | "type": |
| 1700 | "primaryKey": |
| 1701 | "notNull": |
| 1702 | }, |
| 1703 | "created_at": |
| 1704 | "name": |
| 1705 | "type": |
| 1706 | "primaryKey": |
| 1707 | "notNull": |
| 1708 | "default": |
| 1709 | }, |
| 1710 | "updated_at": |
| 1711 | "name": |
| 1712 | "type": |
| 1713 | "primaryKey": |
| 1714 | "notNull": |
| 1715 | "default": |
| 1716 | } |
| 1717 | }, |
| 1718 | "indexes": |
| 1719 | "foreignKeys": |
| 1720 | "projects_organization_id_organizations_id_fk": |
| 1721 | "name": |
| 1722 | "tableFrom": |
| 1723 | "tableTo": |
| 1724 | "columnsFrom": |
| 1725 | "organization_id" |
| 1726 | ], |
| 1727 | "columnsTo": |
| 1728 | "id" |
| 1729 | ], |
| 1730 | "onDelete": |
| 1731 | "onUpdate": |
| 1732 | } |
| 1733 | }, |
| 1734 | "compositePrimaryKeys": |
| 1735 | "uniqueConstraints": |
| 1736 | "projects_slug_unique": |
| 1737 | "name": |
| 1738 | "nullsNotDistinct": |
| 1739 | "columns": |
| 1740 | "slug" |
| 1741 | ] |
| 1742 | } |
| 1743 | }, |
| 1744 | "policies": |
| 1745 | "checkConstraints": |
| 1746 | "isRLSEnabled": |
| 1747 | }, |
| 1748 | "public.proposal_deliverables": |
| 1749 | "name": |
| 1750 | "schema": |
| 1751 | "columns": |
| 1752 | "id": |
| 1753 | "name": |
| 1754 | "type": |
| 1755 | "primaryKey": |
| 1756 | "notNull": |
| 1757 | }, |
| 1758 | "proposal_id": |
| 1759 | "name": |
| 1760 | "type": |
| 1761 | "primaryKey": |
| 1762 | "notNull": |
| 1763 | }, |
| 1764 | "title": |
| 1765 | "name": |
| 1766 | "type": |
| 1767 | "primaryKey": |
| 1768 | "notNull": |
| 1769 | }, |
| 1770 | "quantity": |
| 1771 | "name": |
| 1772 | "type": |
| 1773 | "primaryKey": |
| 1774 | "notNull": |
| 1775 | }, |
| 1776 | "unit_price": |
| 1777 | "name": |
| 1778 | "type": |
| 1779 | "primaryKey": |
| 1780 | "notNull": |
| 1781 | }, |
| 1782 | "amount": |
| 1783 | "name": |
| 1784 | "type": |
| 1785 | "primaryKey": |
| 1786 | "notNull": |
| 1787 | }, |
| 1788 | "sort_order": |
| 1789 | "name": |
| 1790 | "type": |
| 1791 | "primaryKey": |
| 1792 | "notNull": |
| 1793 | "default": |
| 1794 | } |
| 1795 | }, |
| 1796 | "indexes": |
| 1797 | "foreignKeys": |
| 1798 | "proposal_deliverables_proposal_id_proposals_id_fk": |
| 1799 | "name": |
| 1800 | "tableFrom": |
| 1801 | "tableTo": |
| 1802 | "columnsFrom": |
| 1803 | "proposal_id" |
| 1804 | ], |
| 1805 | "columnsTo": |
| 1806 | "id" |
| 1807 | ], |
| 1808 | "onDelete": |
| 1809 | "onUpdate": |
| 1810 | } |
| 1811 | }, |
| 1812 | "compositePrimaryKeys": |
| 1813 | "uniqueConstraints": |
| 1814 | "policies": |
| 1815 | "checkConstraints": |
| 1816 | "isRLSEnabled": |
| 1817 | }, |
| 1818 | "public.proposal_recipients": |
| 1819 | "name": |
| 1820 | "schema": |
| 1821 | "columns": |
| 1822 | "id": |
| 1823 | "name": |
| 1824 | "type": |
| 1825 | "primaryKey": |
| 1826 | "notNull": |
| 1827 | }, |
| 1828 | "proposal_id": |
| 1829 | "name": |
| 1830 | "type": |
| 1831 | "primaryKey": |
| 1832 | "notNull": |
| 1833 | }, |
| 1834 | "client_member_id": |
| 1835 | "name": |
| 1836 | "type": |
| 1837 | "primaryKey": |
| 1838 | "notNull": |
| 1839 | }, |
| 1840 | "sent_at": |
| 1841 | "name": |
| 1842 | "type": |
| 1843 | "primaryKey": |
| 1844 | "notNull": |
| 1845 | "default": |
| 1846 | } |
| 1847 | }, |
| 1848 | "indexes": |
| 1849 | "foreignKeys": |
| 1850 | "proposal_recipients_proposal_id_proposals_id_fk": |
| 1851 | "name": |
| 1852 | "tableFrom": |
| 1853 | "tableTo": |
| 1854 | "columnsFrom": |
| 1855 | "proposal_id" |
| 1856 | ], |
| 1857 | "columnsTo": |
| 1858 | "id" |
| 1859 | ], |
| 1860 | "onDelete": |
| 1861 | "onUpdate": |
| 1862 | }, |
| 1863 | "proposal_recipients_client_member_id_members_id_fk": |
| 1864 | "name": |
| 1865 | "tableFrom": |
| 1866 | "tableTo": |
| 1867 | "columnsFrom": |
| 1868 | "client_member_id" |
| 1869 | ], |
| 1870 | "columnsTo": |
| 1871 | "id" |
| 1872 | ], |
| 1873 | "onDelete": |
| 1874 | "onUpdate": |
| 1875 | } |
| 1876 | }, |
| 1877 | "compositePrimaryKeys": |
| 1878 | "uniqueConstraints": |
| 1879 | "policies": |
| 1880 | "checkConstraints": |
| 1881 | "isRLSEnabled": |
| 1882 | }, |
| 1883 | "public.proposal_signatures": |
| 1884 | "name": |
| 1885 | "schema": |
| 1886 | "columns": |
| 1887 | "id": |
| 1888 | "name": |
| 1889 | "type": |
| 1890 | "primaryKey": |
| 1891 | "notNull": |
| 1892 | }, |
| 1893 | "proposal_id": |
| 1894 | "name": |
| 1895 | "type": |
| 1896 | "primaryKey": |
| 1897 | "notNull": |
| 1898 | }, |
| 1899 | "client_member_id": |
| 1900 | "name": |
| 1901 | "type": |
| 1902 | "primaryKey": |
| 1903 | "notNull": |
| 1904 | }, |
| 1905 | "media_id": |
| 1906 | "name": |
| 1907 | "type": |
| 1908 | "primaryKey": |
| 1909 | "notNull": |
| 1910 | }, |
| 1911 | "signed_at": |
| 1912 | "name": |
| 1913 | "type": |
| 1914 | "primaryKey": |
| 1915 | "notNull": |
| 1916 | "default": |
| 1917 | } |
| 1918 | }, |
| 1919 | "indexes": |
| 1920 | "foreignKeys": |
| 1921 | "proposal_signatures_proposal_id_proposals_id_fk": |
| 1922 | "name": |
| 1923 | "tableFrom": |
| 1924 | "tableTo": |
| 1925 | "columnsFrom": |
| 1926 | "proposal_id" |
| 1927 | ], |
| 1928 | "columnsTo": |
| 1929 | "id" |
| 1930 | ], |
| 1931 | "onDelete": |
| 1932 | "onUpdate": |
| 1933 | }, |
| 1934 | "proposal_signatures_client_member_id_members_id_fk": |
| 1935 | "name": |
| 1936 | "tableFrom": |
| 1937 | "tableTo": |
| 1938 | "columnsFrom": |
| 1939 | "client_member_id" |
| 1940 | ], |
| 1941 | "columnsTo": |
| 1942 | "id" |
| 1943 | ], |
| 1944 | "onDelete": |
| 1945 | "onUpdate": |
| 1946 | }, |
| 1947 | "proposal_signatures_media_id_media_id_fk": |
| 1948 | "name": |
| 1949 | "tableFrom": |
| 1950 | "tableTo": |
| 1951 | "columnsFrom": |
| 1952 | "media_id" |
| 1953 | ], |
| 1954 | "columnsTo": |
| 1955 | "id" |
| 1956 | ], |
| 1957 | "onDelete": |
| 1958 | "onUpdate": |
| 1959 | } |
| 1960 | }, |
| 1961 | "compositePrimaryKeys": |
| 1962 | "uniqueConstraints": |
| 1963 | "policies": |
| 1964 | "checkConstraints": |
| 1965 | "isRLSEnabled": |
| 1966 | }, |
| 1967 | "public.proposals": |
| 1968 | "name": |
| 1969 | "schema": |
| 1970 | "columns": |
| 1971 | "id": |
| 1972 | "name": |
| 1973 | "type": |
| 1974 | "primaryKey": |
| 1975 | "notNull": |
| 1976 | }, |
| 1977 | "project_id": |
| 1978 | "name": |
| 1979 | "type": |
| 1980 | "primaryKey": |
| 1981 | "notNull": |
| 1982 | }, |
| 1983 | "author_id": |
| 1984 | "name": |
| 1985 | "type": |
| 1986 | "primaryKey": |
| 1987 | "notNull": |
| 1988 | }, |
| 1989 | "title": |
| 1990 | "name": |
| 1991 | "type": |
| 1992 | "primaryKey": |
| 1993 | "notNull": |
| 1994 | }, |
| 1995 | "slug": |
| 1996 | "name": |
| 1997 | "type": |
| 1998 | "primaryKey": |
| 1999 | "notNull": |
| 2000 | }, |
| 2001 | "body": |
| 2002 | "name": |
| 2003 | "type": |
| 2004 | "primaryKey": |
| 2005 | "notNull": |
| 2006 | "default": |
| 2007 | }, |
| 2008 | "terms": |
| 2009 | "name": |
| 2010 | "type": |
| 2011 | "primaryKey": |
| 2012 | "notNull": |
| 2013 | }, |
| 2014 | "status": |
| 2015 | "name": |
| 2016 | "type": |
| 2017 | "typeSchema": |
| 2018 | "primaryKey": |
| 2019 | "notNull": |
| 2020 | "default": |
| 2021 | }, |
| 2022 | "valid_until": |
| 2023 | "name": |
| 2024 | "type": |
| 2025 | "primaryKey": |
| 2026 | "notNull": |
| 2027 | }, |
| 2028 | "currency": |
| 2029 | "name": |
| 2030 | "type": |
| 2031 | "primaryKey": |
| 2032 | "notNull": |
| 2033 | "default": |
| 2034 | }, |
| 2035 | "total_amount": |
| 2036 | "name": |
| 2037 | "type": |
| 2038 | "primaryKey": |
| 2039 | "notNull": |
| 2040 | "default": |
| 2041 | }, |
| 2042 | "created_at": |
| 2043 | "name": |
| 2044 | "type": |
| 2045 | "primaryKey": |
| 2046 | "notNull": |
| 2047 | "default": |
| 2048 | }, |
| 2049 | "updated_at": |
| 2050 | "name": |
| 2051 | "type": |
| 2052 | "primaryKey": |
| 2053 | "notNull": |
| 2054 | "default": |
| 2055 | } |
| 2056 | }, |
| 2057 | "indexes": |
| 2058 | "proposals_project_id_idx": |
| 2059 | "name": |
| 2060 | "columns": |
| 2061 | { |
| 2062 | "expression": |
| 2063 | "isExpression": |
| 2064 | "asc": |
| 2065 | "nulls": |
| 2066 | } |
| 2067 | ], |
| 2068 | "isUnique": |
| 2069 | "concurrently": |
| 2070 | "method": |
| 2071 | "with": |
| 2072 | } |
| 2073 | }, |
| 2074 | "foreignKeys": |
| 2075 | "proposals_project_id_projects_id_fk": |
| 2076 | "name": |
| 2077 | "tableFrom": |
| 2078 | "tableTo": |
| 2079 | "columnsFrom": |
| 2080 | "project_id" |
| 2081 | ], |
| 2082 | "columnsTo": |
| 2083 | "id" |
| 2084 | ], |
| 2085 | "onDelete": |
| 2086 | "onUpdate": |
| 2087 | }, |
| 2088 | "proposals_author_id_members_id_fk": |
| 2089 | "name": |
| 2090 | "tableFrom": |
| 2091 | "tableTo": |
| 2092 | "columnsFrom": |
| 2093 | "author_id" |
| 2094 | ], |
| 2095 | "columnsTo": |
| 2096 | "id" |
| 2097 | ], |
| 2098 | "onDelete": |
| 2099 | "onUpdate": |
| 2100 | } |
| 2101 | }, |
| 2102 | "compositePrimaryKeys": |
| 2103 | "uniqueConstraints": |
| 2104 | "proposals_slug_unique": |
| 2105 | "name": |
| 2106 | "nullsNotDistinct": |
| 2107 | "columns": |
| 2108 | "slug" |
| 2109 | ] |
| 2110 | } |
| 2111 | }, |
| 2112 | "policies": |
| 2113 | "checkConstraints": |
| 2114 | "isRLSEnabled": |
| 2115 | }, |
| 2116 | "public.requirement_change_requests": |
| 2117 | "name": |
| 2118 | "schema": |
| 2119 | "columns": |
| 2120 | "id": |
| 2121 | "name": |
| 2122 | "type": |
| 2123 | "primaryKey": |
| 2124 | "notNull": |
| 2125 | }, |
| 2126 | "requirement_id": |
| 2127 | "name": |
| 2128 | "type": |
| 2129 | "primaryKey": |
| 2130 | "notNull": |
| 2131 | }, |
| 2132 | "requested_by_member_id": |
| 2133 | "name": |
| 2134 | "type": |
| 2135 | "primaryKey": |
| 2136 | "notNull": |
| 2137 | }, |
| 2138 | "description": |
| 2139 | "name": |
| 2140 | "type": |
| 2141 | "primaryKey": |
| 2142 | "notNull": |
| 2143 | }, |
| 2144 | "referenced_thread_ids": |
| 2145 | "name": |
| 2146 | "type": |
| 2147 | "primaryKey": |
| 2148 | "notNull": |
| 2149 | }, |
| 2150 | "status": |
| 2151 | "name": |
| 2152 | "type": |
| 2153 | "typeSchema": |
| 2154 | "primaryKey": |
| 2155 | "notNull": |
| 2156 | "default": |
| 2157 | }, |
| 2158 | "created_at": |
| 2159 | "name": |
| 2160 | "type": |
| 2161 | "primaryKey": |
| 2162 | "notNull": |
| 2163 | "default": |
| 2164 | }, |
| 2165 | "resolved_at": |
| 2166 | "name": |
| 2167 | "type": |
| 2168 | "primaryKey": |
| 2169 | "notNull": |
| 2170 | } |
| 2171 | }, |
| 2172 | "indexes": |
| 2173 | "foreignKeys": |
| 2174 | "requirement_change_requests_requirement_id_requirements_id_fk": |
| 2175 | "name": |
| 2176 | "tableFrom": |
| 2177 | "tableTo": |
| 2178 | "columnsFrom": |
| 2179 | "requirement_id" |
| 2180 | ], |
| 2181 | "columnsTo": |
| 2182 | "id" |
| 2183 | ], |
| 2184 | "onDelete": |
| 2185 | "onUpdate": |
| 2186 | }, |
| 2187 | "requirement_change_requests_requested_by_member_id_members_id_fk": |
| 2188 | "name": |
| 2189 | "tableFrom": |
| 2190 | "tableTo": |
| 2191 | "columnsFrom": |
| 2192 | "requested_by_member_id" |
| 2193 | ], |
| 2194 | "columnsTo": |
| 2195 | "id" |
| 2196 | ], |
| 2197 | "onDelete": |
| 2198 | "onUpdate": |
| 2199 | } |
| 2200 | }, |
| 2201 | "compositePrimaryKeys": |
| 2202 | "uniqueConstraints": |
| 2203 | "policies": |
| 2204 | "checkConstraints": |
| 2205 | "isRLSEnabled": |
| 2206 | }, |
| 2207 | "public.requirement_recipients": |
| 2208 | "name": |
| 2209 | "schema": |
| 2210 | "columns": |
| 2211 | "id": |
| 2212 | "name": |
| 2213 | "type": |
| 2214 | "primaryKey": |
| 2215 | "notNull": |
| 2216 | }, |
| 2217 | "requirement_id": |
| 2218 | "name": |
| 2219 | "type": |
| 2220 | "primaryKey": |
| 2221 | "notNull": |
| 2222 | }, |
| 2223 | "client_member_id": |
| 2224 | "name": |
| 2225 | "type": |
| 2226 | "primaryKey": |
| 2227 | "notNull": |
| 2228 | }, |
| 2229 | "sent_at": |
| 2230 | "name": |
| 2231 | "type": |
| 2232 | "primaryKey": |
| 2233 | "notNull": |
| 2234 | "default": |
| 2235 | } |
| 2236 | }, |
| 2237 | "indexes": |
| 2238 | "foreignKeys": |
| 2239 | "requirement_recipients_requirement_id_requirements_id_fk": |
| 2240 | "name": |
| 2241 | "tableFrom": |
| 2242 | "tableTo": |
| 2243 | "columnsFrom": |
| 2244 | "requirement_id" |
| 2245 | ], |
| 2246 | "columnsTo": |
| 2247 | "id" |
| 2248 | ], |
| 2249 | "onDelete": |
| 2250 | "onUpdate": |
| 2251 | }, |
| 2252 | "requirement_recipients_client_member_id_members_id_fk": |
| 2253 | "name": |
| 2254 | "tableFrom": |
| 2255 | "tableTo": |
| 2256 | "columnsFrom": |
| 2257 | "client_member_id" |
| 2258 | ], |
| 2259 | "columnsTo": |
| 2260 | "id" |
| 2261 | ], |
| 2262 | "onDelete": |
| 2263 | "onUpdate": |
| 2264 | } |
| 2265 | }, |
| 2266 | "compositePrimaryKeys": |
| 2267 | "uniqueConstraints": |
| 2268 | "policies": |
| 2269 | "checkConstraints": |
| 2270 | "isRLSEnabled": |
| 2271 | }, |
| 2272 | "public.requirement_signatures": |
| 2273 | "name": |
| 2274 | "schema": |
| 2275 | "columns": |
| 2276 | "id": |
| 2277 | "name": |
| 2278 | "type": |
| 2279 | "primaryKey": |
| 2280 | "notNull": |
| 2281 | }, |
| 2282 | "requirement_id": |
| 2283 | "name": |
| 2284 | "type": |
| 2285 | "primaryKey": |
| 2286 | "notNull": |
| 2287 | }, |
| 2288 | "client_member_id": |
| 2289 | "name": |
| 2290 | "type": |
| 2291 | "primaryKey": |
| 2292 | "notNull": |
| 2293 | }, |
| 2294 | "signed_at": |
| 2295 | "name": |
| 2296 | "type": |
| 2297 | "primaryKey": |
| 2298 | "notNull": |
| 2299 | "default": |
| 2300 | }, |
| 2301 | "media_id": |
| 2302 | "name": |
| 2303 | "type": |
| 2304 | "primaryKey": |
| 2305 | "notNull": |
| 2306 | } |
| 2307 | }, |
| 2308 | "indexes": |
| 2309 | "foreignKeys": |
| 2310 | "requirement_signatures_requirement_id_requirements_id_fk": |
| 2311 | "name": |
| 2312 | "tableFrom": |
| 2313 | "tableTo": |
| 2314 | "columnsFrom": |
| 2315 | "requirement_id" |
| 2316 | ], |
| 2317 | "columnsTo": |
| 2318 | "id" |
| 2319 | ], |
| 2320 | "onDelete": |
| 2321 | "onUpdate": |
| 2322 | }, |
| 2323 | "requirement_signatures_client_member_id_members_id_fk": |
| 2324 | "name": |
| 2325 | "tableFrom": |
| 2326 | "tableTo": |
| 2327 | "columnsFrom": |
| 2328 | "client_member_id" |
| 2329 | ], |
| 2330 | "columnsTo": |
| 2331 | "id" |
| 2332 | ], |
| 2333 | "onDelete": |
| 2334 | "onUpdate": |
| 2335 | }, |
| 2336 | "requirement_signatures_media_id_media_id_fk": |
| 2337 | "name": |
| 2338 | "tableFrom": |
| 2339 | "tableTo": |
| 2340 | "columnsFrom": |
| 2341 | "media_id" |
| 2342 | ], |
| 2343 | "columnsTo": |
| 2344 | "id" |
| 2345 | ], |
| 2346 | "onDelete": |
| 2347 | "onUpdate": |
| 2348 | } |
| 2349 | }, |
| 2350 | "compositePrimaryKeys": |
| 2351 | "uniqueConstraints": |
| 2352 | "policies": |
| 2353 | "checkConstraints": |
| 2354 | "isRLSEnabled": |
| 2355 | }, |
| 2356 | "public.requirements": |
| 2357 | "name": |
| 2358 | "schema": |
| 2359 | "columns": |
| 2360 | "id": |
| 2361 | "name": |
| 2362 | "type": |
| 2363 | "primaryKey": |
| 2364 | "notNull": |
| 2365 | }, |
| 2366 | "project_id": |
| 2367 | "name": |
| 2368 | "type": |
| 2369 | "primaryKey": |
| 2370 | "notNull": |
| 2371 | }, |
| 2372 | "author_id": |
| 2373 | "name": |
| 2374 | "type": |
| 2375 | "primaryKey": |
| 2376 | "notNull": |
| 2377 | }, |
| 2378 | "slug": |
| 2379 | "name": |
| 2380 | "type": |
| 2381 | "primaryKey": |
| 2382 | "notNull": |
| 2383 | }, |
| 2384 | "title": |
| 2385 | "name": |
| 2386 | "type": |
| 2387 | "primaryKey": |
| 2388 | "notNull": |
| 2389 | }, |
| 2390 | "body": |
| 2391 | "name": |
| 2392 | "type": |
| 2393 | "primaryKey": |
| 2394 | "notNull": |
| 2395 | "default": |
| 2396 | }, |
| 2397 | "status": |
| 2398 | "name": |
| 2399 | "type": |
| 2400 | "typeSchema": |
| 2401 | "primaryKey": |
| 2402 | "notNull": |
| 2403 | "default": |
| 2404 | }, |
| 2405 | "created_at": |
| 2406 | "name": |
| 2407 | "type": |
| 2408 | "primaryKey": |
| 2409 | "notNull": |
| 2410 | "default": |
| 2411 | }, |
| 2412 | "updated_at": |
| 2413 | "name": |
| 2414 | "type": |
| 2415 | "primaryKey": |
| 2416 | "notNull": |
| 2417 | "default": |
| 2418 | } |
| 2419 | }, |
| 2420 | "indexes": |
| 2421 | "requirements_project_id_idx": |
| 2422 | "name": |
| 2423 | "columns": |
| 2424 | { |
| 2425 | "expression": |
| 2426 | "isExpression": |
| 2427 | "asc": |
| 2428 | "nulls": |
| 2429 | } |
| 2430 | ], |
| 2431 | "isUnique": |
| 2432 | "concurrently": |
| 2433 | "method": |
| 2434 | "with": |
| 2435 | } |
| 2436 | }, |
| 2437 | "foreignKeys": |
| 2438 | "requirements_project_id_projects_id_fk": |
| 2439 | "name": |
| 2440 | "tableFrom": |
| 2441 | "tableTo": |
| 2442 | "columnsFrom": |
| 2443 | "project_id" |
| 2444 | ], |
| 2445 | "columnsTo": |
| 2446 | "id" |
| 2447 | ], |
| 2448 | "onDelete": |
| 2449 | "onUpdate": |
| 2450 | }, |
| 2451 | "requirements_author_id_members_id_fk": |
| 2452 | "name": |
| 2453 | "tableFrom": |
| 2454 | "tableTo": |
| 2455 | "columnsFrom": |
| 2456 | "author_id" |
| 2457 | ], |
| 2458 | "columnsTo": |
| 2459 | "id" |
| 2460 | ], |
| 2461 | "onDelete": |
| 2462 | "onUpdate": |
| 2463 | } |
| 2464 | }, |
| 2465 | "compositePrimaryKeys": |
| 2466 | "uniqueConstraints": |
| 2467 | "requirements_project_id_slug_unique": |
| 2468 | "name": |
| 2469 | "nullsNotDistinct": |
| 2470 | "columns": |
| 2471 | "project_id", |
| 2472 | "slug" |
| 2473 | ] |
| 2474 | } |
| 2475 | }, |
| 2476 | "policies": |
| 2477 | "checkConstraints": |
| 2478 | "isRLSEnabled": |
| 2479 | }, |
| 2480 | "public.thread_messages": |
| 2481 | "name": |
| 2482 | "schema": |
| 2483 | "columns": |
| 2484 | "id": |
| 2485 | "name": |
| 2486 | "type": |
| 2487 | "primaryKey": |
| 2488 | "notNull": |
| 2489 | }, |
| 2490 | "thread_id": |
| 2491 | "name": |
| 2492 | "type": |
| 2493 | "primaryKey": |
| 2494 | "notNull": |
| 2495 | }, |
| 2496 | "author_member_id": |
| 2497 | "name": |
| 2498 | "type": |
| 2499 | "primaryKey": |
| 2500 | "notNull": |
| 2501 | }, |
| 2502 | "body": |
| 2503 | "name": |
| 2504 | "type": |
| 2505 | "primaryKey": |
| 2506 | "notNull": |
| 2507 | }, |
| 2508 | "created_at": |
| 2509 | "name": |
| 2510 | "type": |
| 2511 | "primaryKey": |
| 2512 | "notNull": |
| 2513 | "default": |
| 2514 | } |
| 2515 | }, |
| 2516 | "indexes": |
| 2517 | "foreignKeys": |
| 2518 | "thread_messages_thread_id_threads_id_fk": |
| 2519 | "name": |
| 2520 | "tableFrom": |
| 2521 | "tableTo": |
| 2522 | "columnsFrom": |
| 2523 | "thread_id" |
| 2524 | ], |
| 2525 | "columnsTo": |
| 2526 | "id" |
| 2527 | ], |
| 2528 | "onDelete": |
| 2529 | "onUpdate": |
| 2530 | }, |
| 2531 | "thread_messages_author_member_id_members_id_fk": |
| 2532 | "name": |
| 2533 | "tableFrom": |
| 2534 | "tableTo": |
| 2535 | "columnsFrom": |
| 2536 | "author_member_id" |
| 2537 | ], |
| 2538 | "columnsTo": |
| 2539 | "id" |
| 2540 | ], |
| 2541 | "onDelete": |
| 2542 | "onUpdate": |
| 2543 | } |
| 2544 | }, |
| 2545 | "compositePrimaryKeys": |
| 2546 | "uniqueConstraints": |
| 2547 | "policies": |
| 2548 | "checkConstraints": |
| 2549 | "isRLSEnabled": |
| 2550 | }, |
| 2551 | "public.threads": |
| 2552 | "name": |
| 2553 | "schema": |
| 2554 | "columns": |
| 2555 | "id": |
| 2556 | "name": |
| 2557 | "type": |
| 2558 | "primaryKey": |
| 2559 | "notNull": |
| 2560 | }, |
| 2561 | "entity_id": |
| 2562 | "name": |
| 2563 | "type": |
| 2564 | "primaryKey": |
| 2565 | "notNull": |
| 2566 | }, |
| 2567 | "project_id": |
| 2568 | "name": |
| 2569 | "type": |
| 2570 | "primaryKey": |
| 2571 | "notNull": |
| 2572 | }, |
| 2573 | "selected_text": |
| 2574 | "name": |
| 2575 | "type": |
| 2576 | "primaryKey": |
| 2577 | "notNull": |
| 2578 | }, |
| 2579 | "status": |
| 2580 | "name": |
| 2581 | "type": |
| 2582 | "typeSchema": |
| 2583 | "primaryKey": |
| 2584 | "notNull": |
| 2585 | "default": |
| 2586 | }, |
| 2587 | "created_by_member_id": |
| 2588 | "name": |
| 2589 | "type": |
| 2590 | "primaryKey": |
| 2591 | "notNull": |
| 2592 | }, |
| 2593 | "created_at": |
| 2594 | "name": |
| 2595 | "type": |
| 2596 | "primaryKey": |
| 2597 | "notNull": |
| 2598 | "default": |
| 2599 | } |
| 2600 | }, |
| 2601 | "indexes": |
| 2602 | "threads_project_id_idx": |
| 2603 | "name": |
| 2604 | "columns": |
| 2605 | { |
| 2606 | "expression": |
| 2607 | "isExpression": |
| 2608 | "asc": |
| 2609 | "nulls": |
| 2610 | } |
| 2611 | ], |
| 2612 | "isUnique": |
| 2613 | "concurrently": |
| 2614 | "method": |
| 2615 | "with": |
| 2616 | } |
| 2617 | }, |
| 2618 | "foreignKeys": |
| 2619 | "threads_project_id_projects_id_fk": |
| 2620 | "name": |
| 2621 | "tableFrom": |
| 2622 | "tableTo": |
| 2623 | "columnsFrom": |
| 2624 | "project_id" |
| 2625 | ], |
| 2626 | "columnsTo": |
| 2627 | "id" |
| 2628 | ], |
| 2629 | "onDelete": |
| 2630 | "onUpdate": |
| 2631 | }, |
| 2632 | "threads_created_by_member_id_members_id_fk": |
| 2633 | "name": |
| 2634 | "tableFrom": |
| 2635 | "tableTo": |
| 2636 | "columnsFrom": |
| 2637 | "created_by_member_id" |
| 2638 | ], |
| 2639 | "columnsTo": |
| 2640 | "id" |
| 2641 | ], |
| 2642 | "onDelete": |
| 2643 | "onUpdate": |
| 2644 | } |
| 2645 | }, |
| 2646 | "compositePrimaryKeys": |
| 2647 | "uniqueConstraints": |
| 2648 | "policies": |
| 2649 | "checkConstraints": |
| 2650 | "isRLSEnabled": |
| 2651 | } |
| 2652 | }, |
| 2653 | "enums": |
| 2654 | "public.change_request_status": |
| 2655 | "name": |
| 2656 | "schema": |
| 2657 | "values": |
| 2658 | "pending", |
| 2659 | "accepted", |
| 2660 | "rejected" |
| 2661 | ] |
| 2662 | }, |
| 2663 | "public.status": |
| 2664 | "name": |
| 2665 | "schema": |
| 2666 | "values": |
| 2667 | "draft", |
| 2668 | "submitted_to_admin", |
| 2669 | "admin_accepted", |
| 2670 | "admin_rejected", |
| 2671 | "submitted_to_client", |
| 2672 | "client_accepted", |
| 2673 | "client_rejected", |
| 2674 | "changes_requested" |
| 2675 | ] |
| 2676 | }, |
| 2677 | "public.thread_status": |
| 2678 | "name": |
| 2679 | "schema": |
| 2680 | "values": |
| 2681 | "open", |
| 2682 | "resolved", |
| 2683 | "closed" |
| 2684 | ] |
| 2685 | }, |
| 2686 | "public.milestone_status": |
| 2687 | "name": |
| 2688 | "schema": |
| 2689 | "values": |
| 2690 | "pending", |
| 2691 | "in_progress", |
| 2692 | "completed", |
| 2693 | "blocked" |
| 2694 | ] |
| 2695 | }, |
| 2696 | "public.project_invitation_type": |
| 2697 | "name": |
| 2698 | "schema": |
| 2699 | "values": |
| 2700 | "member", |
| 2701 | "client" |
| 2702 | ] |
| 2703 | } |
| 2704 | }, |
| 2705 | "schemas": |
| 2706 | "sequences": |
| 2707 | "roles": |
| 2708 | "policies": |
| 2709 | "views": |
| 2710 | "_meta": |
| 2711 | "columns": |
| 2712 | "schemas": |
| 2713 | "tables": |
| 2714 | } |
| 2715 | } |