ALTER TABLE onhand_stocks DROP CONSTRAINT IF EXISTS unique_onhand_stock;

-- ALTER TABLE onhand_stocks
-- ADD CONSTRAINT unique_onhand_stock UNIQUE (company_id, stock_take_id, item_id, uom_id, item_status_id);