linstrom/storage-new/models/Emote.go
mStar 8947d97825
Some checks failed
/ docker (push) Failing after 1m35s
Prep for reactions, some fixes and improvements
2025-06-16 08:13:11 +02:00

24 lines
741 B
Go

package models
import (
"gorm.io/gorm"
"time"
)
// Emotes are combinations of a name, the server it originated from
// and the media for it. Only represents custom emotes, not characters found in unicode
//
// TODO: Include the case of unicode icons being used as emote
type Emote struct {
ID string `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Metadata MediaMetadata // The media used by this emote
MetadataId string // Id of the media information, primarily for gorm
// Name of the emote. Also the text for using it in a message (ex. :bob:)
Name string
Server RemoteServer // Server the emote is from
ServerId uint // Id of the server
}