SM
Saad Medd

Schema - Copy this React, Tailwind Component to your project

I want a profile section here is schema create table public.profiles ( id uuid not null default gen_random_uuid (), user_id uuid null, username text not null, full_name text null, bio text null, avatar_url text null, email text null, phone text null, created_at timestamp without time zone null default now(), updated_at timestamp without time zone null default now(), website text null, constraint profiles_pkey primary key (id), constraint profiles_email_key unique (email), constraint profiles_phone_key unique (phone), constraint profiles_user_id_key unique (user_id), constraint profiles_username_key unique (username), constraint profiles_user_id_fkey foreign KEY (user_id) references auth.users (id) on delete CASCADE ) TABLESPACE pg_default; create trigger set_updated_at BEFORE update on profiles for EACH row execute FUNCTION update_updated_at ();

Prompt
Component Preview

About

schema - Create a robust profile section with unique constraints for email, phone, and username. Built with React and Tailwind. Download instantly!

Share

Last updated 1 month ago