create table film_screenings (
id serial primary key,
screening_time tstzrange, -- дата и время начала сеанса
recomended_price numeric, -- рекомендованная цена билета
constraint no_screening_time_overlap exclude using gist (
screening_time WITH && -- check for overlapping ranges
)
);