Paperclip/pkg/internal/models/accounts.go

21 lines
633 B
Go
Raw Normal View History

2024-05-17 07:59:51 +00:00
package models
// Account profiles basically fetched from Hydrogen.Passport
// But cache at here for better usage
// At the same time this model can make relations between local models
type Account struct {
BaseModel
2024-08-18 04:01:41 +00:00
Name string `json:"name"`
Nick string `json:"nick"`
Avatar string `json:"avatar"`
Banner string `json:"banner"`
Description string `json:"description"`
EmailAddress string `json:"email_address"`
PowerLevel int `json:"power_level"`
ExternalID uint `json:"external_id"`
Attachments []Attachment `json:"attachments"`
Pools []AttachmentPool `json:"pools"`
2024-05-17 07:59:51 +00:00
}