Add database file status, health and md5

This commit is contained in:
Samuel Lorch 2024-05-11 00:39:45 +02:00
parent 0c28cb284b
commit 806f6e7e61

View file

@ -2,7 +2,9 @@
CREATE TABLE IF NOT EXISTS files(
id bigserial PRIMARY KEY,
library_id bigint REFERENCES libraries(id) NOT NULL,
md5 uuid NOT NULL,
size bigint NOT NULL,
missing boolean NOT NULL,
status smallint NOT NULL,
health smallint NOT NULL,
path VARCHAR (500) NOT NULL
);