File
Blob: drizzle/d1/meta/0000_snapshot.json
| 1 | { |
| 2 | "version": "6", |
| 3 | "dialect": "sqlite", |
| 4 | "id": "d4f89d76-5a52-4091-a049-2723db104b27", |
| 5 | "prevId": "00000000-0000-0000-0000-000000000000", |
| 6 | "tables": { |
| 7 | "accounts": { |
| 8 | "name": "accounts", |
| 9 | "columns": { |
| 10 | "id": { |
| 11 | "name": "id", |
| 12 | "type": "text", |
| 13 | "primaryKey": true, |
| 14 | "notNull": true, |
| 15 | "autoincrement": false |
| 16 | }, |
| 17 | "account_id": { |
| 18 | "name": "account_id", |
| 19 | "type": "text", |
| 20 | "primaryKey": false, |
| 21 | "notNull": true, |
| 22 | "autoincrement": false |
| 23 | }, |
| 24 | "provider_id": { |
| 25 | "name": "provider_id", |
| 26 | "type": "text", |
| 27 | "primaryKey": false, |
| 28 | "notNull": true, |
| 29 | "autoincrement": false |
| 30 | }, |
| 31 | "user_id": { |
| 32 | "name": "user_id", |
| 33 | "type": "text", |
| 34 | "primaryKey": false, |
| 35 | "notNull": true, |
| 36 | "autoincrement": false |
| 37 | }, |
| 38 | "access_token": { |
| 39 | "name": "access_token", |
| 40 | "type": "text", |
| 41 | "primaryKey": false, |
| 42 | "notNull": false, |
| 43 | "autoincrement": false |
| 44 | }, |
| 45 | "refresh_token": { |
| 46 | "name": "refresh_token", |
| 47 | "type": "text", |
| 48 | "primaryKey": false, |
| 49 | "notNull": false, |
| 50 | "autoincrement": false |
| 51 | }, |
| 52 | "id_token": { |
| 53 | "name": "id_token", |
| 54 | "type": "text", |
| 55 | "primaryKey": false, |
| 56 | "notNull": false, |
| 57 | "autoincrement": false |
| 58 | }, |
| 59 | "access_token_expires_at": { |
| 60 | "name": "access_token_expires_at", |
| 61 | "type": "integer", |
| 62 | "primaryKey": false, |
| 63 | "notNull": false, |
| 64 | "autoincrement": false |
| 65 | }, |
| 66 | "refresh_token_expires_at": { |
| 67 | "name": "refresh_token_expires_at", |
| 68 | "type": "integer", |
| 69 | "primaryKey": false, |
| 70 | "notNull": false, |
| 71 | "autoincrement": false |
| 72 | }, |
| 73 | "scope": { |
| 74 | "name": "scope", |
| 75 | "type": "text", |
| 76 | "primaryKey": false, |
| 77 | "notNull": false, |
| 78 | "autoincrement": false |
| 79 | }, |
| 80 | "password": { |
| 81 | "name": "password", |
| 82 | "type": "text", |
| 83 | "primaryKey": false, |
| 84 | "notNull": false, |
| 85 | "autoincrement": false |
| 86 | }, |
| 87 | "created_at": { |
| 88 | "name": "created_at", |
| 89 | "type": "integer", |
| 90 | "primaryKey": false, |
| 91 | "notNull": true, |
| 92 | "autoincrement": false, |
| 93 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 94 | }, |
| 95 | "updated_at": { |
| 96 | "name": "updated_at", |
| 97 | "type": "integer", |
| 98 | "primaryKey": false, |
| 99 | "notNull": true, |
| 100 | "autoincrement": false |
| 101 | } |
| 102 | }, |
| 103 | "indexes": { |
| 104 | "accounts_userId_idx": { |
| 105 | "name": "accounts_userId_idx", |
| 106 | "columns": [ |
| 107 | "user_id" |
| 108 | ], |
| 109 | "isUnique": false |
| 110 | } |
| 111 | }, |
| 112 | "foreignKeys": { |
| 113 | "accounts_user_id_users_id_fk": { |
| 114 | "name": "accounts_user_id_users_id_fk", |
| 115 | "tableFrom": "accounts", |
| 116 | "tableTo": "users", |
| 117 | "columnsFrom": [ |
| 118 | "user_id" |
| 119 | ], |
| 120 | "columnsTo": [ |
| 121 | "id" |
| 122 | ], |
| 123 | "onDelete": "cascade", |
| 124 | "onUpdate": "no action" |
| 125 | } |
| 126 | }, |
| 127 | "compositePrimaryKeys": {}, |
| 128 | "uniqueConstraints": {}, |
| 129 | "checkConstraints": {} |
| 130 | }, |
| 131 | "jwkss": { |
| 132 | "name": "jwkss", |
| 133 | "columns": { |
| 134 | "id": { |
| 135 | "name": "id", |
| 136 | "type": "text", |
| 137 | "primaryKey": true, |
| 138 | "notNull": true, |
| 139 | "autoincrement": false |
| 140 | }, |
| 141 | "public_key": { |
| 142 | "name": "public_key", |
| 143 | "type": "text", |
| 144 | "primaryKey": false, |
| 145 | "notNull": true, |
| 146 | "autoincrement": false |
| 147 | }, |
| 148 | "private_key": { |
| 149 | "name": "private_key", |
| 150 | "type": "text", |
| 151 | "primaryKey": false, |
| 152 | "notNull": true, |
| 153 | "autoincrement": false |
| 154 | }, |
| 155 | "created_at": { |
| 156 | "name": "created_at", |
| 157 | "type": "integer", |
| 158 | "primaryKey": false, |
| 159 | "notNull": true, |
| 160 | "autoincrement": false |
| 161 | }, |
| 162 | "expires_at": { |
| 163 | "name": "expires_at", |
| 164 | "type": "integer", |
| 165 | "primaryKey": false, |
| 166 | "notNull": false, |
| 167 | "autoincrement": false |
| 168 | } |
| 169 | }, |
| 170 | "indexes": {}, |
| 171 | "foreignKeys": {}, |
| 172 | "compositePrimaryKeys": {}, |
| 173 | "uniqueConstraints": {}, |
| 174 | "checkConstraints": {} |
| 175 | }, |
| 176 | "oauth_access_tokens": { |
| 177 | "name": "oauth_access_tokens", |
| 178 | "columns": { |
| 179 | "id": { |
| 180 | "name": "id", |
| 181 | "type": "text", |
| 182 | "primaryKey": true, |
| 183 | "notNull": true, |
| 184 | "autoincrement": false |
| 185 | }, |
| 186 | "token": { |
| 187 | "name": "token", |
| 188 | "type": "text", |
| 189 | "primaryKey": false, |
| 190 | "notNull": false, |
| 191 | "autoincrement": false |
| 192 | }, |
| 193 | "client_id": { |
| 194 | "name": "client_id", |
| 195 | "type": "text", |
| 196 | "primaryKey": false, |
| 197 | "notNull": true, |
| 198 | "autoincrement": false |
| 199 | }, |
| 200 | "session_id": { |
| 201 | "name": "session_id", |
| 202 | "type": "text", |
| 203 | "primaryKey": false, |
| 204 | "notNull": false, |
| 205 | "autoincrement": false |
| 206 | }, |
| 207 | "user_id": { |
| 208 | "name": "user_id", |
| 209 | "type": "text", |
| 210 | "primaryKey": false, |
| 211 | "notNull": false, |
| 212 | "autoincrement": false |
| 213 | }, |
| 214 | "reference_id": { |
| 215 | "name": "reference_id", |
| 216 | "type": "text", |
| 217 | "primaryKey": false, |
| 218 | "notNull": false, |
| 219 | "autoincrement": false |
| 220 | }, |
| 221 | "refresh_id": { |
| 222 | "name": "refresh_id", |
| 223 | "type": "text", |
| 224 | "primaryKey": false, |
| 225 | "notNull": false, |
| 226 | "autoincrement": false |
| 227 | }, |
| 228 | "expires_at": { |
| 229 | "name": "expires_at", |
| 230 | "type": "integer", |
| 231 | "primaryKey": false, |
| 232 | "notNull": false, |
| 233 | "autoincrement": false |
| 234 | }, |
| 235 | "created_at": { |
| 236 | "name": "created_at", |
| 237 | "type": "integer", |
| 238 | "primaryKey": false, |
| 239 | "notNull": false, |
| 240 | "autoincrement": false |
| 241 | }, |
| 242 | "scopes": { |
| 243 | "name": "scopes", |
| 244 | "type": "text", |
| 245 | "primaryKey": false, |
| 246 | "notNull": true, |
| 247 | "autoincrement": false |
| 248 | } |
| 249 | }, |
| 250 | "indexes": { |
| 251 | "oauth_access_tokens_token_unique": { |
| 252 | "name": "oauth_access_tokens_token_unique", |
| 253 | "columns": [ |
| 254 | "token" |
| 255 | ], |
| 256 | "isUnique": true |
| 257 | } |
| 258 | }, |
| 259 | "foreignKeys": { |
| 260 | "oauth_access_tokens_client_id_oauth_clients_client_id_fk": { |
| 261 | "name": "oauth_access_tokens_client_id_oauth_clients_client_id_fk", |
| 262 | "tableFrom": "oauth_access_tokens", |
| 263 | "tableTo": "oauth_clients", |
| 264 | "columnsFrom": [ |
| 265 | "client_id" |
| 266 | ], |
| 267 | "columnsTo": [ |
| 268 | "client_id" |
| 269 | ], |
| 270 | "onDelete": "cascade", |
| 271 | "onUpdate": "no action" |
| 272 | }, |
| 273 | "oauth_access_tokens_session_id_sessions_id_fk": { |
| 274 | "name": "oauth_access_tokens_session_id_sessions_id_fk", |
| 275 | "tableFrom": "oauth_access_tokens", |
| 276 | "tableTo": "sessions", |
| 277 | "columnsFrom": [ |
| 278 | "session_id" |
| 279 | ], |
| 280 | "columnsTo": [ |
| 281 | "id" |
| 282 | ], |
| 283 | "onDelete": "set null", |
| 284 | "onUpdate": "no action" |
| 285 | }, |
| 286 | "oauth_access_tokens_user_id_users_id_fk": { |
| 287 | "name": "oauth_access_tokens_user_id_users_id_fk", |
| 288 | "tableFrom": "oauth_access_tokens", |
| 289 | "tableTo": "users", |
| 290 | "columnsFrom": [ |
| 291 | "user_id" |
| 292 | ], |
| 293 | "columnsTo": [ |
| 294 | "id" |
| 295 | ], |
| 296 | "onDelete": "cascade", |
| 297 | "onUpdate": "no action" |
| 298 | }, |
| 299 | "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk": { |
| 300 | "name": "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk", |
| 301 | "tableFrom": "oauth_access_tokens", |
| 302 | "tableTo": "oauth_refresh_tokens", |
| 303 | "columnsFrom": [ |
| 304 | "refresh_id" |
| 305 | ], |
| 306 | "columnsTo": [ |
| 307 | "id" |
| 308 | ], |
| 309 | "onDelete": "cascade", |
| 310 | "onUpdate": "no action" |
| 311 | } |
| 312 | }, |
| 313 | "compositePrimaryKeys": {}, |
| 314 | "uniqueConstraints": {}, |
| 315 | "checkConstraints": {} |
| 316 | }, |
| 317 | "oauth_clients": { |
| 318 | "name": "oauth_clients", |
| 319 | "columns": { |
| 320 | "id": { |
| 321 | "name": "id", |
| 322 | "type": "text", |
| 323 | "primaryKey": true, |
| 324 | "notNull": true, |
| 325 | "autoincrement": false |
| 326 | }, |
| 327 | "client_id": { |
| 328 | "name": "client_id", |
| 329 | "type": "text", |
| 330 | "primaryKey": false, |
| 331 | "notNull": true, |
| 332 | "autoincrement": false |
| 333 | }, |
| 334 | "client_secret": { |
| 335 | "name": "client_secret", |
| 336 | "type": "text", |
| 337 | "primaryKey": false, |
| 338 | "notNull": false, |
| 339 | "autoincrement": false |
| 340 | }, |
| 341 | "disabled": { |
| 342 | "name": "disabled", |
| 343 | "type": "integer", |
| 344 | "primaryKey": false, |
| 345 | "notNull": false, |
| 346 | "autoincrement": false, |
| 347 | "default": false |
| 348 | }, |
| 349 | "skip_consent": { |
| 350 | "name": "skip_consent", |
| 351 | "type": "integer", |
| 352 | "primaryKey": false, |
| 353 | "notNull": false, |
| 354 | "autoincrement": false |
| 355 | }, |
| 356 | "enable_end_session": { |
| 357 | "name": "enable_end_session", |
| 358 | "type": "integer", |
| 359 | "primaryKey": false, |
| 360 | "notNull": false, |
| 361 | "autoincrement": false |
| 362 | }, |
| 363 | "subject_type": { |
| 364 | "name": "subject_type", |
| 365 | "type": "text", |
| 366 | "primaryKey": false, |
| 367 | "notNull": false, |
| 368 | "autoincrement": false |
| 369 | }, |
| 370 | "scopes": { |
| 371 | "name": "scopes", |
| 372 | "type": "text", |
| 373 | "primaryKey": false, |
| 374 | "notNull": false, |
| 375 | "autoincrement": false |
| 376 | }, |
| 377 | "user_id": { |
| 378 | "name": "user_id", |
| 379 | "type": "text", |
| 380 | "primaryKey": false, |
| 381 | "notNull": false, |
| 382 | "autoincrement": false |
| 383 | }, |
| 384 | "created_at": { |
| 385 | "name": "created_at", |
| 386 | "type": "integer", |
| 387 | "primaryKey": false, |
| 388 | "notNull": false, |
| 389 | "autoincrement": false |
| 390 | }, |
| 391 | "updated_at": { |
| 392 | "name": "updated_at", |
| 393 | "type": "integer", |
| 394 | "primaryKey": false, |
| 395 | "notNull": false, |
| 396 | "autoincrement": false |
| 397 | }, |
| 398 | "name": { |
| 399 | "name": "name", |
| 400 | "type": "text", |
| 401 | "primaryKey": false, |
| 402 | "notNull": false, |
| 403 | "autoincrement": false |
| 404 | }, |
| 405 | "uri": { |
| 406 | "name": "uri", |
| 407 | "type": "text", |
| 408 | "primaryKey": false, |
| 409 | "notNull": false, |
| 410 | "autoincrement": false |
| 411 | }, |
| 412 | "icon": { |
| 413 | "name": "icon", |
| 414 | "type": "text", |
| 415 | "primaryKey": false, |
| 416 | "notNull": false, |
| 417 | "autoincrement": false |
| 418 | }, |
| 419 | "contacts": { |
| 420 | "name": "contacts", |
| 421 | "type": "text", |
| 422 | "primaryKey": false, |
| 423 | "notNull": false, |
| 424 | "autoincrement": false |
| 425 | }, |
| 426 | "tos": { |
| 427 | "name": "tos", |
| 428 | "type": "text", |
| 429 | "primaryKey": false, |
| 430 | "notNull": false, |
| 431 | "autoincrement": false |
| 432 | }, |
| 433 | "policy": { |
| 434 | "name": "policy", |
| 435 | "type": "text", |
| 436 | "primaryKey": false, |
| 437 | "notNull": false, |
| 438 | "autoincrement": false |
| 439 | }, |
| 440 | "software_id": { |
| 441 | "name": "software_id", |
| 442 | "type": "text", |
| 443 | "primaryKey": false, |
| 444 | "notNull": false, |
| 445 | "autoincrement": false |
| 446 | }, |
| 447 | "software_version": { |
| 448 | "name": "software_version", |
| 449 | "type": "text", |
| 450 | "primaryKey": false, |
| 451 | "notNull": false, |
| 452 | "autoincrement": false |
| 453 | }, |
| 454 | "software_statement": { |
| 455 | "name": "software_statement", |
| 456 | "type": "text", |
| 457 | "primaryKey": false, |
| 458 | "notNull": false, |
| 459 | "autoincrement": false |
| 460 | }, |
| 461 | "redirect_uris": { |
| 462 | "name": "redirect_uris", |
| 463 | "type": "text", |
| 464 | "primaryKey": false, |
| 465 | "notNull": true, |
| 466 | "autoincrement": false |
| 467 | }, |
| 468 | "post_logout_redirect_uris": { |
| 469 | "name": "post_logout_redirect_uris", |
| 470 | "type": "text", |
| 471 | "primaryKey": false, |
| 472 | "notNull": false, |
| 473 | "autoincrement": false |
| 474 | }, |
| 475 | "token_endpoint_auth_method": { |
| 476 | "name": "token_endpoint_auth_method", |
| 477 | "type": "text", |
| 478 | "primaryKey": false, |
| 479 | "notNull": false, |
| 480 | "autoincrement": false |
| 481 | }, |
| 482 | "grant_types": { |
| 483 | "name": "grant_types", |
| 484 | "type": "text", |
| 485 | "primaryKey": false, |
| 486 | "notNull": false, |
| 487 | "autoincrement": false |
| 488 | }, |
| 489 | "response_types": { |
| 490 | "name": "response_types", |
| 491 | "type": "text", |
| 492 | "primaryKey": false, |
| 493 | "notNull": false, |
| 494 | "autoincrement": false |
| 495 | }, |
| 496 | "public": { |
| 497 | "name": "public", |
| 498 | "type": "integer", |
| 499 | "primaryKey": false, |
| 500 | "notNull": false, |
| 501 | "autoincrement": false |
| 502 | }, |
| 503 | "type": { |
| 504 | "name": "type", |
| 505 | "type": "text", |
| 506 | "primaryKey": false, |
| 507 | "notNull": false, |
| 508 | "autoincrement": false |
| 509 | }, |
| 510 | "require_pkce": { |
| 511 | "name": "require_pkce", |
| 512 | "type": "integer", |
| 513 | "primaryKey": false, |
| 514 | "notNull": false, |
| 515 | "autoincrement": false |
| 516 | }, |
| 517 | "reference_id": { |
| 518 | "name": "reference_id", |
| 519 | "type": "text", |
| 520 | "primaryKey": false, |
| 521 | "notNull": false, |
| 522 | "autoincrement": false |
| 523 | }, |
| 524 | "metadata": { |
| 525 | "name": "metadata", |
| 526 | "type": "text", |
| 527 | "primaryKey": false, |
| 528 | "notNull": false, |
| 529 | "autoincrement": false |
| 530 | } |
| 531 | }, |
| 532 | "indexes": { |
| 533 | "oauth_clients_client_id_unique": { |
| 534 | "name": "oauth_clients_client_id_unique", |
| 535 | "columns": [ |
| 536 | "client_id" |
| 537 | ], |
| 538 | "isUnique": true |
| 539 | } |
| 540 | }, |
| 541 | "foreignKeys": { |
| 542 | "oauth_clients_user_id_users_id_fk": { |
| 543 | "name": "oauth_clients_user_id_users_id_fk", |
| 544 | "tableFrom": "oauth_clients", |
| 545 | "tableTo": "users", |
| 546 | "columnsFrom": [ |
| 547 | "user_id" |
| 548 | ], |
| 549 | "columnsTo": [ |
| 550 | "id" |
| 551 | ], |
| 552 | "onDelete": "cascade", |
| 553 | "onUpdate": "no action" |
| 554 | } |
| 555 | }, |
| 556 | "compositePrimaryKeys": {}, |
| 557 | "uniqueConstraints": {}, |
| 558 | "checkConstraints": {} |
| 559 | }, |
| 560 | "oauth_consents": { |
| 561 | "name": "oauth_consents", |
| 562 | "columns": { |
| 563 | "id": { |
| 564 | "name": "id", |
| 565 | "type": "text", |
| 566 | "primaryKey": true, |
| 567 | "notNull": true, |
| 568 | "autoincrement": false |
| 569 | }, |
| 570 | "client_id": { |
| 571 | "name": "client_id", |
| 572 | "type": "text", |
| 573 | "primaryKey": false, |
| 574 | "notNull": true, |
| 575 | "autoincrement": false |
| 576 | }, |
| 577 | "user_id": { |
| 578 | "name": "user_id", |
| 579 | "type": "text", |
| 580 | "primaryKey": false, |
| 581 | "notNull": false, |
| 582 | "autoincrement": false |
| 583 | }, |
| 584 | "reference_id": { |
| 585 | "name": "reference_id", |
| 586 | "type": "text", |
| 587 | "primaryKey": false, |
| 588 | "notNull": false, |
| 589 | "autoincrement": false |
| 590 | }, |
| 591 | "scopes": { |
| 592 | "name": "scopes", |
| 593 | "type": "text", |
| 594 | "primaryKey": false, |
| 595 | "notNull": true, |
| 596 | "autoincrement": false |
| 597 | }, |
| 598 | "created_at": { |
| 599 | "name": "created_at", |
| 600 | "type": "integer", |
| 601 | "primaryKey": false, |
| 602 | "notNull": false, |
| 603 | "autoincrement": false |
| 604 | }, |
| 605 | "updated_at": { |
| 606 | "name": "updated_at", |
| 607 | "type": "integer", |
| 608 | "primaryKey": false, |
| 609 | "notNull": false, |
| 610 | "autoincrement": false |
| 611 | } |
| 612 | }, |
| 613 | "indexes": {}, |
| 614 | "foreignKeys": { |
| 615 | "oauth_consents_client_id_oauth_clients_client_id_fk": { |
| 616 | "name": "oauth_consents_client_id_oauth_clients_client_id_fk", |
| 617 | "tableFrom": "oauth_consents", |
| 618 | "tableTo": "oauth_clients", |
| 619 | "columnsFrom": [ |
| 620 | "client_id" |
| 621 | ], |
| 622 | "columnsTo": [ |
| 623 | "client_id" |
| 624 | ], |
| 625 | "onDelete": "cascade", |
| 626 | "onUpdate": "no action" |
| 627 | }, |
| 628 | "oauth_consents_user_id_users_id_fk": { |
| 629 | "name": "oauth_consents_user_id_users_id_fk", |
| 630 | "tableFrom": "oauth_consents", |
| 631 | "tableTo": "users", |
| 632 | "columnsFrom": [ |
| 633 | "user_id" |
| 634 | ], |
| 635 | "columnsTo": [ |
| 636 | "id" |
| 637 | ], |
| 638 | "onDelete": "cascade", |
| 639 | "onUpdate": "no action" |
| 640 | } |
| 641 | }, |
| 642 | "compositePrimaryKeys": {}, |
| 643 | "uniqueConstraints": {}, |
| 644 | "checkConstraints": {} |
| 645 | }, |
| 646 | "oauth_refresh_tokens": { |
| 647 | "name": "oauth_refresh_tokens", |
| 648 | "columns": { |
| 649 | "id": { |
| 650 | "name": "id", |
| 651 | "type": "text", |
| 652 | "primaryKey": true, |
| 653 | "notNull": true, |
| 654 | "autoincrement": false |
| 655 | }, |
| 656 | "token": { |
| 657 | "name": "token", |
| 658 | "type": "text", |
| 659 | "primaryKey": false, |
| 660 | "notNull": true, |
| 661 | "autoincrement": false |
| 662 | }, |
| 663 | "client_id": { |
| 664 | "name": "client_id", |
| 665 | "type": "text", |
| 666 | "primaryKey": false, |
| 667 | "notNull": true, |
| 668 | "autoincrement": false |
| 669 | }, |
| 670 | "session_id": { |
| 671 | "name": "session_id", |
| 672 | "type": "text", |
| 673 | "primaryKey": false, |
| 674 | "notNull": false, |
| 675 | "autoincrement": false |
| 676 | }, |
| 677 | "user_id": { |
| 678 | "name": "user_id", |
| 679 | "type": "text", |
| 680 | "primaryKey": false, |
| 681 | "notNull": true, |
| 682 | "autoincrement": false |
| 683 | }, |
| 684 | "reference_id": { |
| 685 | "name": "reference_id", |
| 686 | "type": "text", |
| 687 | "primaryKey": false, |
| 688 | "notNull": false, |
| 689 | "autoincrement": false |
| 690 | }, |
| 691 | "expires_at": { |
| 692 | "name": "expires_at", |
| 693 | "type": "integer", |
| 694 | "primaryKey": false, |
| 695 | "notNull": false, |
| 696 | "autoincrement": false |
| 697 | }, |
| 698 | "created_at": { |
| 699 | "name": "created_at", |
| 700 | "type": "integer", |
| 701 | "primaryKey": false, |
| 702 | "notNull": false, |
| 703 | "autoincrement": false |
| 704 | }, |
| 705 | "revoked": { |
| 706 | "name": "revoked", |
| 707 | "type": "integer", |
| 708 | "primaryKey": false, |
| 709 | "notNull": false, |
| 710 | "autoincrement": false |
| 711 | }, |
| 712 | "auth_time": { |
| 713 | "name": "auth_time", |
| 714 | "type": "integer", |
| 715 | "primaryKey": false, |
| 716 | "notNull": false, |
| 717 | "autoincrement": false |
| 718 | }, |
| 719 | "scopes": { |
| 720 | "name": "scopes", |
| 721 | "type": "text", |
| 722 | "primaryKey": false, |
| 723 | "notNull": true, |
| 724 | "autoincrement": false |
| 725 | } |
| 726 | }, |
| 727 | "indexes": {}, |
| 728 | "foreignKeys": { |
| 729 | "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk": { |
| 730 | "name": "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk", |
| 731 | "tableFrom": "oauth_refresh_tokens", |
| 732 | "tableTo": "oauth_clients", |
| 733 | "columnsFrom": [ |
| 734 | "client_id" |
| 735 | ], |
| 736 | "columnsTo": [ |
| 737 | "client_id" |
| 738 | ], |
| 739 | "onDelete": "cascade", |
| 740 | "onUpdate": "no action" |
| 741 | }, |
| 742 | "oauth_refresh_tokens_session_id_sessions_id_fk": { |
| 743 | "name": "oauth_refresh_tokens_session_id_sessions_id_fk", |
| 744 | "tableFrom": "oauth_refresh_tokens", |
| 745 | "tableTo": "sessions", |
| 746 | "columnsFrom": [ |
| 747 | "session_id" |
| 748 | ], |
| 749 | "columnsTo": [ |
| 750 | "id" |
| 751 | ], |
| 752 | "onDelete": "set null", |
| 753 | "onUpdate": "no action" |
| 754 | }, |
| 755 | "oauth_refresh_tokens_user_id_users_id_fk": { |
| 756 | "name": "oauth_refresh_tokens_user_id_users_id_fk", |
| 757 | "tableFrom": "oauth_refresh_tokens", |
| 758 | "tableTo": "users", |
| 759 | "columnsFrom": [ |
| 760 | "user_id" |
| 761 | ], |
| 762 | "columnsTo": [ |
| 763 | "id" |
| 764 | ], |
| 765 | "onDelete": "cascade", |
| 766 | "onUpdate": "no action" |
| 767 | } |
| 768 | }, |
| 769 | "compositePrimaryKeys": {}, |
| 770 | "uniqueConstraints": {}, |
| 771 | "checkConstraints": {} |
| 772 | }, |
| 773 | "sessions": { |
| 774 | "name": "sessions", |
| 775 | "columns": { |
| 776 | "id": { |
| 777 | "name": "id", |
| 778 | "type": "text", |
| 779 | "primaryKey": true, |
| 780 | "notNull": true, |
| 781 | "autoincrement": false |
| 782 | }, |
| 783 | "expires_at": { |
| 784 | "name": "expires_at", |
| 785 | "type": "integer", |
| 786 | "primaryKey": false, |
| 787 | "notNull": true, |
| 788 | "autoincrement": false |
| 789 | }, |
| 790 | "token": { |
| 791 | "name": "token", |
| 792 | "type": "text", |
| 793 | "primaryKey": false, |
| 794 | "notNull": true, |
| 795 | "autoincrement": false |
| 796 | }, |
| 797 | "created_at": { |
| 798 | "name": "created_at", |
| 799 | "type": "integer", |
| 800 | "primaryKey": false, |
| 801 | "notNull": true, |
| 802 | "autoincrement": false, |
| 803 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 804 | }, |
| 805 | "updated_at": { |
| 806 | "name": "updated_at", |
| 807 | "type": "integer", |
| 808 | "primaryKey": false, |
| 809 | "notNull": true, |
| 810 | "autoincrement": false |
| 811 | }, |
| 812 | "ip_address": { |
| 813 | "name": "ip_address", |
| 814 | "type": "text", |
| 815 | "primaryKey": false, |
| 816 | "notNull": false, |
| 817 | "autoincrement": false |
| 818 | }, |
| 819 | "user_agent": { |
| 820 | "name": "user_agent", |
| 821 | "type": "text", |
| 822 | "primaryKey": false, |
| 823 | "notNull": false, |
| 824 | "autoincrement": false |
| 825 | }, |
| 826 | "user_id": { |
| 827 | "name": "user_id", |
| 828 | "type": "text", |
| 829 | "primaryKey": false, |
| 830 | "notNull": true, |
| 831 | "autoincrement": false |
| 832 | }, |
| 833 | "impersonated_by": { |
| 834 | "name": "impersonated_by", |
| 835 | "type": "text", |
| 836 | "primaryKey": false, |
| 837 | "notNull": false, |
| 838 | "autoincrement": false |
| 839 | } |
| 840 | }, |
| 841 | "indexes": { |
| 842 | "sessions_token_unique": { |
| 843 | "name": "sessions_token_unique", |
| 844 | "columns": [ |
| 845 | "token" |
| 846 | ], |
| 847 | "isUnique": true |
| 848 | }, |
| 849 | "sessions_userId_idx": { |
| 850 | "name": "sessions_userId_idx", |
| 851 | "columns": [ |
| 852 | "user_id" |
| 853 | ], |
| 854 | "isUnique": false |
| 855 | } |
| 856 | }, |
| 857 | "foreignKeys": { |
| 858 | "sessions_user_id_users_id_fk": { |
| 859 | "name": "sessions_user_id_users_id_fk", |
| 860 | "tableFrom": "sessions", |
| 861 | "tableTo": "users", |
| 862 | "columnsFrom": [ |
| 863 | "user_id" |
| 864 | ], |
| 865 | "columnsTo": [ |
| 866 | "id" |
| 867 | ], |
| 868 | "onDelete": "cascade", |
| 869 | "onUpdate": "no action" |
| 870 | } |
| 871 | }, |
| 872 | "compositePrimaryKeys": {}, |
| 873 | "uniqueConstraints": {}, |
| 874 | "checkConstraints": {} |
| 875 | }, |
| 876 | "users": { |
| 877 | "name": "users", |
| 878 | "columns": { |
| 879 | "id": { |
| 880 | "name": "id", |
| 881 | "type": "text", |
| 882 | "primaryKey": true, |
| 883 | "notNull": true, |
| 884 | "autoincrement": false |
| 885 | }, |
| 886 | "name": { |
| 887 | "name": "name", |
| 888 | "type": "text", |
| 889 | "primaryKey": false, |
| 890 | "notNull": true, |
| 891 | "autoincrement": false |
| 892 | }, |
| 893 | "email": { |
| 894 | "name": "email", |
| 895 | "type": "text", |
| 896 | "primaryKey": false, |
| 897 | "notNull": true, |
| 898 | "autoincrement": false |
| 899 | }, |
| 900 | "email_verified": { |
| 901 | "name": "email_verified", |
| 902 | "type": "integer", |
| 903 | "primaryKey": false, |
| 904 | "notNull": true, |
| 905 | "autoincrement": false, |
| 906 | "default": false |
| 907 | }, |
| 908 | "image": { |
| 909 | "name": "image", |
| 910 | "type": "text", |
| 911 | "primaryKey": false, |
| 912 | "notNull": false, |
| 913 | "autoincrement": false |
| 914 | }, |
| 915 | "created_at": { |
| 916 | "name": "created_at", |
| 917 | "type": "integer", |
| 918 | "primaryKey": false, |
| 919 | "notNull": true, |
| 920 | "autoincrement": false, |
| 921 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 922 | }, |
| 923 | "updated_at": { |
| 924 | "name": "updated_at", |
| 925 | "type": "integer", |
| 926 | "primaryKey": false, |
| 927 | "notNull": true, |
| 928 | "autoincrement": false, |
| 929 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 930 | }, |
| 931 | "role": { |
| 932 | "name": "role", |
| 933 | "type": "text", |
| 934 | "primaryKey": false, |
| 935 | "notNull": false, |
| 936 | "autoincrement": false |
| 937 | }, |
| 938 | "banned": { |
| 939 | "name": "banned", |
| 940 | "type": "integer", |
| 941 | "primaryKey": false, |
| 942 | "notNull": false, |
| 943 | "autoincrement": false, |
| 944 | "default": false |
| 945 | }, |
| 946 | "ban_reason": { |
| 947 | "name": "ban_reason", |
| 948 | "type": "text", |
| 949 | "primaryKey": false, |
| 950 | "notNull": false, |
| 951 | "autoincrement": false |
| 952 | }, |
| 953 | "ban_expires": { |
| 954 | "name": "ban_expires", |
| 955 | "type": "integer", |
| 956 | "primaryKey": false, |
| 957 | "notNull": false, |
| 958 | "autoincrement": false |
| 959 | }, |
| 960 | "preferred_username": { |
| 961 | "name": "preferred_username", |
| 962 | "type": "text", |
| 963 | "primaryKey": false, |
| 964 | "notNull": false, |
| 965 | "autoincrement": false |
| 966 | } |
| 967 | }, |
| 968 | "indexes": { |
| 969 | "users_email_unique": { |
| 970 | "name": "users_email_unique", |
| 971 | "columns": [ |
| 972 | "email" |
| 973 | ], |
| 974 | "isUnique": true |
| 975 | } |
| 976 | }, |
| 977 | "foreignKeys": {}, |
| 978 | "compositePrimaryKeys": {}, |
| 979 | "uniqueConstraints": {}, |
| 980 | "checkConstraints": {} |
| 981 | }, |
| 982 | "verifications": { |
| 983 | "name": "verifications", |
| 984 | "columns": { |
| 985 | "id": { |
| 986 | "name": "id", |
| 987 | "type": "text", |
| 988 | "primaryKey": true, |
| 989 | "notNull": true, |
| 990 | "autoincrement": false |
| 991 | }, |
| 992 | "identifier": { |
| 993 | "name": "identifier", |
| 994 | "type": "text", |
| 995 | "primaryKey": false, |
| 996 | "notNull": true, |
| 997 | "autoincrement": false |
| 998 | }, |
| 999 | "value": { |
| 1000 | "name": "value", |
| 1001 | "type": "text", |
| 1002 | "primaryKey": false, |
| 1003 | "notNull": true, |
| 1004 | "autoincrement": false |
| 1005 | }, |
| 1006 | "expires_at": { |
| 1007 | "name": "expires_at", |
| 1008 | "type": "integer", |
| 1009 | "primaryKey": false, |
| 1010 | "notNull": true, |
| 1011 | "autoincrement": false |
| 1012 | }, |
| 1013 | "created_at": { |
| 1014 | "name": "created_at", |
| 1015 | "type": "integer", |
| 1016 | "primaryKey": false, |
| 1017 | "notNull": true, |
| 1018 | "autoincrement": false, |
| 1019 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1020 | }, |
| 1021 | "updated_at": { |
| 1022 | "name": "updated_at", |
| 1023 | "type": "integer", |
| 1024 | "primaryKey": false, |
| 1025 | "notNull": true, |
| 1026 | "autoincrement": false, |
| 1027 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1028 | } |
| 1029 | }, |
| 1030 | "indexes": { |
| 1031 | "verifications_identifier_idx": { |
| 1032 | "name": "verifications_identifier_idx", |
| 1033 | "columns": [ |
| 1034 | "identifier" |
| 1035 | ], |
| 1036 | "isUnique": false |
| 1037 | } |
| 1038 | }, |
| 1039 | "foreignKeys": {}, |
| 1040 | "compositePrimaryKeys": {}, |
| 1041 | "uniqueConstraints": {}, |
| 1042 | "checkConstraints": {} |
| 1043 | }, |
| 1044 | "invites": { |
| 1045 | "name": "invites", |
| 1046 | "columns": { |
| 1047 | "id": { |
| 1048 | "name": "id", |
| 1049 | "type": "text", |
| 1050 | "primaryKey": true, |
| 1051 | "notNull": true, |
| 1052 | "autoincrement": false |
| 1053 | }, |
| 1054 | "token_hash": { |
| 1055 | "name": "token_hash", |
| 1056 | "type": "text", |
| 1057 | "primaryKey": false, |
| 1058 | "notNull": true, |
| 1059 | "autoincrement": false |
| 1060 | }, |
| 1061 | "email": { |
| 1062 | "name": "email", |
| 1063 | "type": "text", |
| 1064 | "primaryKey": false, |
| 1065 | "notNull": true, |
| 1066 | "autoincrement": false |
| 1067 | }, |
| 1068 | "created_by": { |
| 1069 | "name": "created_by", |
| 1070 | "type": "text", |
| 1071 | "primaryKey": false, |
| 1072 | "notNull": true, |
| 1073 | "autoincrement": false |
| 1074 | }, |
| 1075 | "created_at": { |
| 1076 | "name": "created_at", |
| 1077 | "type": "text", |
| 1078 | "primaryKey": false, |
| 1079 | "notNull": true, |
| 1080 | "autoincrement": false, |
| 1081 | "default": "(current_timestamp)" |
| 1082 | }, |
| 1083 | "expires_at": { |
| 1084 | "name": "expires_at", |
| 1085 | "type": "text", |
| 1086 | "primaryKey": false, |
| 1087 | "notNull": true, |
| 1088 | "autoincrement": false |
| 1089 | }, |
| 1090 | "consumed_at": { |
| 1091 | "name": "consumed_at", |
| 1092 | "type": "text", |
| 1093 | "primaryKey": false, |
| 1094 | "notNull": false, |
| 1095 | "autoincrement": false |
| 1096 | } |
| 1097 | }, |
| 1098 | "indexes": { |
| 1099 | "idx_invites_token_hash": { |
| 1100 | "name": "idx_invites_token_hash", |
| 1101 | "columns": [ |
| 1102 | "token_hash" |
| 1103 | ], |
| 1104 | "isUnique": true |
| 1105 | }, |
| 1106 | "idx_invites_email": { |
| 1107 | "name": "idx_invites_email", |
| 1108 | "columns": [ |
| 1109 | "email" |
| 1110 | ], |
| 1111 | "isUnique": true |
| 1112 | }, |
| 1113 | "idx_invites_created_by_created_at": { |
| 1114 | "name": "idx_invites_created_by_created_at", |
| 1115 | "columns": [ |
| 1116 | "created_by", |
| 1117 | "created_at" |
| 1118 | ], |
| 1119 | "isUnique": false |
| 1120 | }, |
| 1121 | "idx_invites_expires_at": { |
| 1122 | "name": "idx_invites_expires_at", |
| 1123 | "columns": [ |
| 1124 | "expires_at" |
| 1125 | ], |
| 1126 | "isUnique": false |
| 1127 | } |
| 1128 | }, |
| 1129 | "foreignKeys": {}, |
| 1130 | "compositePrimaryKeys": {}, |
| 1131 | "uniqueConstraints": {}, |
| 1132 | "checkConstraints": {} |
| 1133 | } |
| 1134 | }, |
| 1135 | "views": {}, |
| 1136 | "enums": {}, |
| 1137 | "_meta": { |
| 1138 | "schemas": {}, |
| 1139 | "tables": {}, |
| 1140 | "columns": {} |
| 1141 | }, |
| 1142 | "internal": { |
| 1143 | "indexes": {} |
| 1144 | } |
| 1145 | } |