This commit is contained in:
Aditya Siregar
2025-09-13 02:17:51 +07:00
parent 75ec5274d2
commit 4f6208e479
17 changed files with 398 additions and 207 deletions
@@ -0,0 +1,2 @@
-- Remove waste_percentage column from product_recipes table
ALTER TABLE product_recipes DROP COLUMN waste_percentage;
@@ -0,0 +1,5 @@
-- Add waste_percentage column to product_recipes table
ALTER TABLE product_recipes
ADD COLUMN waste_percentage DECIMAL(5,2) DEFAULT 0.00 CHECK (waste_percentage >= 0 AND waste_percentage <= 100);
COMMENT ON COLUMN product_recipes.waste_percentage IS 'Waste percentage for this ingredient (0-100). Used to calculate gross quantity needed including waste.';