Staff upload a file for a tenant as a draft (streamed to an S3 bucket, hashed on the way, never buffered whole), publish it, or delete it; the tenant lists its published documents and gets a five-minute presigned download link. Uploads, publications and downloads are audited, a download under the person the portal names. Migration 0008 adds the documents table; internal/storage wraps minio-go (Hetzner Object Storage, the bucket is created in its region when missing). Without DOCUMENTS_S3_* the routes answer 503 and the rest of the registry is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2 lines
32 B
SQL
2 lines
32 B
SQL
DROP TABLE IF EXISTS documents;
|