20 lines
509 B
Go
20 lines
509 B
Go
|
package models
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type PostLike struct {
|
||
|
ID uint `json:"id" gorm:"primaryKey"`
|
||
|
CreatedAt time.Time `json:"created_at"`
|
||
|
UpdatedAt time.Time `json:"updated_at"`
|
||
|
PostID uint `json:"post_id"`
|
||
|
AccountID uint `json:"account_id"`
|
||
|
}
|
||
|
|
||
|
type PostDislike struct {
|
||
|
ID uint `json:"id" gorm:"primaryKey"`
|
||
|
CreatedAt time.Time `json:"created_at"`
|
||
|
UpdatedAt time.Time `json:"updated_at"`
|
||
|
PostID uint `json:"post_id"`
|
||
|
AccountID uint `json:"account_id"`
|
||
|
}
|