Files
compor-academy/server/migrations/013_instructor_profiles.sql
Cauê Faleiros 7b2d25aabb
All checks were successful
CI / Validate frontend and API (push) Successful in 54s
CI / Build and publish Docker images (push) Successful in 26s
feat: add public instructor profiles
2026-09-08 10:50:35 -03:00

14 lines
608 B
SQL

alter table users
add column if not exists avatar_image_url text,
add column if not exists profile_headline text not null default '',
add column if not exists profile_bio text not null default '',
add column if not exists website_url text,
add column if not exists linkedin_url text,
add column if not exists instagram_url text,
add column if not exists youtube_url text,
add column if not exists profile_is_public boolean not null default true;
create index if not exists users_public_instructor_profiles_index
on users (id)
where profile_is_public and role in ('instructor', 'admin');