Interactive/pkg/models/reactions.go

26 lines
475 B
Go
Raw Normal View History

2024-02-02 16:50:23 +00:00
package models
import (
"time"
)
2024-02-02 16:50:23 +00:00
type ReactionAttitude = uint8
2024-02-02 16:50:23 +00:00
const (
AttitudeNeutral = ReactionAttitude(iota)
AttitudePositive
AttitudeNegative
)
2024-03-02 17:23:11 +00:00
type Reaction struct {
2024-03-02 17:23:11 +00:00
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Symbol string `json:"symbol"`
Attitude ReactionAttitude `json:"attitude"`
2024-03-02 17:23:11 +00:00
2024-05-15 11:45:49 +00:00
PostID *uint `json:"post_id"`
AccountID uint `json:"account_id"`
2024-02-02 16:50:23 +00:00
}