udemy-go-web-1/migrations/20240706140417_create_fkfor_reservations_table.up.fizz

5 lines
123 B
Plaintext

add_foreign_key("reservations", "room_id", {"rooms": ["id"]}, {
"on_delete": "cascade",
"on_update": "cascade",
})