File
Blob: drizzle/d1/meta/0001_snapshot.json
| 1 | { |
| 2 | "version": "6", |
| 3 | "dialect": "sqlite", |
| 4 | "id": "95ed13ba-bbb7-4160-8fff-90d8551bd966", |
| 5 | "prevId": "c2072c95-a921-4fb7-bbd2-f22ac8860d6f", |
| 6 | "tables": { |
| 7 | "invites": { |
| 8 | "name": "invites", |
| 9 | "columns": { |
| 10 | "id": { |
| 11 | "name": "id", |
| 12 | "type": "text", |
| 13 | "primaryKey": true, |
| 14 | "notNull": true, |
| 15 | "autoincrement": false |
| 16 | }, |
| 17 | "created_by_user_id": { |
| 18 | "name": "created_by_user_id", |
| 19 | "type": "text", |
| 20 | "primaryKey": false, |
| 21 | "notNull": true, |
| 22 | "autoincrement": false |
| 23 | }, |
| 24 | "token_hash": { |
| 25 | "name": "token_hash", |
| 26 | "type": "blob", |
| 27 | "primaryKey": false, |
| 28 | "notNull": true, |
| 29 | "autoincrement": false |
| 30 | }, |
| 31 | "expires_at": { |
| 32 | "name": "expires_at", |
| 33 | "type": "integer", |
| 34 | "primaryKey": false, |
| 35 | "notNull": true, |
| 36 | "autoincrement": false |
| 37 | }, |
| 38 | "accepted_by_user_id": { |
| 39 | "name": "accepted_by_user_id", |
| 40 | "type": "text", |
| 41 | "primaryKey": false, |
| 42 | "notNull": false, |
| 43 | "autoincrement": false |
| 44 | }, |
| 45 | "accepted_at": { |
| 46 | "name": "accepted_at", |
| 47 | "type": "integer", |
| 48 | "primaryKey": false, |
| 49 | "notNull": false, |
| 50 | "autoincrement": false |
| 51 | }, |
| 52 | "created_at": { |
| 53 | "name": "created_at", |
| 54 | "type": "integer", |
| 55 | "primaryKey": false, |
| 56 | "notNull": true, |
| 57 | "autoincrement": false |
| 58 | } |
| 59 | }, |
| 60 | "indexes": { |
| 61 | "idx_invites_token_hash": { |
| 62 | "name": "idx_invites_token_hash", |
| 63 | "columns": [ |
| 64 | "token_hash" |
| 65 | ], |
| 66 | "isUnique": true |
| 67 | }, |
| 68 | "idx_invites_created_by_created_at": { |
| 69 | "name": "idx_invites_created_by_created_at", |
| 70 | "columns": [ |
| 71 | "created_by_user_id", |
| 72 | "\"created_at\" desc" |
| 73 | ], |
| 74 | "isUnique": false |
| 75 | }, |
| 76 | "idx_invites_expires_at": { |
| 77 | "name": "idx_invites_expires_at", |
| 78 | "columns": [ |
| 79 | "expires_at" |
| 80 | ], |
| 81 | "isUnique": false |
| 82 | } |
| 83 | }, |
| 84 | "foreignKeys": {}, |
| 85 | "compositePrimaryKeys": {}, |
| 86 | "uniqueConstraints": {}, |
| 87 | "checkConstraints": {} |
| 88 | }, |
| 89 | "password_credentials": { |
| 90 | "name": "password_credentials", |
| 91 | "columns": { |
| 92 | "user_id": { |
| 93 | "name": "user_id", |
| 94 | "type": "text", |
| 95 | "primaryKey": true, |
| 96 | "notNull": true, |
| 97 | "autoincrement": false |
| 98 | }, |
| 99 | "algorithm": { |
| 100 | "name": "algorithm", |
| 101 | "type": "text", |
| 102 | "primaryKey": false, |
| 103 | "notNull": true, |
| 104 | "autoincrement": false |
| 105 | }, |
| 106 | "digest": { |
| 107 | "name": "digest", |
| 108 | "type": "text", |
| 109 | "primaryKey": false, |
| 110 | "notNull": true, |
| 111 | "autoincrement": false |
| 112 | }, |
| 113 | "iterations": { |
| 114 | "name": "iterations", |
| 115 | "type": "integer", |
| 116 | "primaryKey": false, |
| 117 | "notNull": true, |
| 118 | "autoincrement": false |
| 119 | }, |
| 120 | "salt": { |
| 121 | "name": "salt", |
| 122 | "type": "blob", |
| 123 | "primaryKey": false, |
| 124 | "notNull": true, |
| 125 | "autoincrement": false |
| 126 | }, |
| 127 | "password_hash": { |
| 128 | "name": "password_hash", |
| 129 | "type": "blob", |
| 130 | "primaryKey": false, |
| 131 | "notNull": true, |
| 132 | "autoincrement": false |
| 133 | }, |
| 134 | "updated_at": { |
| 135 | "name": "updated_at", |
| 136 | "type": "integer", |
| 137 | "primaryKey": false, |
| 138 | "notNull": true, |
| 139 | "autoincrement": false |
| 140 | } |
| 141 | }, |
| 142 | "indexes": {}, |
| 143 | "foreignKeys": {}, |
| 144 | "compositePrimaryKeys": {}, |
| 145 | "uniqueConstraints": {}, |
| 146 | "checkConstraints": {} |
| 147 | }, |
| 148 | "project_index": { |
| 149 | "name": "project_index", |
| 150 | "columns": { |
| 151 | "id": { |
| 152 | "name": "id", |
| 153 | "type": "text", |
| 154 | "primaryKey": true, |
| 155 | "notNull": true, |
| 156 | "autoincrement": false |
| 157 | }, |
| 158 | "owner_user_id": { |
| 159 | "name": "owner_user_id", |
| 160 | "type": "text", |
| 161 | "primaryKey": false, |
| 162 | "notNull": true, |
| 163 | "autoincrement": false |
| 164 | }, |
| 165 | "owner_slug": { |
| 166 | "name": "owner_slug", |
| 167 | "type": "text", |
| 168 | "primaryKey": false, |
| 169 | "notNull": true, |
| 170 | "autoincrement": false |
| 171 | }, |
| 172 | "project_slug": { |
| 173 | "name": "project_slug", |
| 174 | "type": "text", |
| 175 | "primaryKey": false, |
| 176 | "notNull": true, |
| 177 | "autoincrement": false |
| 178 | }, |
| 179 | "name": { |
| 180 | "name": "name", |
| 181 | "type": "text", |
| 182 | "primaryKey": false, |
| 183 | "notNull": true, |
| 184 | "autoincrement": false |
| 185 | }, |
| 186 | "repo_url": { |
| 187 | "name": "repo_url", |
| 188 | "type": "text", |
| 189 | "primaryKey": false, |
| 190 | "notNull": true, |
| 191 | "autoincrement": false |
| 192 | }, |
| 193 | "default_branch": { |
| 194 | "name": "default_branch", |
| 195 | "type": "text", |
| 196 | "primaryKey": false, |
| 197 | "notNull": true, |
| 198 | "autoincrement": false |
| 199 | }, |
| 200 | "config_path": { |
| 201 | "name": "config_path", |
| 202 | "type": "text", |
| 203 | "primaryKey": false, |
| 204 | "notNull": true, |
| 205 | "autoincrement": false |
| 206 | }, |
| 207 | "created_at": { |
| 208 | "name": "created_at", |
| 209 | "type": "integer", |
| 210 | "primaryKey": false, |
| 211 | "notNull": true, |
| 212 | "autoincrement": false |
| 213 | }, |
| 214 | "updated_at": { |
| 215 | "name": "updated_at", |
| 216 | "type": "integer", |
| 217 | "primaryKey": false, |
| 218 | "notNull": true, |
| 219 | "autoincrement": false |
| 220 | } |
| 221 | }, |
| 222 | "indexes": { |
| 223 | "idx_project_index_owner_project_slug": { |
| 224 | "name": "idx_project_index_owner_project_slug", |
| 225 | "columns": [ |
| 226 | "owner_slug", |
| 227 | "project_slug" |
| 228 | ], |
| 229 | "isUnique": true |
| 230 | }, |
| 231 | "idx_project_index_owner_user_updated_at": { |
| 232 | "name": "idx_project_index_owner_user_updated_at", |
| 233 | "columns": [ |
| 234 | "owner_user_id", |
| 235 | "\"updated_at\" desc" |
| 236 | ], |
| 237 | "isUnique": false |
| 238 | }, |
| 239 | "idx_project_index_updated_at": { |
| 240 | "name": "idx_project_index_updated_at", |
| 241 | "columns": [ |
| 242 | "\"updated_at\" desc" |
| 243 | ], |
| 244 | "isUnique": false |
| 245 | } |
| 246 | }, |
| 247 | "foreignKeys": {}, |
| 248 | "compositePrimaryKeys": {}, |
| 249 | "uniqueConstraints": {}, |
| 250 | "checkConstraints": {} |
| 251 | }, |
| 252 | "run_index": { |
| 253 | "name": "run_index", |
| 254 | "columns": { |
| 255 | "id": { |
| 256 | "name": "id", |
| 257 | "type": "text", |
| 258 | "primaryKey": true, |
| 259 | "notNull": true, |
| 260 | "autoincrement": false |
| 261 | }, |
| 262 | "project_id": { |
| 263 | "name": "project_id", |
| 264 | "type": "text", |
| 265 | "primaryKey": false, |
| 266 | "notNull": true, |
| 267 | "autoincrement": false |
| 268 | }, |
| 269 | "triggered_by_user_id": { |
| 270 | "name": "triggered_by_user_id", |
| 271 | "type": "text", |
| 272 | "primaryKey": false, |
| 273 | "notNull": false, |
| 274 | "autoincrement": false |
| 275 | }, |
| 276 | "trigger_type": { |
| 277 | "name": "trigger_type", |
| 278 | "type": "text", |
| 279 | "primaryKey": false, |
| 280 | "notNull": true, |
| 281 | "autoincrement": false |
| 282 | }, |
| 283 | "branch": { |
| 284 | "name": "branch", |
| 285 | "type": "text", |
| 286 | "primaryKey": false, |
| 287 | "notNull": true, |
| 288 | "autoincrement": false |
| 289 | }, |
| 290 | "commit_sha": { |
| 291 | "name": "commit_sha", |
| 292 | "type": "text", |
| 293 | "primaryKey": false, |
| 294 | "notNull": false, |
| 295 | "autoincrement": false |
| 296 | }, |
| 297 | "status": { |
| 298 | "name": "status", |
| 299 | "type": "text", |
| 300 | "primaryKey": false, |
| 301 | "notNull": true, |
| 302 | "autoincrement": false |
| 303 | }, |
| 304 | "dispatch_mode": { |
| 305 | "name": "dispatch_mode", |
| 306 | "type": "text", |
| 307 | "primaryKey": false, |
| 308 | "notNull": true, |
| 309 | "autoincrement": false |
| 310 | }, |
| 311 | "execution_runtime": { |
| 312 | "name": "execution_runtime", |
| 313 | "type": "text", |
| 314 | "primaryKey": false, |
| 315 | "notNull": true, |
| 316 | "autoincrement": false |
| 317 | }, |
| 318 | "queued_at": { |
| 319 | "name": "queued_at", |
| 320 | "type": "integer", |
| 321 | "primaryKey": false, |
| 322 | "notNull": true, |
| 323 | "autoincrement": false |
| 324 | }, |
| 325 | "started_at": { |
| 326 | "name": "started_at", |
| 327 | "type": "integer", |
| 328 | "primaryKey": false, |
| 329 | "notNull": false, |
| 330 | "autoincrement": false |
| 331 | }, |
| 332 | "finished_at": { |
| 333 | "name": "finished_at", |
| 334 | "type": "integer", |
| 335 | "primaryKey": false, |
| 336 | "notNull": false, |
| 337 | "autoincrement": false |
| 338 | }, |
| 339 | "exit_code": { |
| 340 | "name": "exit_code", |
| 341 | "type": "integer", |
| 342 | "primaryKey": false, |
| 343 | "notNull": false, |
| 344 | "autoincrement": false |
| 345 | } |
| 346 | }, |
| 347 | "indexes": { |
| 348 | "idx_run_index_project_queued_at": { |
| 349 | "name": "idx_run_index_project_queued_at", |
| 350 | "columns": [ |
| 351 | "project_id", |
| 352 | "\"queued_at\" desc" |
| 353 | ], |
| 354 | "isUnique": false |
| 355 | }, |
| 356 | "idx_run_index_project_started_at": { |
| 357 | "name": "idx_run_index_project_started_at", |
| 358 | "columns": [ |
| 359 | "project_id", |
| 360 | "\"started_at\" desc" |
| 361 | ], |
| 362 | "isUnique": false |
| 363 | }, |
| 364 | "idx_run_index_user_queued_at": { |
| 365 | "name": "idx_run_index_user_queued_at", |
| 366 | "columns": [ |
| 367 | "triggered_by_user_id", |
| 368 | "\"queued_at\" desc" |
| 369 | ], |
| 370 | "isUnique": false |
| 371 | }, |
| 372 | "idx_run_index_status_queued_at": { |
| 373 | "name": "idx_run_index_status_queued_at", |
| 374 | "columns": [ |
| 375 | "status", |
| 376 | "\"queued_at\" desc" |
| 377 | ], |
| 378 | "isUnique": false |
| 379 | } |
| 380 | }, |
| 381 | "foreignKeys": {}, |
| 382 | "compositePrimaryKeys": {}, |
| 383 | "uniqueConstraints": {}, |
| 384 | "checkConstraints": {} |
| 385 | }, |
| 386 | "tessera_identities": { |
| 387 | "name": "tessera_identities", |
| 388 | "columns": { |
| 389 | "sub": { |
| 390 | "name": "sub", |
| 391 | "type": "text", |
| 392 | "primaryKey": true, |
| 393 | "notNull": true, |
| 394 | "autoincrement": false |
| 395 | }, |
| 396 | "user_id": { |
| 397 | "name": "user_id", |
| 398 | "type": "text", |
| 399 | "primaryKey": false, |
| 400 | "notNull": true, |
| 401 | "autoincrement": false |
| 402 | }, |
| 403 | "created_at": { |
| 404 | "name": "created_at", |
| 405 | "type": "integer", |
| 406 | "primaryKey": false, |
| 407 | "notNull": true, |
| 408 | "autoincrement": false |
| 409 | }, |
| 410 | "last_seen_at": { |
| 411 | "name": "last_seen_at", |
| 412 | "type": "integer", |
| 413 | "primaryKey": false, |
| 414 | "notNull": false, |
| 415 | "autoincrement": false |
| 416 | } |
| 417 | }, |
| 418 | "indexes": { |
| 419 | "idx_tessera_identities_user_id": { |
| 420 | "name": "idx_tessera_identities_user_id", |
| 421 | "columns": [ |
| 422 | "user_id" |
| 423 | ], |
| 424 | "isUnique": true |
| 425 | } |
| 426 | }, |
| 427 | "foreignKeys": { |
| 428 | "tessera_identities_user_id_users_id_fk": { |
| 429 | "name": "tessera_identities_user_id_users_id_fk", |
| 430 | "tableFrom": "tessera_identities", |
| 431 | "tableTo": "users", |
| 432 | "columnsFrom": [ |
| 433 | "user_id" |
| 434 | ], |
| 435 | "columnsTo": [ |
| 436 | "id" |
| 437 | ], |
| 438 | "onDelete": "cascade", |
| 439 | "onUpdate": "no action" |
| 440 | } |
| 441 | }, |
| 442 | "compositePrimaryKeys": {}, |
| 443 | "uniqueConstraints": {}, |
| 444 | "checkConstraints": {} |
| 445 | }, |
| 446 | "users": { |
| 447 | "name": "users", |
| 448 | "columns": { |
| 449 | "id": { |
| 450 | "name": "id", |
| 451 | "type": "text", |
| 452 | "primaryKey": true, |
| 453 | "notNull": true, |
| 454 | "autoincrement": false |
| 455 | }, |
| 456 | "slug": { |
| 457 | "name": "slug", |
| 458 | "type": "text", |
| 459 | "primaryKey": false, |
| 460 | "notNull": true, |
| 461 | "autoincrement": false |
| 462 | }, |
| 463 | "email": { |
| 464 | "name": "email", |
| 465 | "type": "text", |
| 466 | "primaryKey": false, |
| 467 | "notNull": true, |
| 468 | "autoincrement": false |
| 469 | }, |
| 470 | "display_name": { |
| 471 | "name": "display_name", |
| 472 | "type": "text", |
| 473 | "primaryKey": false, |
| 474 | "notNull": true, |
| 475 | "autoincrement": false |
| 476 | }, |
| 477 | "created_at": { |
| 478 | "name": "created_at", |
| 479 | "type": "integer", |
| 480 | "primaryKey": false, |
| 481 | "notNull": true, |
| 482 | "autoincrement": false |
| 483 | }, |
| 484 | "disabled_at": { |
| 485 | "name": "disabled_at", |
| 486 | "type": "integer", |
| 487 | "primaryKey": false, |
| 488 | "notNull": false, |
| 489 | "autoincrement": false |
| 490 | } |
| 491 | }, |
| 492 | "indexes": { |
| 493 | "idx_users_slug": { |
| 494 | "name": "idx_users_slug", |
| 495 | "columns": [ |
| 496 | "slug" |
| 497 | ], |
| 498 | "isUnique": true |
| 499 | }, |
| 500 | "idx_users_email": { |
| 501 | "name": "idx_users_email", |
| 502 | "columns": [ |
| 503 | "email" |
| 504 | ], |
| 505 | "isUnique": true |
| 506 | } |
| 507 | }, |
| 508 | "foreignKeys": {}, |
| 509 | "compositePrimaryKeys": {}, |
| 510 | "uniqueConstraints": {}, |
| 511 | "checkConstraints": {} |
| 512 | } |
| 513 | }, |
| 514 | "views": {}, |
| 515 | "enums": {}, |
| 516 | "_meta": { |
| 517 | "schemas": {}, |
| 518 | "tables": {}, |
| 519 | "columns": {} |
| 520 | }, |
| 521 | "internal": { |
| 522 | "indexes": { |
| 523 | "idx_invites_created_by_created_at": { |
| 524 | "columns": { |
| 525 | "\"created_at\" desc": { |
| 526 | "isExpression": true |
| 527 | } |
| 528 | } |
| 529 | }, |
| 530 | "idx_project_index_owner_user_updated_at": { |
| 531 | "columns": { |
| 532 | "\"updated_at\" desc": { |
| 533 | "isExpression": true |
| 534 | } |
| 535 | } |
| 536 | }, |
| 537 | "idx_project_index_updated_at": { |
| 538 | "columns": { |
| 539 | "\"updated_at\" desc": { |
| 540 | "isExpression": true |
| 541 | } |
| 542 | } |
| 543 | }, |
| 544 | "idx_run_index_project_queued_at": { |
| 545 | "columns": { |
| 546 | "\"queued_at\" desc": { |
| 547 | "isExpression": true |
| 548 | } |
| 549 | } |
| 550 | }, |
| 551 | "idx_run_index_project_started_at": { |
| 552 | "columns": { |
| 553 | "\"started_at\" desc": { |
| 554 | "isExpression": true |
| 555 | } |
| 556 | } |
| 557 | }, |
| 558 | "idx_run_index_user_queued_at": { |
| 559 | "columns": { |
| 560 | "\"queued_at\" desc": { |
| 561 | "isExpression": true |
| 562 | } |
| 563 | } |
| 564 | }, |
| 565 | "idx_run_index_status_queued_at": { |
| 566 | "columns": { |
| 567 | "\"queued_at\" desc": { |
| 568 | "isExpression": true |
| 569 | } |
| 570 | } |
| 571 | } |
| 572 | } |
| 573 | } |
| 574 | } |