..
This commit is contained in:
@@ -17,6 +17,7 @@ pub mut:
|
|||||||
bio string
|
bio string
|
||||||
timezone string
|
timezone string
|
||||||
status ContactStatus
|
status ContactStatus
|
||||||
|
profile_ids []string
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum ContactStatus {
|
pub enum ContactStatus {
|
||||||
|
|||||||
65
lib/hero/heromodels/profile.v
Normal file
65
lib/hero/heromodels/profile.v
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
module heromodels
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
|
pub struct Profile {
|
||||||
|
pub:
|
||||||
|
id string
|
||||||
|
user_id string // a user can have more than one profile
|
||||||
|
name string
|
||||||
|
summary string
|
||||||
|
headline string
|
||||||
|
location string
|
||||||
|
industry string
|
||||||
|
// urls to profile pictures
|
||||||
|
picture_url string
|
||||||
|
background_image_url string
|
||||||
|
// contact info
|
||||||
|
email string
|
||||||
|
phone string
|
||||||
|
website string
|
||||||
|
// experience
|
||||||
|
experience []Experience
|
||||||
|
education []Education
|
||||||
|
skills []string
|
||||||
|
languages []string
|
||||||
|
// recommendations
|
||||||
|
recommendations_received []Recommendation
|
||||||
|
recommendations_given []Recommendation
|
||||||
|
// connections
|
||||||
|
connections []string // user_ids
|
||||||
|
// groups the profile is part of
|
||||||
|
group_ids []string
|
||||||
|
// creation and modification times
|
||||||
|
created time.Time
|
||||||
|
modified time.Time
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Experience {
|
||||||
|
pub:
|
||||||
|
title string
|
||||||
|
company string
|
||||||
|
location string
|
||||||
|
start_date time.Time
|
||||||
|
end_date time.Time
|
||||||
|
current bool
|
||||||
|
description string
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Education {
|
||||||
|
pub:
|
||||||
|
school string
|
||||||
|
degree string
|
||||||
|
field_of_study string
|
||||||
|
start_date time.Time
|
||||||
|
end_date time.Time
|
||||||
|
description string
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Recommendation {
|
||||||
|
pub:
|
||||||
|
recommender_id string
|
||||||
|
receiver_id string
|
||||||
|
text string
|
||||||
|
created time.Time
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@ pub mut:
|
|||||||
user_id u32 // id as is set in ledger, if 0 then we don't know
|
user_id u32 // id as is set in ledger, if 0 then we don't know
|
||||||
contact_id u32 // if we have separate content info for this person
|
contact_id u32 // if we have separate content info for this person
|
||||||
status UserStatus
|
status UserStatus
|
||||||
|
profile_ids []string
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum UserStatus {
|
pub enum UserStatus {
|
||||||
|
|||||||
Reference in New Issue
Block a user