-- Add unit fields to productos
ALTER TABLE productos ADD COLUMN unidad TEXT DEFAULT 'und';
ALTER TABLE productos ADD COLUMN permite_decimales INTEGER DEFAULT 0;

-- SQLite is flexible with types: cantidad INTEGER already accepts REAL values
-- But we explicitly note that cantidad in venta_items can now be decimal
