2024-01-28 16:17:38 +08:00
|
|
|
package models
|
|
|
|
|
2024-04-02 20:23:25 +08:00
|
|
|
import (
|
|
|
|
"time"
|
2025-03-02 12:00:29 +08:00
|
|
|
|
|
|
|
"gorm.io/datatypes"
|
2024-04-02 20:23:25 +08:00
|
|
|
)
|
2024-01-28 16:17:38 +08:00
|
|
|
|
|
|
|
type AccountProfile struct {
|
|
|
|
BaseModel
|
|
|
|
|
2025-03-02 12:00:29 +08:00
|
|
|
FirstName string `json:"first_name"`
|
|
|
|
LastName string `json:"last_name"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
TimeZone string `json:"time_zone"`
|
|
|
|
Location string `json:"location"`
|
|
|
|
Pronouns string `json:"pronouns"`
|
|
|
|
Gender string `json:"gender"`
|
|
|
|
Links datatypes.JSONMap `json:"links"`
|
|
|
|
Experience uint64 `json:"experience"`
|
|
|
|
LastSeenAt *time.Time `json:"last_seen_at"`
|
|
|
|
Birthday *time.Time `json:"birthday"`
|
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountPage struct {
|
|
|
|
BaseModel
|
|
|
|
|
|
|
|
Content string `json:"content"`
|
|
|
|
AccountID uint `json:"account_id"`
|
2024-01-28 16:17:38 +08:00
|
|
|
}
|