|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.2].define(version: 2025_10_26_030559) do |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2025_10_26_233429) do |
14 | 14 | create_schema "auth" |
15 | 15 | create_schema "extensions" |
16 | 16 | create_schema "graphql" |
|
343 | 343 | t.jsonb "metadata", default: {} |
344 | 344 | t.datetime "created_at", null: false |
345 | 345 | t.datetime "updated_at", null: false |
| 346 | + t.uuid "scrim_id" |
346 | 347 | t.index ["created_by_id"], name: "index_schedules_on_created_by_id" |
347 | 348 | t.index ["event_type"], name: "index_schedules_on_event_type" |
348 | 349 | t.index ["match_id"], name: "index_schedules_on_match_id" |
349 | 350 | t.index ["organization_id", "start_time", "event_type"], name: "index_schedules_on_org_time_type" |
350 | 351 | t.index ["organization_id", "start_time"], name: "idx_schedules_org_time" |
351 | 352 | t.index ["organization_id"], name: "index_schedules_on_organization_id" |
| 353 | + t.index ["scrim_id"], name: "index_schedules_on_scrim_id" |
352 | 354 | t.index ["start_time"], name: "index_schedules_on_start_time" |
353 | 355 | t.index ["status"], name: "index_schedules_on_status" |
354 | 356 | end |
|
535 | 537 | add_foreign_key "players", "organizations" |
536 | 538 | add_foreign_key "schedules", "matches" |
537 | 539 | add_foreign_key "schedules", "organizations" |
| 540 | + add_foreign_key "schedules", "scrims", on_delete: :cascade |
538 | 541 | add_foreign_key "schedules", "users", column: "created_by_id" |
539 | 542 | add_foreign_key "scouting_targets", "organizations" |
540 | 543 | add_foreign_key "scouting_targets", "users", column: "added_by_id" |
|
0 commit comments