linstrom/storage-new/models/Reaction.go
mStar 03ca524c99
Some checks failed
/ docker (push) Failing after 3m1s
Cleanup, store likes
- Clean up some logging
- Properly store likes in db
2025-05-06 22:18:28 +02:00

18 lines
332 B
Go

package models
import (
"database/sql"
"gorm.io/gorm"
)
// A Reaction is a user liking a note using an emote
type Reaction struct {
gorm.Model
Note Note
NoteId string
Reactor User
ReactorId string
Emote *Emote // Emote is optional. If not set, use the default emote of the server
EmoteId sql.NullInt64
}