feat(backend): scope files to users with FK user_id, rename storage_path to storage_key for clarity

This commit is contained in:
2026-05-28 21:24:12 +03:00
parent 70f839698a
commit 2501f6ca67
5 changed files with 51 additions and 24 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE file_records ADD COLUMN user_id BIGINT NOT NULL REFERENCES users(id);

View File

@@ -0,0 +1 @@
ALTER TABLE file_records RENAME COLUMN storage_path TO storage_key;