Premium (8 passadas, R$ 39,90/m, SKU DTFP.TX.100CM) is a fifth textile ready-sheet product: priced on the server and the Site, a hidden fifth card, a PREMIUM hot-folder class, its Tiny SKU, and a products row created disabled by a migration until Dropstar says 'testado'. A machine with no typed minimum now alerts at Dropstar's fixed minimums: 1 roll of film, 1 L of each ink, 5 kg of powder. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
18 lines
959 B
SQL
18 lines
959 B
SQL
-- Front 3: the Premium product (Marcus, 2026-11-10), built and switched OFF
|
|
-- until Dropstar prints the three test sheets and says "testado". The products
|
|
-- CHECK is the inline constraint of dtf_local.products.id, which Postgres
|
|
-- named 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'));
|
|
|
|
INSERT INTO dtf_local.products(id, enabled) VALUES ('premium', false)
|
|
ON CONFLICT (id) DO NOTHING;
|
|
|
|
-- A coupon may also target the new product (the Site tab lists every mode).
|
|
ALTER TABLE dtf_local.coupons DROP CONSTRAINT IF EXISTS coupons_product_check;
|
|
ALTER TABLE dtf_local.coupons ADD CONSTRAINT coupons_product_check
|
|
CHECK (product IN ('file','avulsa','uvfile','uv','premium'));
|
|
|