Documents
Registry per PRD §7: nine document types linked to Job Orders. Files live in object storage (S3/MinIO, §24); the database keeps only bucket, object_key, filename, mime_type, size, checksum.
| Document | Type | Job Order | Version | Size | Checksum | Uploaded by | Status |
|---|
Storage (TASK-026, §24). Upload streams to S3/MinIO with checksum verification; PostgreSQL never stores file bodies. Access: upload is CS (§3.3); Customs sees customs + supporting documents; Finance sees invoices and receipts; Super Admin sees all. Downloads are recorded in the audit trail (TASK-031). Sales and Pricing have no Documents module access per §3.2/§3.6.