Files
modrinth/apps/labrinth/migrations/20260720114640_creator_payouts.sql
T
2026-07-20 12:50:19 +01:00

9 lines
220 B
SQL

CREATE TABLE payouts_runs(
period_start TIMESTAMPTZ PRIMARY KEY,
started_at TIMESTAMPTZ NOT NULL,
started_by BIGINT REFERENCES users(id)
ON DELETE SET NULL,
completed_at TIMESTAMPTZ,
adjustments JSONB NOT NULL
);