feat: add diesel setup to project
This commit is contained in:
parent
faeebf8376
commit
18a321853a
14 changed files with 203 additions and 1 deletions
1
migrations/2025-01-13-115505_create_events/down.sql
Normal file
1
migrations/2025-01-13-115505_create_events/down.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
drop table events;
|
||||
9
migrations/2025-01-13-115505_create_events/up.sql
Normal file
9
migrations/2025-01-13-115505_create_events/up.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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 text not null,
|
||||
description text not null
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue