feat: add image models

This commit is contained in:
Jef Roosens 2025-01-16 21:06:06 +01:00
parent 3568365c6f
commit c10b9baa95
Signed by: Jef Roosens
GPG key ID: 02D4C0997E74717B
7 changed files with 95 additions and 2 deletions

View file

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

View file

@ -0,0 +1,9 @@
create table images (
id integer primary key not null,
plant_id integer not null
references plants (id)
-- Keep entries in the database so the files can be removed later
on delete set null,
date_taken date not null,
note text
);