Files
4ventures-client-portal/sql/creatives_upload_pmax.sql
4Ventures 0d286dc66c feat: upload creativos, PMax formats, portada IG/FB y seguimiento con notas
Permite subir media sin URL; previews Google PMax por ratio; calendario anual estilo Miia con filtros IG/FB y LinkedIn; seguimiento con selector de fechas, KPIs y cuadro de notas.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-23 09:33:22 +02:00

36 lines
815 B
SQL

-- Expand creatives.format for Google Performance Max asset ratios + upload fields
-- Idempotent.
alter table public.creatives drop constraint if exists creatives_format_check;
alter table public.creatives
add constraint creatives_format_check
check (
format is null
or format in (
'image',
'video',
'carousel',
'reel',
'story',
'rsa',
'pmax',
'pmax_landscape',
'pmax_square',
'pmax_portrait',
'pmax_vertical',
'pmax_logo',
'youtube',
'other'
)
);
alter table public.creatives
add column if not exists storage_path text;
alter table public.creatives
add column if not exists mime_type text;
comment on column public.creatives.storage_path is
'Path in tenant-assets bucket for uploaded creative media';