udemy-go-web-1/migrations/20240706144027_add_fkand_indices_to_reservation_table.up.fizz

10 lines
227 B
Plaintext
Raw Normal View History

add_foreign_key("room_restrictions", "reservation_id", {"reservations": ["id"]}, {
"on_delete": "cascade",
"on_update": "cascade",
})
add_index("reservations", "email", {})
add_index("reservations", "last_name", {})