Under each art the Prumo warns about, the customer can choose Ajuste Fino or Ajuste Fino Redesenho (vectorize or redraw, per art, +48 h, no batch price). It is a disabled product until Gestão prices it in the Site tab; the server charges it per chosen art, Tiny gets a DTFIMP.AJF.RED line and two more business days, the card shows 'Redesenho · N artes' and the designer gate applies. The preview loop is slice R2. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
12 lines
705 B
SQL
12 lines
705 B
SQL
-- Front 1b (Marcus, 2026-11-12): Ajuste Fino Redesenho, a per-art service
|
|
-- beside the basic Ajuste Fino. Created switched OFF and without a price:
|
|
-- Gestão sets both in the Site tab. The products CHECK is the inline
|
|
-- constraint of dtf_local.products.id (products_id_check); widening a list is
|
|
-- a new migration that drops and adds that one constraint (never schema.sql).
|
|
ALTER TABLE dtf_local.products DROP CONSTRAINT IF EXISTS products_id_check;
|
|
ALTER TABLE dtf_local.products ADD CONSTRAINT products_id_check
|
|
CHECK (id IN ('file','avulsa','uvfile','uv','premium','tratamento','redesenho'));
|
|
|
|
INSERT INTO dtf_local.products(id, enabled) VALUES ('redesenho', false)
|
|
ON CONFLICT (id) DO NOTHING;
|