Passport/pkg/authkit/models/profiles.go

32 lines
813 B
Go
Raw Normal View History

2024-01-28 16:17:38 +08:00
package models
2024-04-02 20:23:25 +08:00
import (
"time"
"gorm.io/datatypes"
2024-04-02 20:23:25 +08:00
)
2024-01-28 16:17:38 +08:00
type AccountProfile struct {
BaseModel
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
}