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>
This commit is contained in:
35
sql/creatives_upload_pmax.sql
Normal file
35
sql/creatives_upload_pmax.sql
Normal file
@@ -0,0 +1,35 @@
|
||||
-- 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';
|
||||
Reference in New Issue
Block a user