it now supports push and pull50ad2a1a month ago1164 lines · 28.7 KB | 1 | { |
| 2 | "id": "735ecb27-8d2a-4750-8b6a-67650885da36", |
| 3 | "prevId": |
| 4 | "version": |
| 5 | "dialect": |
| 6 | "tables": |
| 7 | "public.account": |
| 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 | "issuer": |
| 72 | "name": |
| 73 | "type": |
| 74 | "primaryKey": |
| 75 | "notNull": |
| 76 | }, |
| 77 | "password": |
| 78 | "name": |
| 79 | "type": |
| 80 | "primaryKey": |
| 81 | "notNull": |
| 82 | }, |
| 83 | "created_at": |
| 84 | "name": |
| 85 | "type": |
| 86 | "primaryKey": |
| 87 | "notNull": |
| 88 | "default": |
| 89 | }, |
| 90 | "updated_at": |
| 91 | "name": |
| 92 | "type": |
| 93 | "primaryKey": |
| 94 | "notNull": |
| 95 | } |
| 96 | }, |
| 97 | "indexes": |
| 98 | "account_userId_idx": |
| 99 | "name": |
| 100 | "columns": |
| 101 | { |
| 102 | "expression": |
| 103 | "isExpression": |
| 104 | "asc": |
| 105 | "nulls": |
| 106 | } |
| 107 | ], |
| 108 | "isUnique": |
| 109 | "concurrently": |
| 110 | "method": |
| 111 | "with": |
| 112 | } |
| 113 | }, |
| 114 | "foreignKeys": |
| 115 | "account_user_id_user_id_fk": |
| 116 | "name": |
| 117 | "tableFrom": |
| 118 | "tableTo": |
| 119 | "columnsFrom": |
| 120 | "user_id" |
| 121 | ], |
| 122 | "columnsTo": |
| 123 | "id" |
| 124 | ], |
| 125 | "onDelete": |
| 126 | "onUpdate": |
| 127 | } |
| 128 | }, |
| 129 | "compositePrimaryKeys": |
| 130 | "uniqueConstraints": |
| 131 | "policies": |
| 132 | "checkConstraints": |
| 133 | "isRLSEnabled": |
| 134 | }, |
| 135 | "public.invitation": |
| 136 | "name": |
| 137 | "schema": |
| 138 | "columns": |
| 139 | "id": |
| 140 | "name": |
| 141 | "type": |
| 142 | "primaryKey": |
| 143 | "notNull": |
| 144 | }, |
| 145 | "organization_id": |
| 146 | "name": |
| 147 | "type": |
| 148 | "primaryKey": |
| 149 | "notNull": |
| 150 | }, |
| 151 | "email": |
| 152 | "name": |
| 153 | "type": |
| 154 | "primaryKey": |
| 155 | "notNull": |
| 156 | }, |
| 157 | "role": |
| 158 | "name": |
| 159 | "type": |
| 160 | "primaryKey": |
| 161 | "notNull": |
| 162 | }, |
| 163 | "team_id": |
| 164 | "name": |
| 165 | "type": |
| 166 | "primaryKey": |
| 167 | "notNull": |
| 168 | }, |
| 169 | "status": |
| 170 | "name": |
| 171 | "type": |
| 172 | "primaryKey": |
| 173 | "notNull": |
| 174 | "default": |
| 175 | }, |
| 176 | "expires_at": |
| 177 | "name": |
| 178 | "type": |
| 179 | "primaryKey": |
| 180 | "notNull": |
| 181 | }, |
| 182 | "created_at": |
| 183 | "name": |
| 184 | "type": |
| 185 | "primaryKey": |
| 186 | "notNull": |
| 187 | "default": |
| 188 | }, |
| 189 | "inviter_id": |
| 190 | "name": |
| 191 | "type": |
| 192 | "primaryKey": |
| 193 | "notNull": |
| 194 | } |
| 195 | }, |
| 196 | "indexes": |
| 197 | "invitation_organizationId_idx": |
| 198 | "name": |
| 199 | "columns": |
| 200 | { |
| 201 | "expression": |
| 202 | "isExpression": |
| 203 | "asc": |
| 204 | "nulls": |
| 205 | } |
| 206 | ], |
| 207 | "isUnique": |
| 208 | "concurrently": |
| 209 | "method": |
| 210 | "with": |
| 211 | }, |
| 212 | "invitation_email_idx": |
| 213 | "name": |
| 214 | "columns": |
| 215 | { |
| 216 | "expression": |
| 217 | "isExpression": |
| 218 | "asc": |
| 219 | "nulls": |
| 220 | } |
| 221 | ], |
| 222 | "isUnique": |
| 223 | "concurrently": |
| 224 | "method": |
| 225 | "with": |
| 226 | } |
| 227 | }, |
| 228 | "foreignKeys": |
| 229 | "invitation_organization_id_organization_id_fk": |
| 230 | "name": |
| 231 | "tableFrom": |
| 232 | "tableTo": |
| 233 | "columnsFrom": |
| 234 | "organization_id" |
| 235 | ], |
| 236 | "columnsTo": |
| 237 | "id" |
| 238 | ], |
| 239 | "onDelete": |
| 240 | "onUpdate": |
| 241 | }, |
| 242 | "invitation_inviter_id_user_id_fk": |
| 243 | "name": |
| 244 | "tableFrom": |
| 245 | "tableTo": |
| 246 | "columnsFrom": |
| 247 | "inviter_id" |
| 248 | ], |
| 249 | "columnsTo": |
| 250 | "id" |
| 251 | ], |
| 252 | "onDelete": |
| 253 | "onUpdate": |
| 254 | } |
| 255 | }, |
| 256 | "compositePrimaryKeys": |
| 257 | "uniqueConstraints": |
| 258 | "policies": |
| 259 | "checkConstraints": |
| 260 | "isRLSEnabled": |
| 261 | }, |
| 262 | "public.member": |
| 263 | "name": |
| 264 | "schema": |
| 265 | "columns": |
| 266 | "id": |
| 267 | "name": |
| 268 | "type": |
| 269 | "primaryKey": |
| 270 | "notNull": |
| 271 | }, |
| 272 | "organization_id": |
| 273 | "name": |
| 274 | "type": |
| 275 | "primaryKey": |
| 276 | "notNull": |
| 277 | }, |
| 278 | "user_id": |
| 279 | "name": |
| 280 | "type": |
| 281 | "primaryKey": |
| 282 | "notNull": |
| 283 | }, |
| 284 | "role": |
| 285 | "name": |
| 286 | "type": |
| 287 | "primaryKey": |
| 288 | "notNull": |
| 289 | "default": |
| 290 | }, |
| 291 | "created_at": |
| 292 | "name": |
| 293 | "type": |
| 294 | "primaryKey": |
| 295 | "notNull": |
| 296 | } |
| 297 | }, |
| 298 | "indexes": |
| 299 | "member_organizationId_idx": |
| 300 | "name": |
| 301 | "columns": |
| 302 | { |
| 303 | "expression": |
| 304 | "isExpression": |
| 305 | "asc": |
| 306 | "nulls": |
| 307 | } |
| 308 | ], |
| 309 | "isUnique": |
| 310 | "concurrently": |
| 311 | "method": |
| 312 | "with": |
| 313 | }, |
| 314 | "member_userId_idx": |
| 315 | "name": |
| 316 | "columns": |
| 317 | { |
| 318 | "expression": |
| 319 | "isExpression": |
| 320 | "asc": |
| 321 | "nulls": |
| 322 | } |
| 323 | ], |
| 324 | "isUnique": |
| 325 | "concurrently": |
| 326 | "method": |
| 327 | "with": |
| 328 | } |
| 329 | }, |
| 330 | "foreignKeys": |
| 331 | "member_organization_id_organization_id_fk": |
| 332 | "name": |
| 333 | "tableFrom": |
| 334 | "tableTo": |
| 335 | "columnsFrom": |
| 336 | "organization_id" |
| 337 | ], |
| 338 | "columnsTo": |
| 339 | "id" |
| 340 | ], |
| 341 | "onDelete": |
| 342 | "onUpdate": |
| 343 | }, |
| 344 | "member_user_id_user_id_fk": |
| 345 | "name": |
| 346 | "tableFrom": |
| 347 | "tableTo": |
| 348 | "columnsFrom": |
| 349 | "user_id" |
| 350 | ], |
| 351 | "columnsTo": |
| 352 | "id" |
| 353 | ], |
| 354 | "onDelete": |
| 355 | "onUpdate": |
| 356 | } |
| 357 | }, |
| 358 | "compositePrimaryKeys": |
| 359 | "uniqueConstraints": |
| 360 | "policies": |
| 361 | "checkConstraints": |
| 362 | "isRLSEnabled": |
| 363 | }, |
| 364 | "public.organization": |
| 365 | "name": |
| 366 | "schema": |
| 367 | "columns": |
| 368 | "id": |
| 369 | "name": |
| 370 | "type": |
| 371 | "primaryKey": |
| 372 | "notNull": |
| 373 | }, |
| 374 | "name": |
| 375 | "name": |
| 376 | "type": |
| 377 | "primaryKey": |
| 378 | "notNull": |
| 379 | }, |
| 380 | "slug": |
| 381 | "name": |
| 382 | "type": |
| 383 | "primaryKey": |
| 384 | "notNull": |
| 385 | }, |
| 386 | "logo": |
| 387 | "name": |
| 388 | "type": |
| 389 | "primaryKey": |
| 390 | "notNull": |
| 391 | }, |
| 392 | "created_at": |
| 393 | "name": |
| 394 | "type": |
| 395 | "primaryKey": |
| 396 | "notNull": |
| 397 | }, |
| 398 | "metadata": |
| 399 | "name": |
| 400 | "type": |
| 401 | "primaryKey": |
| 402 | "notNull": |
| 403 | } |
| 404 | }, |
| 405 | "indexes": |
| 406 | "organization_slug_uidx": |
| 407 | "name": |
| 408 | "columns": |
| 409 | { |
| 410 | "expression": |
| 411 | "isExpression": |
| 412 | "asc": |
| 413 | "nulls": |
| 414 | } |
| 415 | ], |
| 416 | "isUnique": |
| 417 | "concurrently": |
| 418 | "method": |
| 419 | "with": |
| 420 | } |
| 421 | }, |
| 422 | "foreignKeys": |
| 423 | "compositePrimaryKeys": |
| 424 | "uniqueConstraints": |
| 425 | "organization_slug_unique": |
| 426 | "name": |
| 427 | "nullsNotDistinct": |
| 428 | "columns": |
| 429 | "slug" |
| 430 | ] |
| 431 | } |
| 432 | }, |
| 433 | "policies": |
| 434 | "checkConstraints": |
| 435 | "isRLSEnabled": |
| 436 | }, |
| 437 | "public.organization_role": |
| 438 | "name": |
| 439 | "schema": |
| 440 | "columns": |
| 441 | "id": |
| 442 | "name": |
| 443 | "type": |
| 444 | "primaryKey": |
| 445 | "notNull": |
| 446 | }, |
| 447 | "organization_id": |
| 448 | "name": |
| 449 | "type": |
| 450 | "primaryKey": |
| 451 | "notNull": |
| 452 | }, |
| 453 | "role": |
| 454 | "name": |
| 455 | "type": |
| 456 | "primaryKey": |
| 457 | "notNull": |
| 458 | }, |
| 459 | "permission": |
| 460 | "name": |
| 461 | "type": |
| 462 | "primaryKey": |
| 463 | "notNull": |
| 464 | }, |
| 465 | "created_at": |
| 466 | "name": |
| 467 | "type": |
| 468 | "primaryKey": |
| 469 | "notNull": |
| 470 | "default": |
| 471 | }, |
| 472 | "updated_at": |
| 473 | "name": |
| 474 | "type": |
| 475 | "primaryKey": |
| 476 | "notNull": |
| 477 | } |
| 478 | }, |
| 479 | "indexes": |
| 480 | "organizationRole_organizationId_idx": |
| 481 | "name": |
| 482 | "columns": |
| 483 | { |
| 484 | "expression": |
| 485 | "isExpression": |
| 486 | "asc": |
| 487 | "nulls": |
| 488 | } |
| 489 | ], |
| 490 | "isUnique": |
| 491 | "concurrently": |
| 492 | "method": |
| 493 | "with": |
| 494 | }, |
| 495 | "organizationRole_role_idx": |
| 496 | "name": |
| 497 | "columns": |
| 498 | { |
| 499 | "expression": |
| 500 | "isExpression": |
| 501 | "asc": |
| 502 | "nulls": |
| 503 | } |
| 504 | ], |
| 505 | "isUnique": |
| 506 | "concurrently": |
| 507 | "method": |
| 508 | "with": |
| 509 | } |
| 510 | }, |
| 511 | "foreignKeys": |
| 512 | "organization_role_organization_id_organization_id_fk": |
| 513 | "name": |
| 514 | "tableFrom": |
| 515 | "tableTo": |
| 516 | "columnsFrom": |
| 517 | "organization_id" |
| 518 | ], |
| 519 | "columnsTo": |
| 520 | "id" |
| 521 | ], |
| 522 | "onDelete": |
| 523 | "onUpdate": |
| 524 | } |
| 525 | }, |
| 526 | "compositePrimaryKeys": |
| 527 | "uniqueConstraints": |
| 528 | "policies": |
| 529 | "checkConstraints": |
| 530 | "isRLSEnabled": |
| 531 | }, |
| 532 | "public.session": |
| 533 | "name": |
| 534 | "schema": |
| 535 | "columns": |
| 536 | "id": |
| 537 | "name": |
| 538 | "type": |
| 539 | "primaryKey": |
| 540 | "notNull": |
| 541 | }, |
| 542 | "expires_at": |
| 543 | "name": |
| 544 | "type": |
| 545 | "primaryKey": |
| 546 | "notNull": |
| 547 | }, |
| 548 | "token": |
| 549 | "name": |
| 550 | "type": |
| 551 | "primaryKey": |
| 552 | "notNull": |
| 553 | }, |
| 554 | "created_at": |
| 555 | "name": |
| 556 | "type": |
| 557 | "primaryKey": |
| 558 | "notNull": |
| 559 | "default": |
| 560 | }, |
| 561 | "updated_at": |
| 562 | "name": |
| 563 | "type": |
| 564 | "primaryKey": |
| 565 | "notNull": |
| 566 | }, |
| 567 | "ip_address": |
| 568 | "name": |
| 569 | "type": |
| 570 | "primaryKey": |
| 571 | "notNull": |
| 572 | }, |
| 573 | "user_agent": |
| 574 | "name": |
| 575 | "type": |
| 576 | "primaryKey": |
| 577 | "notNull": |
| 578 | }, |
| 579 | "user_id": |
| 580 | "name": |
| 581 | "type": |
| 582 | "primaryKey": |
| 583 | "notNull": |
| 584 | }, |
| 585 | "active_organization_id": |
| 586 | "name": |
| 587 | "type": |
| 588 | "primaryKey": |
| 589 | "notNull": |
| 590 | }, |
| 591 | "active_team_id": |
| 592 | "name": |
| 593 | "type": |
| 594 | "primaryKey": |
| 595 | "notNull": |
| 596 | } |
| 597 | }, |
| 598 | "indexes": |
| 599 | "session_userId_idx": |
| 600 | "name": |
| 601 | "columns": |
| 602 | { |
| 603 | "expression": |
| 604 | "isExpression": |
| 605 | "asc": |
| 606 | "nulls": |
| 607 | } |
| 608 | ], |
| 609 | "isUnique": |
| 610 | "concurrently": |
| 611 | "method": |
| 612 | "with": |
| 613 | } |
| 614 | }, |
| 615 | "foreignKeys": |
| 616 | "session_user_id_user_id_fk": |
| 617 | "name": |
| 618 | "tableFrom": |
| 619 | "tableTo": |
| 620 | "columnsFrom": |
| 621 | "user_id" |
| 622 | ], |
| 623 | "columnsTo": |
| 624 | "id" |
| 625 | ], |
| 626 | "onDelete": |
| 627 | "onUpdate": |
| 628 | } |
| 629 | }, |
| 630 | "compositePrimaryKeys": |
| 631 | "uniqueConstraints": |
| 632 | "session_token_unique": |
| 633 | "name": |
| 634 | "nullsNotDistinct": |
| 635 | "columns": |
| 636 | "token" |
| 637 | ] |
| 638 | } |
| 639 | }, |
| 640 | "policies": |
| 641 | "checkConstraints": |
| 642 | "isRLSEnabled": |
| 643 | }, |
| 644 | "public.team": |
| 645 | "name": |
| 646 | "schema": |
| 647 | "columns": |
| 648 | "id": |
| 649 | "name": |
| 650 | "type": |
| 651 | "primaryKey": |
| 652 | "notNull": |
| 653 | }, |
| 654 | "name": |
| 655 | "name": |
| 656 | "type": |
| 657 | "primaryKey": |
| 658 | "notNull": |
| 659 | }, |
| 660 | "member_count": |
| 661 | "name": |
| 662 | "type": |
| 663 | "primaryKey": |
| 664 | "notNull": |
| 665 | "default": |
| 666 | }, |
| 667 | "organization_id": |
| 668 | "name": |
| 669 | "type": |
| 670 | "primaryKey": |
| 671 | "notNull": |
| 672 | }, |
| 673 | "created_at": |
| 674 | "name": |
| 675 | "type": |
| 676 | "primaryKey": |
| 677 | "notNull": |
| 678 | }, |
| 679 | "updated_at": |
| 680 | "name": |
| 681 | "type": |
| 682 | "primaryKey": |
| 683 | "notNull": |
| 684 | } |
| 685 | }, |
| 686 | "indexes": |
| 687 | "team_organizationId_idx": |
| 688 | "name": |
| 689 | "columns": |
| 690 | { |
| 691 | "expression": |
| 692 | "isExpression": |
| 693 | "asc": |
| 694 | "nulls": |
| 695 | } |
| 696 | ], |
| 697 | "isUnique": |
| 698 | "concurrently": |
| 699 | "method": |
| 700 | "with": |
| 701 | } |
| 702 | }, |
| 703 | "foreignKeys": |
| 704 | "team_organization_id_organization_id_fk": |
| 705 | "name": |
| 706 | "tableFrom": |
| 707 | "tableTo": |
| 708 | "columnsFrom": |
| 709 | "organization_id" |
| 710 | ], |
| 711 | "columnsTo": |
| 712 | "id" |
| 713 | ], |
| 714 | "onDelete": |
| 715 | "onUpdate": |
| 716 | } |
| 717 | }, |
| 718 | "compositePrimaryKeys": |
| 719 | "uniqueConstraints": |
| 720 | "policies": |
| 721 | "checkConstraints": |
| 722 | "isRLSEnabled": |
| 723 | }, |
| 724 | "public.team_member": |
| 725 | "name": |
| 726 | "schema": |
| 727 | "columns": |
| 728 | "id": |
| 729 | "name": |
| 730 | "type": |
| 731 | "primaryKey": |
| 732 | "notNull": |
| 733 | }, |
| 734 | "team_id": |
| 735 | "name": |
| 736 | "type": |
| 737 | "primaryKey": |
| 738 | "notNull": |
| 739 | }, |
| 740 | "user_id": |
| 741 | "name": |
| 742 | "type": |
| 743 | "primaryKey": |
| 744 | "notNull": |
| 745 | }, |
| 746 | "membership_key": |
| 747 | "name": |
| 748 | "type": |
| 749 | "primaryKey": |
| 750 | "notNull": |
| 751 | }, |
| 752 | "created_at": |
| 753 | "name": |
| 754 | "type": |
| 755 | "primaryKey": |
| 756 | "notNull": |
| 757 | } |
| 758 | }, |
| 759 | "indexes": |
| 760 | "teamMember_teamId_idx": |
| 761 | "name": |
| 762 | "columns": |
| 763 | { |
| 764 | "expression": |
| 765 | "isExpression": |
| 766 | "asc": |
| 767 | "nulls": |
| 768 | } |
| 769 | ], |
| 770 | "isUnique": |
| 771 | "concurrently": |
| 772 | "method": |
| 773 | "with": |
| 774 | }, |
| 775 | "teamMember_userId_idx": |
| 776 | "name": |
| 777 | "columns": |
| 778 | { |
| 779 | "expression": |
| 780 | "isExpression": |
| 781 | "asc": |
| 782 | "nulls": |
| 783 | } |
| 784 | ], |
| 785 | "isUnique": |
| 786 | "concurrently": |
| 787 | "method": |
| 788 | "with": |
| 789 | } |
| 790 | }, |
| 791 | "foreignKeys": |
| 792 | "team_member_team_id_team_id_fk": |
| 793 | "name": |
| 794 | "tableFrom": |
| 795 | "tableTo": |
| 796 | "columnsFrom": |
| 797 | "team_id" |
| 798 | ], |
| 799 | "columnsTo": |
| 800 | "id" |
| 801 | ], |
| 802 | "onDelete": |
| 803 | "onUpdate": |
| 804 | }, |
| 805 | "team_member_user_id_user_id_fk": |
| 806 | "name": |
| 807 | "tableFrom": |
| 808 | "tableTo": |
| 809 | "columnsFrom": |
| 810 | "user_id" |
| 811 | ], |
| 812 | "columnsTo": |
| 813 | "id" |
| 814 | ], |
| 815 | "onDelete": |
| 816 | "onUpdate": |
| 817 | } |
| 818 | }, |
| 819 | "compositePrimaryKeys": |
| 820 | "uniqueConstraints": |
| 821 | "team_member_membership_key_unique": |
| 822 | "name": |
| 823 | "nullsNotDistinct": |
| 824 | "columns": |
| 825 | "membership_key" |
| 826 | ] |
| 827 | } |
| 828 | }, |
| 829 | "policies": |
| 830 | "checkConstraints": |
| 831 | "isRLSEnabled": |
| 832 | }, |
| 833 | "public.user": |
| 834 | "name": |
| 835 | "schema": |
| 836 | "columns": |
| 837 | "id": |
| 838 | "name": |
| 839 | "type": |
| 840 | "primaryKey": |
| 841 | "notNull": |
| 842 | }, |
| 843 | "name": |
| 844 | "name": |
| 845 | "type": |
| 846 | "primaryKey": |
| 847 | "notNull": |
| 848 | }, |
| 849 | "email": |
| 850 | "name": |
| 851 | "type": |
| 852 | "primaryKey": |
| 853 | "notNull": |
| 854 | }, |
| 855 | "email_verified": |
| 856 | "name": |
| 857 | "type": |
| 858 | "primaryKey": |
| 859 | "notNull": |
| 860 | "default": |
| 861 | }, |
| 862 | "image": |
| 863 | "name": |
| 864 | "type": |
| 865 | "primaryKey": |
| 866 | "notNull": |
| 867 | }, |
| 868 | "created_at": |
| 869 | "name": |
| 870 | "type": |
| 871 | "primaryKey": |
| 872 | "notNull": |
| 873 | "default": |
| 874 | }, |
| 875 | "updated_at": |
| 876 | "name": |
| 877 | "type": |
| 878 | "primaryKey": |
| 879 | "notNull": |
| 880 | "default": |
| 881 | }, |
| 882 | "username": |
| 883 | "name": |
| 884 | "type": |
| 885 | "primaryKey": |
| 886 | "notNull": |
| 887 | }, |
| 888 | "display_username": |
| 889 | "name": |
| 890 | "type": |
| 891 | "primaryKey": |
| 892 | "notNull": |
| 893 | } |
| 894 | }, |
| 895 | "indexes": |
| 896 | "foreignKeys": |
| 897 | "compositePrimaryKeys": |
| 898 | "uniqueConstraints": |
| 899 | "user_email_unique": |
| 900 | "name": |
| 901 | "nullsNotDistinct": |
| 902 | "columns": |
| 903 | "email" |
| 904 | ] |
| 905 | }, |
| 906 | "user_username_unique": |
| 907 | "name": |
| 908 | "nullsNotDistinct": |
| 909 | "columns": |
| 910 | "username" |
| 911 | ] |
| 912 | } |
| 913 | }, |
| 914 | "policies": |
| 915 | "checkConstraints": |
| 916 | "isRLSEnabled": |
| 917 | }, |
| 918 | "public.verification": |
| 919 | "name": |
| 920 | "schema": |
| 921 | "columns": |
| 922 | "id": |
| 923 | "name": |
| 924 | "type": |
| 925 | "primaryKey": |
| 926 | "notNull": |
| 927 | }, |
| 928 | "identifier": |
| 929 | "name": |
| 930 | "type": |
| 931 | "primaryKey": |
| 932 | "notNull": |
| 933 | }, |
| 934 | "value": |
| 935 | "name": |
| 936 | "type": |
| 937 | "primaryKey": |
| 938 | "notNull": |
| 939 | }, |
| 940 | "expires_at": |
| 941 | "name": |
| 942 | "type": |
| 943 | "primaryKey": |
| 944 | "notNull": |
| 945 | }, |
| 946 | "created_at": |
| 947 | "name": |
| 948 | "type": |
| 949 | "primaryKey": |
| 950 | "notNull": |
| 951 | "default": |
| 952 | }, |
| 953 | "updated_at": |
| 954 | "name": |
| 955 | "type": |
| 956 | "primaryKey": |
| 957 | "notNull": |
| 958 | "default": |
| 959 | } |
| 960 | }, |
| 961 | "indexes": |
| 962 | "verification_identifier_idx": |
| 963 | "name": |
| 964 | "columns": |
| 965 | { |
| 966 | "expression": |
| 967 | "isExpression": |
| 968 | "asc": |
| 969 | "nulls": |
| 970 | } |
| 971 | ], |
| 972 | "isUnique": |
| 973 | "concurrently": |
| 974 | "method": |
| 975 | "with": |
| 976 | } |
| 977 | }, |
| 978 | "foreignKeys": |
| 979 | "compositePrimaryKeys": |
| 980 | "uniqueConstraints": |
| 981 | "policies": |
| 982 | "checkConstraints": |
| 983 | "isRLSEnabled": |
| 984 | }, |
| 985 | "public.repository": |
| 986 | "name": |
| 987 | "schema": |
| 988 | "columns": |
| 989 | "id": |
| 990 | "name": |
| 991 | "type": |
| 992 | "primaryKey": |
| 993 | "notNull": |
| 994 | }, |
| 995 | "name": |
| 996 | "name": |
| 997 | "type": |
| 998 | "primaryKey": |
| 999 | "notNull": |
| 1000 | }, |
| 1001 | "slug": |
| 1002 | "name": |
| 1003 | "type": |
| 1004 | "primaryKey": |
| 1005 | "notNull": |
| 1006 | }, |
| 1007 | "description": |
| 1008 | "name": |
| 1009 | "type": |
| 1010 | "primaryKey": |
| 1011 | "notNull": |
| 1012 | }, |
| 1013 | "organizationId": |
| 1014 | "name": |
| 1015 | "type": |
| 1016 | "primaryKey": |
| 1017 | "notNull": |
| 1018 | }, |
| 1019 | "ownerId": |
| 1020 | "name": |
| 1021 | "type": |
| 1022 | "primaryKey": |
| 1023 | "notNull": |
| 1024 | }, |
| 1025 | "visibility": |
| 1026 | "name": |
| 1027 | "type": |
| 1028 | "typeSchema": |
| 1029 | "primaryKey": |
| 1030 | "notNull": |
| 1031 | "default": |
| 1032 | }, |
| 1033 | "lastPushedAt": |
| 1034 | "name": |
| 1035 | "type": |
| 1036 | "primaryKey": |
| 1037 | "notNull": |
| 1038 | "default": |
| 1039 | }, |
| 1040 | "createdAt": |
| 1041 | "name": |
| 1042 | "type": |
| 1043 | "primaryKey": |
| 1044 | "notNull": |
| 1045 | "default": |
| 1046 | }, |
| 1047 | "updatedAt": |
| 1048 | "name": |
| 1049 | "type": |
| 1050 | "primaryKey": |
| 1051 | "notNull": |
| 1052 | "default": |
| 1053 | } |
| 1054 | }, |
| 1055 | "indexes": |
| 1056 | "repository_org_slug_idx": |
| 1057 | "name": |
| 1058 | "columns": |
| 1059 | { |
| 1060 | "expression": |
| 1061 | "isExpression": |
| 1062 | "asc": |
| 1063 | "nulls": |
| 1064 | }, |
| 1065 | { |
| 1066 | "expression": |
| 1067 | "isExpression": |
| 1068 | "asc": |
| 1069 | "nulls": |
| 1070 | } |
| 1071 | ], |
| 1072 | "isUnique": |
| 1073 | "where": |
| 1074 | "concurrently": |
| 1075 | "method": |
| 1076 | "with": |
| 1077 | }, |
| 1078 | "repository_owner_slug_idx": |
| 1079 | "name": |
| 1080 | "columns": |
| 1081 | { |
| 1082 | "expression": |
| 1083 | "isExpression": |
| 1084 | "asc": |
| 1085 | "nulls": |
| 1086 | }, |
| 1087 | { |
| 1088 | "expression": |
| 1089 | "isExpression": |
| 1090 | "asc": |
| 1091 | "nulls": |
| 1092 | } |
| 1093 | ], |
| 1094 | "isUnique": |
| 1095 | "where": |
| 1096 | "concurrently": |
| 1097 | "method": |
| 1098 | "with": |
| 1099 | } |
| 1100 | }, |
| 1101 | "foreignKeys": |
| 1102 | "repository_organizationId_organization_id_fk": |
| 1103 | "name": |
| 1104 | "tableFrom": |
| 1105 | "tableTo": |
| 1106 | "columnsFrom": |
| 1107 | "organizationId" |
| 1108 | ], |
| 1109 | "columnsTo": |
| 1110 | "id" |
| 1111 | ], |
| 1112 | "onDelete": |
| 1113 | "onUpdate": |
| 1114 | }, |
| 1115 | "repository_ownerId_user_id_fk": |
| 1116 | "name": |
| 1117 | "tableFrom": |
| 1118 | "tableTo": |
| 1119 | "columnsFrom": |
| 1120 | "ownerId" |
| 1121 | ], |
| 1122 | "columnsTo": |
| 1123 | "id" |
| 1124 | ], |
| 1125 | "onDelete": |
| 1126 | "onUpdate": |
| 1127 | } |
| 1128 | }, |
| 1129 | "compositePrimaryKeys": |
| 1130 | "uniqueConstraints": |
| 1131 | "repository_id_unique": |
| 1132 | "name": |
| 1133 | "nullsNotDistinct": |
| 1134 | "columns": |
| 1135 | "id" |
| 1136 | ] |
| 1137 | } |
| 1138 | }, |
| 1139 | "policies": |
| 1140 | "checkConstraints": |
| 1141 | "isRLSEnabled": |
| 1142 | } |
| 1143 | }, |
| 1144 | "enums": |
| 1145 | "public.repository_visibility": |
| 1146 | "name": |
| 1147 | "schema": |
| 1148 | "values": |
| 1149 | "public", |
| 1150 | "private" |
| 1151 | ] |
| 1152 | } |
| 1153 | }, |
| 1154 | "schemas": |
| 1155 | "sequences": |
| 1156 | "roles": |
| 1157 | "policies": |
| 1158 | "views": |
| 1159 | "_meta": |
| 1160 | "columns": |
| 1161 | "schemas": |
| 1162 | "tables": |
| 1163 | } |
| 1164 | } |
"
28cd82db-764c-4962-8a2d-f593821559c0
"
,
"
7
"
,
"
postgresql
"
,
{
{
"
account
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
account_id
"
,
"
text
"
,
false
,
true
{
"
provider_id
"
,
"
text
"
,
false
,
true
{
"
user_id
"
,
"
text
"
,
false
,
true
{
"
access_token
"
,
"
text
"
,
false
,
false
{
"
refresh_token
"
,
"
text
"
,
false
,
false
{
"
id_token
"
,
"
text
"
,
false
,
false
{
"
access_token_expires_at
"
,
"
timestamp
"
,
false
,
false
{
"
refresh_token_expires_at
"
,
"
timestamp
"
,
false
,
false
{
"
scope
"
,
"
text
"
,
false
,
false
{
"
issuer
"
,
"
text
"
,
false
,
false
{
"
password
"
,
"
text
"
,
false
,
false
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
updated_at
"
,
"
timestamp
"
,
false
,
true
{
{
"
account_userId_idx
"
,
[
"
user_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
account_user_id_user_id_fk
"
,
"
account
"
,
"
user
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{}
,
{}
,
{}
,
false
{
"
invitation
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
organization_id
"
,
"
text
"
,
false
,
true
{
"
email
"
,
"
text
"
,
false
,
true
{
"
role
"
,
"
text
"
,
false
,
false
{
"
team_id
"
,
"
text
"
,
false
,
false
{
"
status
"
,
"
text
"
,
false
,
true
,
"
'pending'
"
{
"
expires_at
"
,
"
timestamp
"
,
false
,
true
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
inviter_id
"
,
"
text
"
,
false
,
true
{
{
"
invitation_organizationId_idx
"
,
[
"
organization_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
"
invitation_email_idx
"
,
[
"
email
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
invitation_organization_id_organization_id_fk
"
,
"
invitation
"
,
"
organization
"
,
[
[
"
cascade
"
,
"
no action
"
{
"
invitation_inviter_id_user_id_fk
"
,
"
invitation
"
,
"
user
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{}
,
{}
,
{}
,
false
{
"
member
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
organization_id
"
,
"
text
"
,
false
,
true
{
"
user_id
"
,
"
text
"
,
false
,
true
{
"
role
"
,
"
text
"
,
false
,
true
,
"
'member'
"
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
{
{
"
member_organizationId_idx
"
,
[
"
organization_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
"
member_userId_idx
"
,
[
"
user_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
member_organization_id_organization_id_fk
"
,
"
member
"
,
"
organization
"
,
[
[
"
cascade
"
,
"
no action
"
{
"
member_user_id_user_id_fk
"
,
"
member
"
,
"
user
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{}
,
{}
,
{}
,
false
{
"
organization
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
name
"
,
"
text
"
,
false
,
true
{
"
slug
"
,
"
text
"
,
false
,
true
{
"
logo
"
,
"
text
"
,
false
,
false
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
{
"
metadata
"
,
"
text
"
,
false
,
false
{
{
"
organization_slug_uidx
"
,
[
"
slug
"
,
false
,
true
,
"
last
"
true
,
false
,
"
btree
"
,
{}
{}
,
{}
,
{
{
"
organization_slug_unique
"
,
false
,
[
{}
,
{}
,
false
{
"
organization_role
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
organization_id
"
,
"
text
"
,
false
,
true
{
"
role
"
,
"
text
"
,
false
,
true
{
"
permission
"
,
"
text
"
,
false
,
true
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
updated_at
"
,
"
timestamp
"
,
false
,
false
{
{
"
organizationRole_organizationId_idx
"
,
[
"
organization_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
"
organizationRole_role_idx
"
,
[
"
role
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
organization_role_organization_id_organization_id_fk
"
,
"
organization_role
"
,
"
organization
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{}
,
{}
,
{}
,
false
{
"
session
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
expires_at
"
,
"
timestamp
"
,
false
,
true
{
"
token
"
,
"
text
"
,
false
,
true
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
updated_at
"
,
"
timestamp
"
,
false
,
true
{
"
ip_address
"
,
"
text
"
,
false
,
false
{
"
user_agent
"
,
"
text
"
,
false
,
false
{
"
user_id
"
,
"
text
"
,
false
,
true
{
"
active_organization_id
"
,
"
text
"
,
false
,
false
{
"
active_team_id
"
,
"
text
"
,
false
,
false
{
{
"
session_userId_idx
"
,
[
"
user_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
session_user_id_user_id_fk
"
,
"
session
"
,
"
user
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{
{
"
session_token_unique
"
,
false
,
[
{}
,
{}
,
false
{
"
team
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
name
"
,
"
text
"
,
false
,
true
{
"
member_count
"
,
"
integer
"
,
false
,
true
,
0
{
"
organization_id
"
,
"
text
"
,
false
,
true
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
{
"
updated_at
"
,
"
timestamp
"
,
false
,
false
{
{
"
team_organizationId_idx
"
,
[
"
organization_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
team_organization_id_organization_id_fk
"
,
"
team
"
,
"
organization
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{}
,
{}
,
{}
,
false
{
"
team_member
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
team_id
"
,
"
text
"
,
false
,
true
{
"
user_id
"
,
"
text
"
,
false
,
true
{
"
membership_key
"
,
"
text
"
,
false
,
false
{
"
created_at
"
,
"
timestamp
"
,
false
,
false
{
{
"
teamMember_teamId_idx
"
,
[
"
team_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
"
teamMember_userId_idx
"
,
[
"
user_id
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{
{
"
team_member_team_id_team_id_fk
"
,
"
team_member
"
,
"
team
"
,
[
[
"
cascade
"
,
"
no action
"
{
"
team_member_user_id_user_id_fk
"
,
"
team_member
"
,
"
user
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{
{
"
team_member_membership_key_unique
"
,
false
,
[
{}
,
{}
,
false
{
"
user
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
name
"
,
"
text
"
,
false
,
true
{
"
email
"
,
"
text
"
,
false
,
true
{
"
email_verified
"
,
"
boolean
"
,
false
,
true
,
false
{
"
image
"
,
"
text
"
,
false
,
false
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
updated_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
username
"
,
"
text
"
,
false
,
false
{
"
display_username
"
,
"
text
"
,
false
,
false
{}
,
{}
,
{}
,
{
{
"
user_email_unique
"
,
false
,
[
{
"
user_username_unique
"
,
false
,
[
{}
,
{}
,
false
{
"
verification
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
identifier
"
,
"
text
"
,
false
,
true
{
"
value
"
,
"
text
"
,
false
,
true
{
"
expires_at
"
,
"
timestamp
"
,
false
,
true
{
"
created_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
updated_at
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
{
"
verification_identifier_idx
"
,
[
"
identifier
"
,
false
,
true
,
"
last
"
false
,
false
,
"
btree
"
,
{}
{}
,
{}
,
{}
,
{}
,
{}
,
false
{
"
repository
"
,
""
,
{
{
"
id
"
,
"
text
"
,
true
,
true
{
"
name
"
,
"
text
"
,
false
,
true
{
"
slug
"
,
"
text
"
,
false
,
true
{
"
description
"
,
"
text
"
,
false
,
false
{
"
organizationId
"
,
"
text
"
,
false
,
false
{
"
ownerId
"
,
"
text
"
,
false
,
true
{
"
visibility
"
,
"
repository_visibility
"
,
"
public
"
,
false
,
true
,
"
'private'
"
{
"
lastPushedAt
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
createdAt
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
"
updatedAt
"
,
"
timestamp
"
,
false
,
true
,
"
now()
"
{
{
"
repository_org_slug_idx
"
,
[
"
organizationId
"
,
false
,
true
,
"
last
"
"
slug
"
,
false
,
true
,
"
last
"
true
,
"
\"
repository
\"
.
\"
organizationId
\"
is not null
"
,
false
,
"
btree
"
,
{}
{
"
repository_owner_slug_idx
"
,
[
"
ownerId
"
,
false
,
true
,
"
last
"
"
slug
"
,
false
,
true
,
"
last
"
true
,
"
\"
repository
\"
.
\"
organizationId
\"
is null
"
,
false
,
"
btree
"
,
{}
{
{
"
repository_organizationId_organization_id_fk
"
,
"
repository
"
,
"
organization
"
,
[
[
"
cascade
"
,
"
no action
"
{
"
repository_ownerId_user_id_fk
"
,
"
repository
"
,
"
user
"
,
[
[
"
cascade
"
,
"
no action
"
{}
,
{
{
"
repository_id_unique
"
,
false
,
[
{}
,
{}
,
false
{
{
"
repository_visibility
"
,
"
public
"
,
[
{}
,
{}
,
{}
,
{}
,
{}
,
{
{}
,
{}
,
{}