-- Add unit_id and has_ingredients to products table
ALTER TABLE products 
ADD COLUMN unit_id UUID REFERENCES units(id) ON DELETE SET NULL,
ADD COLUMN has_ingredients BOOLEAN DEFAULT false;

-- Index for unit_id
CREATE INDEX idx_products_unit_id ON products(unit_id);
CREATE INDEX idx_products_has_ingredients ON products(has_ingredients); 