create table
public."dt_Chat" (
id bigint generated by default as identity,
room_id bigint not null,
created_at timestamp without time zone not null default now(),
created_by uuid not null default auth.uid (),
message character varying not null,
constraint dt_Chat_pkey primary key (id),
constraint dt_Chat_created_by_fkey foreign key (created_by) references users (id),
constraint dt_Chat_room_id_fkey foreign key (room_id) references "dt_Rooms" (id) on delete cascade
) tablespace pg_default;