16 lines
437 B
Go
Raw Normal View History

2024-02-02 23:42:42 +08:00
package models
// Realm profiles basically fetched from Hydrogen.Passport
// But cache at here for better usage and database relations
2024-02-02 23:42:42 +08:00
type Realm struct {
BaseModel
2024-05-15 19:45:49 +08:00
Alias string `json:"alias"`
Name string `json:"name"`
Description string `json:"description"`
Posts []Post `json:"posts"`
IsPublic bool `json:"is_public"`
IsCommunity bool `json:"is_community"`
ExternalID uint `json:"external_id"`
2024-02-02 23:42:42 +08:00
}