Files
AstralRinth/apps/labrinth/migrations/20260527133330_pride_26_campaign.sql
T
aecsocket c29973ec1a Pride 26 campaign backend integration (#6254)
* wip: pride 2026 webhooks and stuff

* setup webhook and link to user

* fix up code

* improve donation resolution

* Pride 26 campaign

* idempotency

* wip: tiltify

* fix

* redis caching

* add num donators

* fix

* Revert openapi

* Prepare

* improve oauth token gen code
2026-05-30 19:21:33 +00:00

11 lines
361 B
SQL

create table campaign_donations (
id bigint primary key,
tiltify_event_id uuid not null unique,
raw_data jsonb not null,
donated_at timestamptz not null,
amount_usd numeric(96, 48),
user_id bigint references users(id)
);
create index campaign_donations_user_amount_donated_at_idx
on campaign_donations (user_id, amount_usd, donated_at);