feat: add social media links to user profile
- Add YouTube, Instagram, Facebook, and TikTok URL fields to User model - Create database migration for social media link columns - Add custom validators to ensure URLs contain correct domains - Update profile page with social media input fields - Include social media URLs in GET /api/users/me response - Add icons for each social platform in the UI Users can now add links to their social media profiles. Each field validates that the URL contains the appropriate domain (e.g., instagram.com for Instagram, youtube.com/youtu.be for YouTube).
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "facebook_url" VARCHAR(255),
|
||||
ADD COLUMN "instagram_url" VARCHAR(255),
|
||||
ADD COLUMN "tiktok_url" VARCHAR(255),
|
||||
ADD COLUMN "youtube_url" VARCHAR(255);
|
||||
Reference in New Issue
Block a user