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-115415_create_comments/down.sql
Normal file
1
migrations/2025-01-13-115415_create_comments/down.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
drop table comments;
|
||||
5
migrations/2025-01-13-115415_create_comments/up.sql
Normal file
5
migrations/2025-01-13-115415_create_comments/up.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
create table comments (
|
||||
id integer primary key not null,
|
||||
plant_id integer references plants (id),
|
||||
comment text not null
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue