Add logging, fix devenv up

This commit is contained in:
Alexander
2026-06-30 12:17:48 +02:00
parent ebf1c5b5e1
commit d1e1ac97c4
32 changed files with 1549 additions and 129 deletions
+8
View File
@@ -37,3 +37,11 @@ CREATE TABLE music_metadata_pictures (
data_length BIGINT NOT NULL,
PRIMARY KEY (inode, position)
);
-- Lazy byte cache for NetworkOrigin. Rows exist only for files the user has
-- actually read; reconcile invalidates a row when its hash changes.
CREATE TABLE cached_file_bytes (
inode BIGINT PRIMARY KEY REFERENCES items(inode) ON DELETE CASCADE,
data BYTEA NOT NULL,
fetched_at TIMESTAMPTZ NOT NULL DEFAULT now()
);