update equipment_items as i
set suggested_day_rate = case
  when lower(i.name) like '%macbook%' then 220
  when lower(i.name) like '%legion%' then 210
  when lower(i.name) like '%15%' then 170
  when lower(i.name) like '%14%' then 150
  when lower(i.name) like '%ipad pro%' then 120
  when lower(i.name) like '%ipad%' then 95
  when lower(i.name) like '%samsung%' or lower(i.name) like '%galaxy%' then 85
  when lower(i.name) like '%monitor 24%' then 45
  when lower(i.name) like '%monitor 21%' then 35
  when lower(i.name) like '%logitech%' or lower(i.name) like '%spotlight%' then 25
  when lower(c.name) = 'laptopy' then 160
  when lower(c.name) = 'tablety' then 90
  when lower(c.name) = 'akcesoria' then 35
  else 100
end
from equipment_categories as c
where i.category_id = c.id
  and i.suggested_day_rate is null;
