@@ -59,6 +59,7 @@ model User {
5959 skillForUser SkillForUser [] // One-to-many relationship with SkillForUser, customized skills per user.
6060 company Company [] // One-to-many relationship with Company, work experience. Can be multiple companies.
6161 education Education [] // One-to-many relationship with Education, education history. Can be multiple schools.
62+ Social Social [] // One-to-many relationship with Social, social media links or usernames.
6263}
6364
6465model VerificationToken {
@@ -69,6 +70,19 @@ model VerificationToken {
6970 @@unique ([identifier , token ] )
7071}
7172
73+ // Social media links for a user, e.g. "Twitter", "GitHub", "LinkedIn"
74+ model Social {
75+ id String @id @default (cuid () )
76+ name String
77+ // URL base dpends on the name, e.g. "https://{name}.com/{username}"
78+ // So, if name is "twitter", and username is "jack", the full URL will be "https://twitter.com/jack"
79+ // Or if it's LinkedIn, it will be "https://linkedin.com/in/{username}"
80+ // However, if the name is "website" or "personal", then the URL should be the full URL.
81+ url String
82+ user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
83+ userId String
84+ }
85+
7286// Skill is a general skill that can be used by multiple users, e.g. "HTML", "CSS", "JavaScript"
7387// Not limited to technical skills. Can be used for any skill, e.g. "Public Speaking", "Leadership"
7488model Skill {
0 commit comments