You've already forked AstralRinth
c29973ec1a
* 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
11 lines
361 B
SQL
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);
|