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 text not null, description text not null );