From 732799a8ada2a86341bf31b353d3e7e0d5f7fa4f Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 7 Aug 2026 04:12:25 +0000 Subject: [PATCH] Modified by www.SourceFiles.app --- .../migrations/20260719215429_intake_tokens.sql | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 supabase/migrations/20260719215429_intake_tokens.sql diff --git a/supabase/migrations/20260719215429_intake_tokens.sql b/supabase/migrations/20260719215429_intake_tokens.sql deleted file mode 100644 index 0f1e3e1..0000000 --- a/supabase/migrations/20260719215429_intake_tokens.sql +++ /dev/null @@ -1,14 +0,0 @@ --- One-time intake links: a token lets an unauthenticated parent fill out a --- student's intake. Reached only via server functions (service role); RLS on --- with no policies blocks all direct client access. -CREATE TABLE IF NOT EXISTS public.intake_tokens ( - id UUID PRIMARY KEY DEFAULT gen_random_uuid(), - token TEXT NOT NULL UNIQUE, - student_id UUID NOT NULL REFERENCES public.students(id) ON DELETE CASCADE, - created_by UUID REFERENCES auth.users(id), - expires_at TIMESTAMPTZ NOT NULL, - used_at TIMESTAMPTZ, - created_at TIMESTAMPTZ NOT NULL DEFAULT now() -); -CREATE INDEX IF NOT EXISTS idx_intake_tokens_token ON public.intake_tokens(token); -ALTER TABLE public.intake_tokens ENABLE ROW LEVEL SECURITY;