14 lines
227 B
Go
14 lines
227 B
Go
package pgModels
|
|
|
|
import "time"
|
|
|
|
type UserFavorite struct {
|
|
UserID string `gorm:"primaryKey"`
|
|
PostID string `gorm:"primaryKey"`
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
func (UserFavorite) TableName() string {
|
|
return "UserFavorites"
|
|
}
|