Invite system and user registration #32

Merged
robin merged 13 commits from dev into main 2026-08-31 21:38:47 +02:00
Showing only changes of commit 491b8da1ac - Show all commits
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS invites (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
inviter_user_id UUID REFERENCES users(id) ON DELETE SET NULL,
invitee_user_id UUID REFERENCES users(id) ON DELETE SET NULL,
code VARCHAR(128) NOT NULL,
code VARCHAR(64) NOT NULL,
consumed_at TIMESTAMPTZ,
expires_at TIMESTAMPTZ NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()