2024-02-02 15:42:42 +00:00
|
|
|
package models
|
|
|
|
|
2024-05-04 14:22:58 +00:00
|
|
|
// Realm profiles basically fetched from Hydrogen.Passport
|
|
|
|
// But cache at here for better usage and database relations
|
2024-02-02 15:42:42 +00:00
|
|
|
type Realm struct {
|
|
|
|
BaseModel
|
|
|
|
|
2024-05-04 14:22:58 +00:00
|
|
|
Alias string `json:"alias"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Articles []Article `json:"article"`
|
|
|
|
Moments []Moment `json:"moments"`
|
|
|
|
IsPublic bool `json:"is_public"`
|
|
|
|
IsCommunity bool `json:"is_community"`
|
|
|
|
ExternalID uint `json:"external_id"`
|
2024-02-02 15:42:42 +00:00
|
|
|
}
|