feat: rewrite user model using diesel
This commit is contained in:
parent
18a321853a
commit
77995ebec9
10 changed files with 97 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
|||
create table events (
|
||||
id integer primary key not null,
|
||||
plant_id integer not null
|
||||
id bigint primary key not null,
|
||||
plant_id bigint not null
|
||||
references plants (id)
|
||||
on delete cascade,
|
||||
event_type text not null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue