feat: add event database entities
This commit is contained in:
parent
1bc9ae01d8
commit
d7c5c85460
6 changed files with 107 additions and 2 deletions
9
src/migrations/003_events.sql
Normal file
9
src/migrations/003_events.sql
Normal 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
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue