File
Blob: drizzle/d1/meta/0002_snapshot.json
| 1 | { |
| 2 | "version": "6", |
| 3 | "dialect": "sqlite", |
| 4 | "id": "9fc75f1a-4f89-4ca4-a2a0-ee09a6328e2d", |
| 5 | "prevId": "95ed13ba-bbb7-4160-8fff-90d8551bd966", |
| 6 | "tables": { |
| 7 | "project_index": { |
| 8 | "name": "project_index", |
| 9 | "columns": { |
| 10 | "id": { |
| 11 | "name": "id", |
| 12 | "type": "text", |
| 13 | "primaryKey": true, |
| 14 | "notNull": true, |
| 15 | "autoincrement": false |
| 16 | }, |
| 17 | "owner_user_id": { |
| 18 | "name": "owner_user_id", |
| 19 | "type": "text", |
| 20 | "primaryKey": false, |
| 21 | "notNull": true, |
| 22 | "autoincrement": false |
| 23 | }, |
| 24 | "owner_slug": { |
| 25 | "name": "owner_slug", |
| 26 | "type": "text", |
| 27 | "primaryKey": false, |
| 28 | "notNull": true, |
| 29 | "autoincrement": false |
| 30 | }, |
| 31 | "project_slug": { |
| 32 | "name": "project_slug", |
| 33 | "type": "text", |
| 34 | "primaryKey": false, |
| 35 | "notNull": true, |
| 36 | "autoincrement": false |
| 37 | }, |
| 38 | "name": { |
| 39 | "name": "name", |
| 40 | "type": "text", |
| 41 | "primaryKey": false, |
| 42 | "notNull": true, |
| 43 | "autoincrement": false |
| 44 | }, |
| 45 | "repo_url": { |
| 46 | "name": "repo_url", |
| 47 | "type": "text", |
| 48 | "primaryKey": false, |
| 49 | "notNull": true, |
| 50 | "autoincrement": false |
| 51 | }, |
| 52 | "default_branch": { |
| 53 | "name": "default_branch", |
| 54 | "type": "text", |
| 55 | "primaryKey": false, |
| 56 | "notNull": true, |
| 57 | "autoincrement": false |
| 58 | }, |
| 59 | "config_path": { |
| 60 | "name": "config_path", |
| 61 | "type": "text", |
| 62 | "primaryKey": false, |
| 63 | "notNull": true, |
| 64 | "autoincrement": false |
| 65 | }, |
| 66 | "created_at": { |
| 67 | "name": "created_at", |
| 68 | "type": "integer", |
| 69 | "primaryKey": false, |
| 70 | "notNull": true, |
| 71 | "autoincrement": false |
| 72 | }, |
| 73 | "updated_at": { |
| 74 | "name": "updated_at", |
| 75 | "type": "integer", |
| 76 | "primaryKey": false, |
| 77 | "notNull": true, |
| 78 | "autoincrement": false |
| 79 | } |
| 80 | }, |
| 81 | "indexes": { |
| 82 | "idx_project_index_owner_project_slug": { |
| 83 | "name": "idx_project_index_owner_project_slug", |
| 84 | "columns": [ |
| 85 | "owner_slug", |
| 86 | "project_slug" |
| 87 | ], |
| 88 | "isUnique": true |
| 89 | }, |
| 90 | "idx_project_index_owner_user_updated_at": { |
| 91 | "name": "idx_project_index_owner_user_updated_at", |
| 92 | "columns": [ |
| 93 | "owner_user_id", |
| 94 | "\"updated_at\" desc" |
| 95 | ], |
| 96 | "isUnique": false |
| 97 | }, |
| 98 | "idx_project_index_updated_at": { |
| 99 | "name": "idx_project_index_updated_at", |
| 100 | "columns": [ |
| 101 | "\"updated_at\" desc" |
| 102 | ], |
| 103 | "isUnique": false |
| 104 | } |
| 105 | }, |
| 106 | "foreignKeys": {}, |
| 107 | "compositePrimaryKeys": {}, |
| 108 | "uniqueConstraints": {}, |
| 109 | "checkConstraints": {} |
| 110 | }, |
| 111 | "run_index": { |
| 112 | "name": "run_index", |
| 113 | "columns": { |
| 114 | "id": { |
| 115 | "name": "id", |
| 116 | "type": "text", |
| 117 | "primaryKey": true, |
| 118 | "notNull": true, |
| 119 | "autoincrement": false |
| 120 | }, |
| 121 | "project_id": { |
| 122 | "name": "project_id", |
| 123 | "type": "text", |
| 124 | "primaryKey": false, |
| 125 | "notNull": true, |
| 126 | "autoincrement": false |
| 127 | }, |
| 128 | "triggered_by_user_id": { |
| 129 | "name": "triggered_by_user_id", |
| 130 | "type": "text", |
| 131 | "primaryKey": false, |
| 132 | "notNull": false, |
| 133 | "autoincrement": false |
| 134 | }, |
| 135 | "trigger_type": { |
| 136 | "name": "trigger_type", |
| 137 | "type": "text", |
| 138 | "primaryKey": false, |
| 139 | "notNull": true, |
| 140 | "autoincrement": false |
| 141 | }, |
| 142 | "branch": { |
| 143 | "name": "branch", |
| 144 | "type": "text", |
| 145 | "primaryKey": false, |
| 146 | "notNull": true, |
| 147 | "autoincrement": false |
| 148 | }, |
| 149 | "commit_sha": { |
| 150 | "name": "commit_sha", |
| 151 | "type": "text", |
| 152 | "primaryKey": false, |
| 153 | "notNull": false, |
| 154 | "autoincrement": false |
| 155 | }, |
| 156 | "status": { |
| 157 | "name": "status", |
| 158 | "type": "text", |
| 159 | "primaryKey": false, |
| 160 | "notNull": true, |
| 161 | "autoincrement": false |
| 162 | }, |
| 163 | "dispatch_mode": { |
| 164 | "name": "dispatch_mode", |
| 165 | "type": "text", |
| 166 | "primaryKey": false, |
| 167 | "notNull": true, |
| 168 | "autoincrement": false |
| 169 | }, |
| 170 | "execution_runtime": { |
| 171 | "name": "execution_runtime", |
| 172 | "type": "text", |
| 173 | "primaryKey": false, |
| 174 | "notNull": true, |
| 175 | "autoincrement": false |
| 176 | }, |
| 177 | "queued_at": { |
| 178 | "name": "queued_at", |
| 179 | "type": "integer", |
| 180 | "primaryKey": false, |
| 181 | "notNull": true, |
| 182 | "autoincrement": false |
| 183 | }, |
| 184 | "started_at": { |
| 185 | "name": "started_at", |
| 186 | "type": "integer", |
| 187 | "primaryKey": false, |
| 188 | "notNull": false, |
| 189 | "autoincrement": false |
| 190 | }, |
| 191 | "finished_at": { |
| 192 | "name": "finished_at", |
| 193 | "type": "integer", |
| 194 | "primaryKey": false, |
| 195 | "notNull": false, |
| 196 | "autoincrement": false |
| 197 | }, |
| 198 | "exit_code": { |
| 199 | "name": "exit_code", |
| 200 | "type": "integer", |
| 201 | "primaryKey": false, |
| 202 | "notNull": false, |
| 203 | "autoincrement": false |
| 204 | } |
| 205 | }, |
| 206 | "indexes": { |
| 207 | "idx_run_index_project_queued_at": { |
| 208 | "name": "idx_run_index_project_queued_at", |
| 209 | "columns": [ |
| 210 | "project_id", |
| 211 | "\"queued_at\" desc" |
| 212 | ], |
| 213 | "isUnique": false |
| 214 | }, |
| 215 | "idx_run_index_project_started_at": { |
| 216 | "name": "idx_run_index_project_started_at", |
| 217 | "columns": [ |
| 218 | "project_id", |
| 219 | "\"started_at\" desc" |
| 220 | ], |
| 221 | "isUnique": false |
| 222 | }, |
| 223 | "idx_run_index_user_queued_at": { |
| 224 | "name": "idx_run_index_user_queued_at", |
| 225 | "columns": [ |
| 226 | "triggered_by_user_id", |
| 227 | "\"queued_at\" desc" |
| 228 | ], |
| 229 | "isUnique": false |
| 230 | }, |
| 231 | "idx_run_index_status_queued_at": { |
| 232 | "name": "idx_run_index_status_queued_at", |
| 233 | "columns": [ |
| 234 | "status", |
| 235 | "\"queued_at\" desc" |
| 236 | ], |
| 237 | "isUnique": false |
| 238 | } |
| 239 | }, |
| 240 | "foreignKeys": {}, |
| 241 | "compositePrimaryKeys": {}, |
| 242 | "uniqueConstraints": {}, |
| 243 | "checkConstraints": {} |
| 244 | }, |
| 245 | "tessera_identities": { |
| 246 | "name": "tessera_identities", |
| 247 | "columns": { |
| 248 | "sub": { |
| 249 | "name": "sub", |
| 250 | "type": "text", |
| 251 | "primaryKey": true, |
| 252 | "notNull": true, |
| 253 | "autoincrement": false |
| 254 | }, |
| 255 | "user_id": { |
| 256 | "name": "user_id", |
| 257 | "type": "text", |
| 258 | "primaryKey": false, |
| 259 | "notNull": true, |
| 260 | "autoincrement": false |
| 261 | }, |
| 262 | "created_at": { |
| 263 | "name": "created_at", |
| 264 | "type": "integer", |
| 265 | "primaryKey": false, |
| 266 | "notNull": true, |
| 267 | "autoincrement": false |
| 268 | }, |
| 269 | "last_seen_at": { |
| 270 | "name": "last_seen_at", |
| 271 | "type": "integer", |
| 272 | "primaryKey": false, |
| 273 | "notNull": false, |
| 274 | "autoincrement": false |
| 275 | } |
| 276 | }, |
| 277 | "indexes": { |
| 278 | "idx_tessera_identities_user_id": { |
| 279 | "name": "idx_tessera_identities_user_id", |
| 280 | "columns": [ |
| 281 | "user_id" |
| 282 | ], |
| 283 | "isUnique": true |
| 284 | } |
| 285 | }, |
| 286 | "foreignKeys": { |
| 287 | "tessera_identities_user_id_users_id_fk": { |
| 288 | "name": "tessera_identities_user_id_users_id_fk", |
| 289 | "tableFrom": "tessera_identities", |
| 290 | "tableTo": "users", |
| 291 | "columnsFrom": [ |
| 292 | "user_id" |
| 293 | ], |
| 294 | "columnsTo": [ |
| 295 | "id" |
| 296 | ], |
| 297 | "onDelete": "cascade", |
| 298 | "onUpdate": "no action" |
| 299 | } |
| 300 | }, |
| 301 | "compositePrimaryKeys": {}, |
| 302 | "uniqueConstraints": {}, |
| 303 | "checkConstraints": {} |
| 304 | }, |
| 305 | "users": { |
| 306 | "name": "users", |
| 307 | "columns": { |
| 308 | "id": { |
| 309 | "name": "id", |
| 310 | "type": "text", |
| 311 | "primaryKey": true, |
| 312 | "notNull": true, |
| 313 | "autoincrement": false |
| 314 | }, |
| 315 | "slug": { |
| 316 | "name": "slug", |
| 317 | "type": "text", |
| 318 | "primaryKey": false, |
| 319 | "notNull": true, |
| 320 | "autoincrement": false |
| 321 | }, |
| 322 | "email": { |
| 323 | "name": "email", |
| 324 | "type": "text", |
| 325 | "primaryKey": false, |
| 326 | "notNull": true, |
| 327 | "autoincrement": false |
| 328 | }, |
| 329 | "display_name": { |
| 330 | "name": "display_name", |
| 331 | "type": "text", |
| 332 | "primaryKey": false, |
| 333 | "notNull": true, |
| 334 | "autoincrement": false |
| 335 | }, |
| 336 | "created_at": { |
| 337 | "name": "created_at", |
| 338 | "type": "integer", |
| 339 | "primaryKey": false, |
| 340 | "notNull": true, |
| 341 | "autoincrement": false |
| 342 | }, |
| 343 | "disabled_at": { |
| 344 | "name": "disabled_at", |
| 345 | "type": "integer", |
| 346 | "primaryKey": false, |
| 347 | "notNull": false, |
| 348 | "autoincrement": false |
| 349 | } |
| 350 | }, |
| 351 | "indexes": { |
| 352 | "idx_users_slug": { |
| 353 | "name": "idx_users_slug", |
| 354 | "columns": [ |
| 355 | "slug" |
| 356 | ], |
| 357 | "isUnique": true |
| 358 | }, |
| 359 | "idx_users_email": { |
| 360 | "name": "idx_users_email", |
| 361 | "columns": [ |
| 362 | "email" |
| 363 | ], |
| 364 | "isUnique": true |
| 365 | } |
| 366 | }, |
| 367 | "foreignKeys": {}, |
| 368 | "compositePrimaryKeys": {}, |
| 369 | "uniqueConstraints": {}, |
| 370 | "checkConstraints": {} |
| 371 | } |
| 372 | }, |
| 373 | "views": {}, |
| 374 | "enums": {}, |
| 375 | "_meta": { |
| 376 | "schemas": {}, |
| 377 | "tables": {}, |
| 378 | "columns": {} |
| 379 | }, |
| 380 | "internal": { |
| 381 | "indexes": { |
| 382 | "idx_project_index_owner_user_updated_at": { |
| 383 | "columns": { |
| 384 | "\"updated_at\" desc": { |
| 385 | "isExpression": true |
| 386 | } |
| 387 | } |
| 388 | }, |
| 389 | "idx_project_index_updated_at": { |
| 390 | "columns": { |
| 391 | "\"updated_at\" desc": { |
| 392 | "isExpression": true |
| 393 | } |
| 394 | } |
| 395 | }, |
| 396 | "idx_run_index_project_queued_at": { |
| 397 | "columns": { |
| 398 | "\"queued_at\" desc": { |
| 399 | "isExpression": true |
| 400 | } |
| 401 | } |
| 402 | }, |
| 403 | "idx_run_index_project_started_at": { |
| 404 | "columns": { |
| 405 | "\"started_at\" desc": { |
| 406 | "isExpression": true |
| 407 | } |
| 408 | } |
| 409 | }, |
| 410 | "idx_run_index_user_queued_at": { |
| 411 | "columns": { |
| 412 | "\"queued_at\" desc": { |
| 413 | "isExpression": true |
| 414 | } |
| 415 | } |
| 416 | }, |
| 417 | "idx_run_index_status_queued_at": { |
| 418 | "columns": { |
| 419 | "\"queued_at\" desc": { |
| 420 | "isExpression": true |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | } |
| 425 | } |
| 426 | } |