2024-05-31 09:54:39 +00:00
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
type RemoteServer struct {
|
|
|
|
ID string `gorm:"primarykey"` // ID is also server url
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
|
|
ServerType RemoteServerType // What software the server is running. Useful for formatting
|
|
|
|
Name string // What the server wants to be known as (usually same as url)
|
|
|
|
Icon string // ID of a media file
|
|
|
|
IsSelf bool // Whether this server is yours truly
|
|
|
|
}
|
2024-05-31 15:21:29 +00:00
|
|
|
|
|
|
|
var placeholderServer = &RemoteServer{
|
|
|
|
ID: "placeholder",
|
|
|
|
ServerType: REMOTE_SERVER_LINSTROM,
|
|
|
|
Name: "placeholder",
|
|
|
|
Icon: "placeholder",
|
|
|
|
IsSelf: false,
|
|
|
|
}
|