create table if not exists rate_limits(
  key text primary key,
  window_start timestamptz not null,
  count integer not null default 0,
  updated_at timestamptz not null default now()
);

create index if not exists rate_limits_updated_at_idx on rate_limits(updated_at);
