From 806f6e7e616c2eb3b9c8ad3162ae3ffbf9e21408 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 11 May 2024 00:39:45 +0200 Subject: [PATCH] Add database file status, health and md5 --- migrations/000002_create_files_table.up.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/000002_create_files_table.up.sql b/migrations/000002_create_files_table.up.sql index e012f1b..75c61f2 100644 --- a/migrations/000002_create_files_table.up.sql +++ b/migrations/000002_create_files_table.up.sql @@ -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 ); \ No newline at end of file