Passport/pkg/models/profiles.go

32 lines
771 B
Go
Raw Normal View History

2024-01-28 08:17:38 +00:00
package models
2024-04-02 12:23:25 +00:00
import (
"gorm.io/datatypes"
"time"
)
2024-01-28 08:17:38 +00:00
type AccountProfile struct {
BaseModel
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Experience uint64 `json:"experience"`
Birthday *time.Time `json:"birthday"`
AccountID uint `json:"account_id"`
}
2024-04-02 12:23:25 +00:00
type AccountPage struct {
BaseModel
Content string `json:"content"`
Script string `json:"script"`
Style string `json:"style"`
Links datatypes.JSONSlice[AccountPageLinks] `json:"links"`
AccountID uint `json:"account_id"`
}
type AccountPageLinks struct {
Label string `json:"label"`
Url string `json:"url"`
}