linstrom/storage-new/models/RemoteServer.go
mstar b0f041e7b0
Some checks failed
/ docker (push) Has been cancelled
Add-ish support for tags and mentions in new messages
2025-06-05 17:07:04 +02:00

23 lines
853 B
Go

package models
import (
"database/sql"
"gorm.io/gorm"
)
// RemoteServer describes an ActivityPub server
// This includes self too
type RemoteServer struct {
gorm.Model
// The software the server is based on (Mastodon+Glitch => Mastodon, Sharkey => Misskey, Akoma => Plemora, etc)
ServerType ServerSoftwareType
SpecificType string // Specific software name (Sharkey, Iceshrimp, Akoma, etc)
Version string
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 // The icon used by the server. May be empty
IconId sql.NullString // ID of a media file
IsSelf bool // Whether this server is yours truly
Metadata []RemoteServerMetadata
}