14 lines
274 B
Go
14 lines
274 B
Go
|
package models
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type UserFavorites struct {
|
||
|
UserID string `json:"user_id" gorm:"primaryKey"`
|
||
|
PostID string `json:"post_id" gorm:"primaryKey"`
|
||
|
CreatedAt time.Time `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (UserFavorites) TableName() string {
|
||
|
return "UserFavorites"
|
||
|
}
|