repository attachment api

This commit is contained in:
efrilm
2025-10-15 21:58:44 +07:00
parent da2246d45a
commit 58128495a6
15 changed files with 606 additions and 64 deletions
@@ -0,0 +1,13 @@
BEGIN;
CREATE TABLE IF NOT EXISTS repository_attachments (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
file_url TEXT NOT NULL,
file_name TEXT NOT NULL,
file_type TEXT NOT NULL,
category TEXT NOT NULL,
uploaded_by UUID REFERENCES users(id) ON DELETE SET NULL,
uploaded_at TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP
);
COMMIT;