Files
4ventures-client-portal/sql/generation_requests_copy_v2.sql
4Ventures 46492c3873 Unify Ads/RRSS approval flow and add personalized Meta creative regen.
Agency validates first then client; Meta copy is 5+5+1 with on-image vs feed layers, emojis on feed, and partial v2 by image/hook/support/copy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-13 13:17:36 +02:00

9 lines
444 B
SQL

-- Opcional: permite reason 'copy_v2' además de fatiga/calendario/nueva_campana/manual.
-- Idempotente. Si no se aplica, el código usa reason='manual' + brief.copy_v2.
alter table public.generation_requests drop constraint if exists generation_requests_reason_check;
alter table public.generation_requests
add constraint generation_requests_reason_check
check (reason in ('fatiga', 'calendario', 'nueva_campana', 'manual', 'copy_v2'));