From d13e5733a92389dc3ef310d47588de1d6df3a8d1 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 04:18:05 +0000 Subject: [PATCH] Create Supabase migration for applications table cgen-167e0aacbc2946cda5c59e84e0fc0a63 --- .../202407090001_create_applications.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 supabase/migrations/202407090001_create_applications.sql diff --git a/supabase/migrations/202407090001_create_applications.sql b/supabase/migrations/202407090001_create_applications.sql new file mode 100644 index 00000000..e6cce6bf --- /dev/null +++ b/supabase/migrations/202407090001_create_applications.sql @@ -0,0 +1,23 @@ +-- Create applications table for contributor and career submissions +create extension if not exists "pgcrypto"; + +create table if not exists public.applications ( + id uuid primary key default gen_random_uuid(), + type text not null check (type in ('contributor','career')), + full_name text not null, + email text not null, + location text, + role_interest text, + primary_skill text, + experience_level text, + availability text, + portfolio_url text, + resume_url text, + interests text[], + message text, + status text not null default 'new', + submitted_at timestamptz not null default now() +); + +create index if not exists applications_email_idx on public.applications (email); +create index if not exists applications_status_idx on public.applications (status);