Some checks failed
/ docker (push) Failing after 3m1s
- Clean up some logging - Properly store likes in db
18 lines
332 B
Go
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
|
|
}
|