This commit is contained in:
parent
8d4ba2ecae
commit
67b507f4bd
25 changed files with 74 additions and 27 deletions
|
@ -2,11 +2,15 @@ package models
|
|||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// An emote is effectively an assignment of a name and server
|
||||
type Emote struct {
|
||||
gorm.Model
|
||||
// Metadata MediaMetadata // `gorm:"foreignKey:MetadataId"`
|
||||
// Media used for this emote
|
||||
Metadata MediaMetadata // `gorm:"foreignKey:MetadataId"`
|
||||
MetadataId string
|
||||
Name string
|
||||
// Server RemoteServer // `gorm:"foreignKey:ServerId;references:ID"`
|
||||
// Name of the emote. Also the text for using it in a message (ex. :bob:)
|
||||
Name string
|
||||
// Server the emote is from
|
||||
Server RemoteServer // `gorm:"foreignKey:ServerId;references:ID"`
|
||||
ServerId uint
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue