feat: add event database entities

This commit is contained in:
Jef Roosens 2025-01-07 19:07:23 +01:00
parent 1bc9ae01d8
commit d7c5c85460
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
6 changed files with 107 additions and 2 deletions

View file

@ -0,0 +1,9 @@
create table events (
id integer primary key,
plant_id integer not null
references plants (id)
on delete cascade,
event_type text not null,
time text not null,
description text not null
);