Interactive/pkg/models/realms.go

20 lines
429 B
Go
Raw Normal View History

2024-02-02 23:42:42 +08:00
package models
type Realm struct {
BaseModel
2024-02-09 12:36:39 +08:00
Name string `json:"name"`
Description string `json:"description"`
Posts []Post `json:"posts"`
Members []RealmMember `json:"members"`
IsPublic bool `json:"is_public"`
AccountID uint `json:"account_id"`
}
type RealmMember struct {
BaseModel
RealmID uint `json:"realm_id"`
AccountID uint `json:"account_id"`
2024-02-02 23:42:42 +08:00
}