searching for availability for all rooms

This commit is contained in:
2024-07-09 23:50:54 +02:00
parent 42a88034bf
commit b9f974cd1f
5 changed files with 47 additions and 4 deletions

View File

@ -0,0 +1,2 @@
change_column("room_restrictions", "reservation_id", "integer", {"null": false})

View File

@ -0,0 +1 @@
change_column("room_restrictions", "reservation_id", "integer", {"null": true})

View File

@ -107,7 +107,7 @@ CREATE TABLE public.room_restrictions (
start_date date NOT NULL,
end_date date NOT NULL,
room_id integer NOT NULL,
reservation_id integer NOT NULL,
reservation_id integer,
restriction_id integer NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL