From 491b8da1acd72b37e8efcebbf18b78de43658e85 Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Mon, 31 Aug 2026 18:51:13 +0200 Subject: [PATCH] fix: changed invite code length to 64 (sha256 hash) --- internal/database/migrations/000003_create_invites.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/database/migrations/000003_create_invites.up.sql b/internal/database/migrations/000003_create_invites.up.sql index daee2aa..eb10118 100644 --- a/internal/database/migrations/000003_create_invites.up.sql +++ b/internal/database/migrations/000003_create_invites.up.sql @@ -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()