linstrom/storage-new/models/RemoteServer.go
mstar 8ffd6d0050
Some checks are pending
/ test (push) Waiting to run
Fix enum type migration and more relations
- Fixed bad SQL for creating sql enum types
- Noted more relations, mostly x to media
2025-03-27 15:55:40 +01:00

15 lines
576 B
Go

package models
import "gorm.io/gorm"
// RemoteServer describes an ActivityPub server
// This includes self too
type RemoteServer struct {
gorm.Model
ServerType ServerSoftwareType // What software the server is running. Useful for formatting
Domain string // `gorm:"primaryKey"` // Domain the server exists under. Additional primary key
Name string // What the server wants to be known as (usually same as url)
Icon MediaMetadata
IconId string // ID of a media file
IsSelf bool // Whether this server is yours truly
}