calathea/migrations/2025-01-13-115505_create_ev.../up.sql

10 lines
232 B
SQL

create table events (
id bigint primary key not null,
plant_id bigint not null
references plants (id)
on delete cascade,
event_type text not null,
date date not null,
description text not null
);