-- Apply only if this column is absent. Existing attachments remain available for manual verification. ALTER TABLE purchase_document_attachment ADD COLUMN server_generated tinyint(1) NOT NULL DEFAULT 0 COMMENT 'System-generated unsigned document; not a human-uploaded signed copy';