udemy-go-web-1/migrations/20240706140947_create_fkfor_room_restrictions_table.up.fizz

10 lines
271 B
Plaintext

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