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