calathea/migrations/2025-01-13-115415_create_co.../up.sql

8 lines
176 B
SQL

create table comments (
id bigint primary key not null,
plant_id bigint not null
references plants (id)
on delete cascade,
comment text not null
);