File
Blob: drizzle/d1/meta/0003_snapshot.json
| 1 | { |
| 2 | "version": "6", |
| 3 | "dialect": "sqlite", |
| 4 | "id": "a64ca9ff-5f43-4b60-9260-a7c3809857b6", |
| 5 | "prevId": "65b630c9-317e-4341-b41e-01e31e44d9d3", |
| 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": true, |
| 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": true, |
| 233 | "autoincrement": false |
| 234 | }, |
| 235 | "created_at": { |
| 236 | "name": "created_at", |
| 237 | "type": "integer", |
| 238 | "primaryKey": false, |
| 239 | "notNull": true, |
| 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 | "oauthAccessTokens_clientId_idx": { |
| 259 | "name": "oauthAccessTokens_clientId_idx", |
| 260 | "columns": [ |
| 261 | "client_id" |
| 262 | ], |
| 263 | "isUnique": false |
| 264 | }, |
| 265 | "oauthAccessTokens_sessionId_idx": { |
| 266 | "name": "oauthAccessTokens_sessionId_idx", |
| 267 | "columns": [ |
| 268 | "session_id" |
| 269 | ], |
| 270 | "isUnique": false |
| 271 | }, |
| 272 | "oauthAccessTokens_userId_idx": { |
| 273 | "name": "oauthAccessTokens_userId_idx", |
| 274 | "columns": [ |
| 275 | "user_id" |
| 276 | ], |
| 277 | "isUnique": false |
| 278 | }, |
| 279 | "oauthAccessTokens_refreshId_idx": { |
| 280 | "name": "oauthAccessTokens_refreshId_idx", |
| 281 | "columns": [ |
| 282 | "refresh_id" |
| 283 | ], |
| 284 | "isUnique": false |
| 285 | } |
| 286 | }, |
| 287 | "foreignKeys": { |
| 288 | "oauth_access_tokens_client_id_oauth_clients_client_id_fk": { |
| 289 | "name": "oauth_access_tokens_client_id_oauth_clients_client_id_fk", |
| 290 | "tableFrom": "oauth_access_tokens", |
| 291 | "tableTo": "oauth_clients", |
| 292 | "columnsFrom": [ |
| 293 | "client_id" |
| 294 | ], |
| 295 | "columnsTo": [ |
| 296 | "client_id" |
| 297 | ], |
| 298 | "onDelete": "cascade", |
| 299 | "onUpdate": "no action" |
| 300 | }, |
| 301 | "oauth_access_tokens_session_id_sessions_id_fk": { |
| 302 | "name": "oauth_access_tokens_session_id_sessions_id_fk", |
| 303 | "tableFrom": "oauth_access_tokens", |
| 304 | "tableTo": "sessions", |
| 305 | "columnsFrom": [ |
| 306 | "session_id" |
| 307 | ], |
| 308 | "columnsTo": [ |
| 309 | "id" |
| 310 | ], |
| 311 | "onDelete": "set null", |
| 312 | "onUpdate": "no action" |
| 313 | }, |
| 314 | "oauth_access_tokens_user_id_users_id_fk": { |
| 315 | "name": "oauth_access_tokens_user_id_users_id_fk", |
| 316 | "tableFrom": "oauth_access_tokens", |
| 317 | "tableTo": "users", |
| 318 | "columnsFrom": [ |
| 319 | "user_id" |
| 320 | ], |
| 321 | "columnsTo": [ |
| 322 | "id" |
| 323 | ], |
| 324 | "onDelete": "cascade", |
| 325 | "onUpdate": "no action" |
| 326 | }, |
| 327 | "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk": { |
| 328 | "name": "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk", |
| 329 | "tableFrom": "oauth_access_tokens", |
| 330 | "tableTo": "oauth_refresh_tokens", |
| 331 | "columnsFrom": [ |
| 332 | "refresh_id" |
| 333 | ], |
| 334 | "columnsTo": [ |
| 335 | "id" |
| 336 | ], |
| 337 | "onDelete": "cascade", |
| 338 | "onUpdate": "no action" |
| 339 | } |
| 340 | }, |
| 341 | "compositePrimaryKeys": {}, |
| 342 | "uniqueConstraints": {}, |
| 343 | "checkConstraints": {} |
| 344 | }, |
| 345 | "oauth_clients": { |
| 346 | "name": "oauth_clients", |
| 347 | "columns": { |
| 348 | "id": { |
| 349 | "name": "id", |
| 350 | "type": "text", |
| 351 | "primaryKey": true, |
| 352 | "notNull": true, |
| 353 | "autoincrement": false |
| 354 | }, |
| 355 | "client_id": { |
| 356 | "name": "client_id", |
| 357 | "type": "text", |
| 358 | "primaryKey": false, |
| 359 | "notNull": true, |
| 360 | "autoincrement": false |
| 361 | }, |
| 362 | "client_secret": { |
| 363 | "name": "client_secret", |
| 364 | "type": "text", |
| 365 | "primaryKey": false, |
| 366 | "notNull": false, |
| 367 | "autoincrement": false |
| 368 | }, |
| 369 | "disabled": { |
| 370 | "name": "disabled", |
| 371 | "type": "integer", |
| 372 | "primaryKey": false, |
| 373 | "notNull": false, |
| 374 | "autoincrement": false, |
| 375 | "default": false |
| 376 | }, |
| 377 | "skip_consent": { |
| 378 | "name": "skip_consent", |
| 379 | "type": "integer", |
| 380 | "primaryKey": false, |
| 381 | "notNull": false, |
| 382 | "autoincrement": false |
| 383 | }, |
| 384 | "enable_end_session": { |
| 385 | "name": "enable_end_session", |
| 386 | "type": "integer", |
| 387 | "primaryKey": false, |
| 388 | "notNull": false, |
| 389 | "autoincrement": false |
| 390 | }, |
| 391 | "subject_type": { |
| 392 | "name": "subject_type", |
| 393 | "type": "text", |
| 394 | "primaryKey": false, |
| 395 | "notNull": false, |
| 396 | "autoincrement": false |
| 397 | }, |
| 398 | "scopes": { |
| 399 | "name": "scopes", |
| 400 | "type": "text", |
| 401 | "primaryKey": false, |
| 402 | "notNull": false, |
| 403 | "autoincrement": false |
| 404 | }, |
| 405 | "user_id": { |
| 406 | "name": "user_id", |
| 407 | "type": "text", |
| 408 | "primaryKey": false, |
| 409 | "notNull": false, |
| 410 | "autoincrement": false |
| 411 | }, |
| 412 | "created_at": { |
| 413 | "name": "created_at", |
| 414 | "type": "integer", |
| 415 | "primaryKey": false, |
| 416 | "notNull": false, |
| 417 | "autoincrement": false |
| 418 | }, |
| 419 | "updated_at": { |
| 420 | "name": "updated_at", |
| 421 | "type": "integer", |
| 422 | "primaryKey": false, |
| 423 | "notNull": false, |
| 424 | "autoincrement": false |
| 425 | }, |
| 426 | "name": { |
| 427 | "name": "name", |
| 428 | "type": "text", |
| 429 | "primaryKey": false, |
| 430 | "notNull": false, |
| 431 | "autoincrement": false |
| 432 | }, |
| 433 | "uri": { |
| 434 | "name": "uri", |
| 435 | "type": "text", |
| 436 | "primaryKey": false, |
| 437 | "notNull": false, |
| 438 | "autoincrement": false |
| 439 | }, |
| 440 | "icon": { |
| 441 | "name": "icon", |
| 442 | "type": "text", |
| 443 | "primaryKey": false, |
| 444 | "notNull": false, |
| 445 | "autoincrement": false |
| 446 | }, |
| 447 | "contacts": { |
| 448 | "name": "contacts", |
| 449 | "type": "text", |
| 450 | "primaryKey": false, |
| 451 | "notNull": false, |
| 452 | "autoincrement": false |
| 453 | }, |
| 454 | "tos": { |
| 455 | "name": "tos", |
| 456 | "type": "text", |
| 457 | "primaryKey": false, |
| 458 | "notNull": false, |
| 459 | "autoincrement": false |
| 460 | }, |
| 461 | "policy": { |
| 462 | "name": "policy", |
| 463 | "type": "text", |
| 464 | "primaryKey": false, |
| 465 | "notNull": false, |
| 466 | "autoincrement": false |
| 467 | }, |
| 468 | "software_id": { |
| 469 | "name": "software_id", |
| 470 | "type": "text", |
| 471 | "primaryKey": false, |
| 472 | "notNull": false, |
| 473 | "autoincrement": false |
| 474 | }, |
| 475 | "software_version": { |
| 476 | "name": "software_version", |
| 477 | "type": "text", |
| 478 | "primaryKey": false, |
| 479 | "notNull": false, |
| 480 | "autoincrement": false |
| 481 | }, |
| 482 | "software_statement": { |
| 483 | "name": "software_statement", |
| 484 | "type": "text", |
| 485 | "primaryKey": false, |
| 486 | "notNull": false, |
| 487 | "autoincrement": false |
| 488 | }, |
| 489 | "redirect_uris": { |
| 490 | "name": "redirect_uris", |
| 491 | "type": "text", |
| 492 | "primaryKey": false, |
| 493 | "notNull": true, |
| 494 | "autoincrement": false |
| 495 | }, |
| 496 | "post_logout_redirect_uris": { |
| 497 | "name": "post_logout_redirect_uris", |
| 498 | "type": "text", |
| 499 | "primaryKey": false, |
| 500 | "notNull": false, |
| 501 | "autoincrement": false |
| 502 | }, |
| 503 | "token_endpoint_auth_method": { |
| 504 | "name": "token_endpoint_auth_method", |
| 505 | "type": "text", |
| 506 | "primaryKey": false, |
| 507 | "notNull": false, |
| 508 | "autoincrement": false |
| 509 | }, |
| 510 | "grant_types": { |
| 511 | "name": "grant_types", |
| 512 | "type": "text", |
| 513 | "primaryKey": false, |
| 514 | "notNull": false, |
| 515 | "autoincrement": false |
| 516 | }, |
| 517 | "response_types": { |
| 518 | "name": "response_types", |
| 519 | "type": "text", |
| 520 | "primaryKey": false, |
| 521 | "notNull": false, |
| 522 | "autoincrement": false |
| 523 | }, |
| 524 | "public": { |
| 525 | "name": "public", |
| 526 | "type": "integer", |
| 527 | "primaryKey": false, |
| 528 | "notNull": false, |
| 529 | "autoincrement": false |
| 530 | }, |
| 531 | "type": { |
| 532 | "name": "type", |
| 533 | "type": "text", |
| 534 | "primaryKey": false, |
| 535 | "notNull": false, |
| 536 | "autoincrement": false |
| 537 | }, |
| 538 | "require_pkce": { |
| 539 | "name": "require_pkce", |
| 540 | "type": "integer", |
| 541 | "primaryKey": false, |
| 542 | "notNull": false, |
| 543 | "autoincrement": false |
| 544 | }, |
| 545 | "reference_id": { |
| 546 | "name": "reference_id", |
| 547 | "type": "text", |
| 548 | "primaryKey": false, |
| 549 | "notNull": false, |
| 550 | "autoincrement": false |
| 551 | }, |
| 552 | "metadata": { |
| 553 | "name": "metadata", |
| 554 | "type": "text", |
| 555 | "primaryKey": false, |
| 556 | "notNull": false, |
| 557 | "autoincrement": false |
| 558 | } |
| 559 | }, |
| 560 | "indexes": { |
| 561 | "oauth_clients_client_id_unique": { |
| 562 | "name": "oauth_clients_client_id_unique", |
| 563 | "columns": [ |
| 564 | "client_id" |
| 565 | ], |
| 566 | "isUnique": true |
| 567 | }, |
| 568 | "oauthClients_userId_idx": { |
| 569 | "name": "oauthClients_userId_idx", |
| 570 | "columns": [ |
| 571 | "user_id" |
| 572 | ], |
| 573 | "isUnique": false |
| 574 | } |
| 575 | }, |
| 576 | "foreignKeys": { |
| 577 | "oauth_clients_user_id_users_id_fk": { |
| 578 | "name": "oauth_clients_user_id_users_id_fk", |
| 579 | "tableFrom": "oauth_clients", |
| 580 | "tableTo": "users", |
| 581 | "columnsFrom": [ |
| 582 | "user_id" |
| 583 | ], |
| 584 | "columnsTo": [ |
| 585 | "id" |
| 586 | ], |
| 587 | "onDelete": "cascade", |
| 588 | "onUpdate": "no action" |
| 589 | } |
| 590 | }, |
| 591 | "compositePrimaryKeys": {}, |
| 592 | "uniqueConstraints": {}, |
| 593 | "checkConstraints": {} |
| 594 | }, |
| 595 | "oauth_consents": { |
| 596 | "name": "oauth_consents", |
| 597 | "columns": { |
| 598 | "id": { |
| 599 | "name": "id", |
| 600 | "type": "text", |
| 601 | "primaryKey": true, |
| 602 | "notNull": true, |
| 603 | "autoincrement": false |
| 604 | }, |
| 605 | "client_id": { |
| 606 | "name": "client_id", |
| 607 | "type": "text", |
| 608 | "primaryKey": false, |
| 609 | "notNull": true, |
| 610 | "autoincrement": false |
| 611 | }, |
| 612 | "user_id": { |
| 613 | "name": "user_id", |
| 614 | "type": "text", |
| 615 | "primaryKey": false, |
| 616 | "notNull": false, |
| 617 | "autoincrement": false |
| 618 | }, |
| 619 | "reference_id": { |
| 620 | "name": "reference_id", |
| 621 | "type": "text", |
| 622 | "primaryKey": false, |
| 623 | "notNull": false, |
| 624 | "autoincrement": false |
| 625 | }, |
| 626 | "scopes": { |
| 627 | "name": "scopes", |
| 628 | "type": "text", |
| 629 | "primaryKey": false, |
| 630 | "notNull": true, |
| 631 | "autoincrement": false |
| 632 | }, |
| 633 | "created_at": { |
| 634 | "name": "created_at", |
| 635 | "type": "integer", |
| 636 | "primaryKey": false, |
| 637 | "notNull": true, |
| 638 | "autoincrement": false |
| 639 | }, |
| 640 | "updated_at": { |
| 641 | "name": "updated_at", |
| 642 | "type": "integer", |
| 643 | "primaryKey": false, |
| 644 | "notNull": true, |
| 645 | "autoincrement": false |
| 646 | } |
| 647 | }, |
| 648 | "indexes": { |
| 649 | "oauthConsents_clientId_idx": { |
| 650 | "name": "oauthConsents_clientId_idx", |
| 651 | "columns": [ |
| 652 | "client_id" |
| 653 | ], |
| 654 | "isUnique": false |
| 655 | }, |
| 656 | "oauthConsents_userId_idx": { |
| 657 | "name": "oauthConsents_userId_idx", |
| 658 | "columns": [ |
| 659 | "user_id" |
| 660 | ], |
| 661 | "isUnique": false |
| 662 | } |
| 663 | }, |
| 664 | "foreignKeys": { |
| 665 | "oauth_consents_client_id_oauth_clients_client_id_fk": { |
| 666 | "name": "oauth_consents_client_id_oauth_clients_client_id_fk", |
| 667 | "tableFrom": "oauth_consents", |
| 668 | "tableTo": "oauth_clients", |
| 669 | "columnsFrom": [ |
| 670 | "client_id" |
| 671 | ], |
| 672 | "columnsTo": [ |
| 673 | "client_id" |
| 674 | ], |
| 675 | "onDelete": "cascade", |
| 676 | "onUpdate": "no action" |
| 677 | }, |
| 678 | "oauth_consents_user_id_users_id_fk": { |
| 679 | "name": "oauth_consents_user_id_users_id_fk", |
| 680 | "tableFrom": "oauth_consents", |
| 681 | "tableTo": "users", |
| 682 | "columnsFrom": [ |
| 683 | "user_id" |
| 684 | ], |
| 685 | "columnsTo": [ |
| 686 | "id" |
| 687 | ], |
| 688 | "onDelete": "cascade", |
| 689 | "onUpdate": "no action" |
| 690 | } |
| 691 | }, |
| 692 | "compositePrimaryKeys": {}, |
| 693 | "uniqueConstraints": {}, |
| 694 | "checkConstraints": {} |
| 695 | }, |
| 696 | "oauth_refresh_tokens": { |
| 697 | "name": "oauth_refresh_tokens", |
| 698 | "columns": { |
| 699 | "id": { |
| 700 | "name": "id", |
| 701 | "type": "text", |
| 702 | "primaryKey": true, |
| 703 | "notNull": true, |
| 704 | "autoincrement": false |
| 705 | }, |
| 706 | "token": { |
| 707 | "name": "token", |
| 708 | "type": "text", |
| 709 | "primaryKey": false, |
| 710 | "notNull": true, |
| 711 | "autoincrement": false |
| 712 | }, |
| 713 | "client_id": { |
| 714 | "name": "client_id", |
| 715 | "type": "text", |
| 716 | "primaryKey": false, |
| 717 | "notNull": true, |
| 718 | "autoincrement": false |
| 719 | }, |
| 720 | "session_id": { |
| 721 | "name": "session_id", |
| 722 | "type": "text", |
| 723 | "primaryKey": false, |
| 724 | "notNull": false, |
| 725 | "autoincrement": false |
| 726 | }, |
| 727 | "user_id": { |
| 728 | "name": "user_id", |
| 729 | "type": "text", |
| 730 | "primaryKey": false, |
| 731 | "notNull": true, |
| 732 | "autoincrement": false |
| 733 | }, |
| 734 | "reference_id": { |
| 735 | "name": "reference_id", |
| 736 | "type": "text", |
| 737 | "primaryKey": false, |
| 738 | "notNull": false, |
| 739 | "autoincrement": false |
| 740 | }, |
| 741 | "expires_at": { |
| 742 | "name": "expires_at", |
| 743 | "type": "integer", |
| 744 | "primaryKey": false, |
| 745 | "notNull": true, |
| 746 | "autoincrement": false |
| 747 | }, |
| 748 | "created_at": { |
| 749 | "name": "created_at", |
| 750 | "type": "integer", |
| 751 | "primaryKey": false, |
| 752 | "notNull": true, |
| 753 | "autoincrement": false |
| 754 | }, |
| 755 | "revoked": { |
| 756 | "name": "revoked", |
| 757 | "type": "integer", |
| 758 | "primaryKey": false, |
| 759 | "notNull": false, |
| 760 | "autoincrement": false |
| 761 | }, |
| 762 | "auth_time": { |
| 763 | "name": "auth_time", |
| 764 | "type": "integer", |
| 765 | "primaryKey": false, |
| 766 | "notNull": false, |
| 767 | "autoincrement": false |
| 768 | }, |
| 769 | "scopes": { |
| 770 | "name": "scopes", |
| 771 | "type": "text", |
| 772 | "primaryKey": false, |
| 773 | "notNull": true, |
| 774 | "autoincrement": false |
| 775 | } |
| 776 | }, |
| 777 | "indexes": { |
| 778 | "oauth_refresh_tokens_token_unique": { |
| 779 | "name": "oauth_refresh_tokens_token_unique", |
| 780 | "columns": [ |
| 781 | "token" |
| 782 | ], |
| 783 | "isUnique": true |
| 784 | }, |
| 785 | "oauthRefreshTokens_clientId_idx": { |
| 786 | "name": "oauthRefreshTokens_clientId_idx", |
| 787 | "columns": [ |
| 788 | "client_id" |
| 789 | ], |
| 790 | "isUnique": false |
| 791 | }, |
| 792 | "oauthRefreshTokens_sessionId_idx": { |
| 793 | "name": "oauthRefreshTokens_sessionId_idx", |
| 794 | "columns": [ |
| 795 | "session_id" |
| 796 | ], |
| 797 | "isUnique": false |
| 798 | }, |
| 799 | "oauthRefreshTokens_userId_idx": { |
| 800 | "name": "oauthRefreshTokens_userId_idx", |
| 801 | "columns": [ |
| 802 | "user_id" |
| 803 | ], |
| 804 | "isUnique": false |
| 805 | } |
| 806 | }, |
| 807 | "foreignKeys": { |
| 808 | "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk": { |
| 809 | "name": "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk", |
| 810 | "tableFrom": "oauth_refresh_tokens", |
| 811 | "tableTo": "oauth_clients", |
| 812 | "columnsFrom": [ |
| 813 | "client_id" |
| 814 | ], |
| 815 | "columnsTo": [ |
| 816 | "client_id" |
| 817 | ], |
| 818 | "onDelete": "cascade", |
| 819 | "onUpdate": "no action" |
| 820 | }, |
| 821 | "oauth_refresh_tokens_session_id_sessions_id_fk": { |
| 822 | "name": "oauth_refresh_tokens_session_id_sessions_id_fk", |
| 823 | "tableFrom": "oauth_refresh_tokens", |
| 824 | "tableTo": "sessions", |
| 825 | "columnsFrom": [ |
| 826 | "session_id" |
| 827 | ], |
| 828 | "columnsTo": [ |
| 829 | "id" |
| 830 | ], |
| 831 | "onDelete": "set null", |
| 832 | "onUpdate": "no action" |
| 833 | }, |
| 834 | "oauth_refresh_tokens_user_id_users_id_fk": { |
| 835 | "name": "oauth_refresh_tokens_user_id_users_id_fk", |
| 836 | "tableFrom": "oauth_refresh_tokens", |
| 837 | "tableTo": "users", |
| 838 | "columnsFrom": [ |
| 839 | "user_id" |
| 840 | ], |
| 841 | "columnsTo": [ |
| 842 | "id" |
| 843 | ], |
| 844 | "onDelete": "cascade", |
| 845 | "onUpdate": "no action" |
| 846 | } |
| 847 | }, |
| 848 | "compositePrimaryKeys": {}, |
| 849 | "uniqueConstraints": {}, |
| 850 | "checkConstraints": {} |
| 851 | }, |
| 852 | "sessions": { |
| 853 | "name": "sessions", |
| 854 | "columns": { |
| 855 | "id": { |
| 856 | "name": "id", |
| 857 | "type": "text", |
| 858 | "primaryKey": true, |
| 859 | "notNull": true, |
| 860 | "autoincrement": false |
| 861 | }, |
| 862 | "expires_at": { |
| 863 | "name": "expires_at", |
| 864 | "type": "integer", |
| 865 | "primaryKey": false, |
| 866 | "notNull": true, |
| 867 | "autoincrement": false |
| 868 | }, |
| 869 | "token": { |
| 870 | "name": "token", |
| 871 | "type": "text", |
| 872 | "primaryKey": false, |
| 873 | "notNull": true, |
| 874 | "autoincrement": false |
| 875 | }, |
| 876 | "created_at": { |
| 877 | "name": "created_at", |
| 878 | "type": "integer", |
| 879 | "primaryKey": false, |
| 880 | "notNull": true, |
| 881 | "autoincrement": false, |
| 882 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 883 | }, |
| 884 | "updated_at": { |
| 885 | "name": "updated_at", |
| 886 | "type": "integer", |
| 887 | "primaryKey": false, |
| 888 | "notNull": true, |
| 889 | "autoincrement": false |
| 890 | }, |
| 891 | "ip_address": { |
| 892 | "name": "ip_address", |
| 893 | "type": "text", |
| 894 | "primaryKey": false, |
| 895 | "notNull": false, |
| 896 | "autoincrement": false |
| 897 | }, |
| 898 | "user_agent": { |
| 899 | "name": "user_agent", |
| 900 | "type": "text", |
| 901 | "primaryKey": false, |
| 902 | "notNull": false, |
| 903 | "autoincrement": false |
| 904 | }, |
| 905 | "user_id": { |
| 906 | "name": "user_id", |
| 907 | "type": "text", |
| 908 | "primaryKey": false, |
| 909 | "notNull": true, |
| 910 | "autoincrement": false |
| 911 | }, |
| 912 | "impersonated_by": { |
| 913 | "name": "impersonated_by", |
| 914 | "type": "text", |
| 915 | "primaryKey": false, |
| 916 | "notNull": false, |
| 917 | "autoincrement": false |
| 918 | } |
| 919 | }, |
| 920 | "indexes": { |
| 921 | "sessions_token_unique": { |
| 922 | "name": "sessions_token_unique", |
| 923 | "columns": [ |
| 924 | "token" |
| 925 | ], |
| 926 | "isUnique": true |
| 927 | }, |
| 928 | "sessions_userId_idx": { |
| 929 | "name": "sessions_userId_idx", |
| 930 | "columns": [ |
| 931 | "user_id" |
| 932 | ], |
| 933 | "isUnique": false |
| 934 | } |
| 935 | }, |
| 936 | "foreignKeys": { |
| 937 | "sessions_user_id_users_id_fk": { |
| 938 | "name": "sessions_user_id_users_id_fk", |
| 939 | "tableFrom": "sessions", |
| 940 | "tableTo": "users", |
| 941 | "columnsFrom": [ |
| 942 | "user_id" |
| 943 | ], |
| 944 | "columnsTo": [ |
| 945 | "id" |
| 946 | ], |
| 947 | "onDelete": "cascade", |
| 948 | "onUpdate": "no action" |
| 949 | } |
| 950 | }, |
| 951 | "compositePrimaryKeys": {}, |
| 952 | "uniqueConstraints": {}, |
| 953 | "checkConstraints": {} |
| 954 | }, |
| 955 | "users": { |
| 956 | "name": "users", |
| 957 | "columns": { |
| 958 | "id": { |
| 959 | "name": "id", |
| 960 | "type": "text", |
| 961 | "primaryKey": true, |
| 962 | "notNull": true, |
| 963 | "autoincrement": false |
| 964 | }, |
| 965 | "name": { |
| 966 | "name": "name", |
| 967 | "type": "text", |
| 968 | "primaryKey": false, |
| 969 | "notNull": true, |
| 970 | "autoincrement": false |
| 971 | }, |
| 972 | "email": { |
| 973 | "name": "email", |
| 974 | "type": "text", |
| 975 | "primaryKey": false, |
| 976 | "notNull": true, |
| 977 | "autoincrement": false |
| 978 | }, |
| 979 | "email_verified": { |
| 980 | "name": "email_verified", |
| 981 | "type": "integer", |
| 982 | "primaryKey": false, |
| 983 | "notNull": true, |
| 984 | "autoincrement": false, |
| 985 | "default": false |
| 986 | }, |
| 987 | "image": { |
| 988 | "name": "image", |
| 989 | "type": "text", |
| 990 | "primaryKey": false, |
| 991 | "notNull": false, |
| 992 | "autoincrement": false |
| 993 | }, |
| 994 | "created_at": { |
| 995 | "name": "created_at", |
| 996 | "type": "integer", |
| 997 | "primaryKey": false, |
| 998 | "notNull": true, |
| 999 | "autoincrement": false, |
| 1000 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1001 | }, |
| 1002 | "updated_at": { |
| 1003 | "name": "updated_at", |
| 1004 | "type": "integer", |
| 1005 | "primaryKey": false, |
| 1006 | "notNull": true, |
| 1007 | "autoincrement": false, |
| 1008 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1009 | }, |
| 1010 | "role": { |
| 1011 | "name": "role", |
| 1012 | "type": "text", |
| 1013 | "primaryKey": false, |
| 1014 | "notNull": false, |
| 1015 | "autoincrement": false |
| 1016 | }, |
| 1017 | "banned": { |
| 1018 | "name": "banned", |
| 1019 | "type": "integer", |
| 1020 | "primaryKey": false, |
| 1021 | "notNull": false, |
| 1022 | "autoincrement": false, |
| 1023 | "default": false |
| 1024 | }, |
| 1025 | "ban_reason": { |
| 1026 | "name": "ban_reason", |
| 1027 | "type": "text", |
| 1028 | "primaryKey": false, |
| 1029 | "notNull": false, |
| 1030 | "autoincrement": false |
| 1031 | }, |
| 1032 | "ban_expires": { |
| 1033 | "name": "ban_expires", |
| 1034 | "type": "integer", |
| 1035 | "primaryKey": false, |
| 1036 | "notNull": false, |
| 1037 | "autoincrement": false |
| 1038 | }, |
| 1039 | "preferred_username": { |
| 1040 | "name": "preferred_username", |
| 1041 | "type": "text", |
| 1042 | "primaryKey": false, |
| 1043 | "notNull": false, |
| 1044 | "autoincrement": false |
| 1045 | } |
| 1046 | }, |
| 1047 | "indexes": { |
| 1048 | "users_email_unique": { |
| 1049 | "name": "users_email_unique", |
| 1050 | "columns": [ |
| 1051 | "email" |
| 1052 | ], |
| 1053 | "isUnique": true |
| 1054 | } |
| 1055 | }, |
| 1056 | "foreignKeys": {}, |
| 1057 | "compositePrimaryKeys": {}, |
| 1058 | "uniqueConstraints": {}, |
| 1059 | "checkConstraints": {} |
| 1060 | }, |
| 1061 | "verifications": { |
| 1062 | "name": "verifications", |
| 1063 | "columns": { |
| 1064 | "id": { |
| 1065 | "name": "id", |
| 1066 | "type": "text", |
| 1067 | "primaryKey": true, |
| 1068 | "notNull": true, |
| 1069 | "autoincrement": false |
| 1070 | }, |
| 1071 | "identifier": { |
| 1072 | "name": "identifier", |
| 1073 | "type": "text", |
| 1074 | "primaryKey": false, |
| 1075 | "notNull": true, |
| 1076 | "autoincrement": false |
| 1077 | }, |
| 1078 | "value": { |
| 1079 | "name": "value", |
| 1080 | "type": "text", |
| 1081 | "primaryKey": false, |
| 1082 | "notNull": true, |
| 1083 | "autoincrement": false |
| 1084 | }, |
| 1085 | "expires_at": { |
| 1086 | "name": "expires_at", |
| 1087 | "type": "integer", |
| 1088 | "primaryKey": false, |
| 1089 | "notNull": true, |
| 1090 | "autoincrement": false |
| 1091 | }, |
| 1092 | "created_at": { |
| 1093 | "name": "created_at", |
| 1094 | "type": "integer", |
| 1095 | "primaryKey": false, |
| 1096 | "notNull": true, |
| 1097 | "autoincrement": false, |
| 1098 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1099 | }, |
| 1100 | "updated_at": { |
| 1101 | "name": "updated_at", |
| 1102 | "type": "integer", |
| 1103 | "primaryKey": false, |
| 1104 | "notNull": true, |
| 1105 | "autoincrement": false, |
| 1106 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1107 | } |
| 1108 | }, |
| 1109 | "indexes": { |
| 1110 | "verifications_identifier_idx": { |
| 1111 | "name": "verifications_identifier_idx", |
| 1112 | "columns": [ |
| 1113 | "identifier" |
| 1114 | ], |
| 1115 | "isUnique": false |
| 1116 | } |
| 1117 | }, |
| 1118 | "foreignKeys": {}, |
| 1119 | "compositePrimaryKeys": {}, |
| 1120 | "uniqueConstraints": {}, |
| 1121 | "checkConstraints": {} |
| 1122 | }, |
| 1123 | "invites": { |
| 1124 | "name": "invites", |
| 1125 | "columns": { |
| 1126 | "id": { |
| 1127 | "name": "id", |
| 1128 | "type": "text", |
| 1129 | "primaryKey": true, |
| 1130 | "notNull": true, |
| 1131 | "autoincrement": false |
| 1132 | }, |
| 1133 | "token_hash": { |
| 1134 | "name": "token_hash", |
| 1135 | "type": "text", |
| 1136 | "primaryKey": false, |
| 1137 | "notNull": true, |
| 1138 | "autoincrement": false |
| 1139 | }, |
| 1140 | "email": { |
| 1141 | "name": "email", |
| 1142 | "type": "text", |
| 1143 | "primaryKey": false, |
| 1144 | "notNull": true, |
| 1145 | "autoincrement": false |
| 1146 | }, |
| 1147 | "created_by": { |
| 1148 | "name": "created_by", |
| 1149 | "type": "text", |
| 1150 | "primaryKey": false, |
| 1151 | "notNull": true, |
| 1152 | "autoincrement": false |
| 1153 | }, |
| 1154 | "created_at": { |
| 1155 | "name": "created_at", |
| 1156 | "type": "text", |
| 1157 | "primaryKey": false, |
| 1158 | "notNull": true, |
| 1159 | "autoincrement": false, |
| 1160 | "default": "(current_timestamp)" |
| 1161 | }, |
| 1162 | "expires_at": { |
| 1163 | "name": "expires_at", |
| 1164 | "type": "text", |
| 1165 | "primaryKey": false, |
| 1166 | "notNull": true, |
| 1167 | "autoincrement": false |
| 1168 | }, |
| 1169 | "consumed_at": { |
| 1170 | "name": "consumed_at", |
| 1171 | "type": "text", |
| 1172 | "primaryKey": false, |
| 1173 | "notNull": false, |
| 1174 | "autoincrement": false |
| 1175 | } |
| 1176 | }, |
| 1177 | "indexes": { |
| 1178 | "idx_invites_token_hash": { |
| 1179 | "name": "idx_invites_token_hash", |
| 1180 | "columns": [ |
| 1181 | "token_hash" |
| 1182 | ], |
| 1183 | "isUnique": true |
| 1184 | }, |
| 1185 | "idx_invites_email": { |
| 1186 | "name": "idx_invites_email", |
| 1187 | "columns": [ |
| 1188 | "email" |
| 1189 | ], |
| 1190 | "isUnique": true |
| 1191 | }, |
| 1192 | "idx_invites_created_by_created_at": { |
| 1193 | "name": "idx_invites_created_by_created_at", |
| 1194 | "columns": [ |
| 1195 | "created_by", |
| 1196 | "created_at" |
| 1197 | ], |
| 1198 | "isUnique": false |
| 1199 | }, |
| 1200 | "idx_invites_expires_at": { |
| 1201 | "name": "idx_invites_expires_at", |
| 1202 | "columns": [ |
| 1203 | "expires_at" |
| 1204 | ], |
| 1205 | "isUnique": false |
| 1206 | } |
| 1207 | }, |
| 1208 | "foreignKeys": {}, |
| 1209 | "compositePrimaryKeys": {}, |
| 1210 | "uniqueConstraints": {}, |
| 1211 | "checkConstraints": {} |
| 1212 | }, |
| 1213 | "launcher_apps": { |
| 1214 | "name": "launcher_apps", |
| 1215 | "columns": { |
| 1216 | "id": { |
| 1217 | "name": "id", |
| 1218 | "type": "text", |
| 1219 | "primaryKey": true, |
| 1220 | "notNull": true, |
| 1221 | "autoincrement": false |
| 1222 | }, |
| 1223 | "name": { |
| 1224 | "name": "name", |
| 1225 | "type": "text", |
| 1226 | "primaryKey": false, |
| 1227 | "notNull": true, |
| 1228 | "autoincrement": false |
| 1229 | }, |
| 1230 | "url": { |
| 1231 | "name": "url", |
| 1232 | "type": "text", |
| 1233 | "primaryKey": false, |
| 1234 | "notNull": true, |
| 1235 | "autoincrement": false |
| 1236 | }, |
| 1237 | "icon": { |
| 1238 | "name": "icon", |
| 1239 | "type": "text", |
| 1240 | "primaryKey": false, |
| 1241 | "notNull": false, |
| 1242 | "autoincrement": false |
| 1243 | }, |
| 1244 | "tint": { |
| 1245 | "name": "tint", |
| 1246 | "type": "text", |
| 1247 | "primaryKey": false, |
| 1248 | "notNull": false, |
| 1249 | "autoincrement": false |
| 1250 | }, |
| 1251 | "enabled": { |
| 1252 | "name": "enabled", |
| 1253 | "type": "integer", |
| 1254 | "primaryKey": false, |
| 1255 | "notNull": true, |
| 1256 | "autoincrement": false, |
| 1257 | "default": true |
| 1258 | }, |
| 1259 | "created_at": { |
| 1260 | "name": "created_at", |
| 1261 | "type": "integer", |
| 1262 | "primaryKey": false, |
| 1263 | "notNull": true, |
| 1264 | "autoincrement": false, |
| 1265 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1266 | }, |
| 1267 | "updated_at": { |
| 1268 | "name": "updated_at", |
| 1269 | "type": "integer", |
| 1270 | "primaryKey": false, |
| 1271 | "notNull": true, |
| 1272 | "autoincrement": false, |
| 1273 | "default": "(cast(unixepoch('subsecond') * 1000 as integer))" |
| 1274 | } |
| 1275 | }, |
| 1276 | "indexes": {}, |
| 1277 | "foreignKeys": {}, |
| 1278 | "compositePrimaryKeys": {}, |
| 1279 | "uniqueConstraints": {}, |
| 1280 | "checkConstraints": {} |
| 1281 | } |
| 1282 | }, |
| 1283 | "views": {}, |
| 1284 | "enums": {}, |
| 1285 | "_meta": { |
| 1286 | "schemas": {}, |
| 1287 | "tables": {}, |
| 1288 | "columns": {} |
| 1289 | }, |
| 1290 | "internal": { |
| 1291 | "indexes": {} |
| 1292 | } |
| 1293 | } |