feat: agregar historial de importación de ZIP y metadatos a los activos

This commit is contained in:
2026-04-21 11:43:09 -04:00
parent 254900746d
commit 1c67d0dac2
7 changed files with 196 additions and 13 deletions
@@ -0,0 +1,11 @@
ALTER TABLE assets
ADD COLUMN IF NOT EXISTS zip_batch_id UUID,
ADD COLUMN IF NOT EXISTS source_zip_name TEXT;
CREATE INDEX IF NOT EXISTS idx_assets_zip_batch_id
ON assets (organization_id, zip_batch_id)
WHERE zip_batch_id IS NOT NULL;
CREATE INDEX IF NOT EXISTS idx_assets_source_zip_name
ON assets (organization_id, source_zip_name)
WHERE source_zip_name IS NOT NULL;