feat: add public instructor profiles
All checks were successful
CI / Validate frontend and API (push) Successful in 54s
CI / Build and publish Docker images (push) Successful in 26s

This commit is contained in:
Cauê Faleiros
2026-09-08 10:50:35 -03:00
parent 07fbc7d009
commit 7b2d25aabb
12 changed files with 372 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
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');