Create Supabase migration for applications table
cgen-167e0aacbc2946cda5c59e84e0fc0a63
This commit is contained in:
parent
7230a628e0
commit
d13e5733a9
1 changed files with 23 additions and 0 deletions
23
supabase/migrations/202407090001_create_applications.sql
Normal file
23
supabase/migrations/202407090001_create_applications.sql
Normal file
|
|
@ -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);
|
||||
Loading…
Reference in a new issue