Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

329 B
Raw Blame
-- rebuilds the one-account-per-user index without the Reddit username branch
drop index if exists public.accounts_identity_key;
create unique index accounts_identity_key on public.accounts (
    user_id,
    platform,
    (case platform when 'youtube' then data ->> 'channelId' when 'instagram' then data ->> 'igUserId' end)
);