feat(ocr): add unique constraint on (job_id, document_id)
Prevents the same document from being added to an OCR job twice. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE ocr_job_documents
|
||||
ADD CONSTRAINT uq_ocr_job_document UNIQUE (job_id, document_id);
|
||||
Reference in New Issue
Block a user