Messaging/pkg/internal/models/realms.go

18 lines
520 B
Go
Raw Normal View History

2024-05-04 16:39:59 +00:00
package models
2024-09-11 15:58:02 +00:00
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
2024-05-04 16:39:59 +00:00
// Realm profiles basically fetched from Hydrogen.Passport
// But cache at here for better usage and database relations
type Realm struct {
2024-09-11 15:58:02 +00:00
hyper.BaseModel
2024-05-04 16:39:59 +00:00
Alias string `json:"alias"`
Name string `json:"name"`
Description string `json:"description"`
Channels []Channel `json:"channels"`
IsPublic bool `json:"is_public"`
IsCommunity bool `json:"is_community"`
ExternalID uint `json:"external_id"`
}