This commit is contained in:
parent
848684e58a
commit
85f3aa1615
1
main.go
1
main.go
|
@ -24,6 +24,7 @@ type PostReaction struct {
|
||||||
TotalCount int
|
TotalCount int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Gorm model
|
||||||
type EmojiReaction struct {
|
type EmojiReaction struct {
|
||||||
UserAnonIp string `gorm:"index:idx_anon,unqiue"`
|
UserAnonIp string `gorm:"index:idx_anon,unqiue"`
|
||||||
PostId string `gorm:"index:idx_anon,unique"`
|
PostId string `gorm:"index:idx_anon,unique"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user