feat: Ajuste Fino Redesenho in the cart (Marcus 12/11, slice R1)
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>
This commit is contained in:
11
app/migrations/202611121200_redesign-product.sql
Normal file
11
app/migrations/202611121200_redesign-product.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user