feat: add diesel setup to project

This commit is contained in:
Jef Roosens 2025-01-13 13:06:36 +01:00
parent faeebf8376
commit 18a321853a
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
14 changed files with 203 additions and 1 deletions

View file

@ -0,0 +1 @@
drop table events;

View 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
);