otter-space-sdk/pkg/models/userFavorite.go

14 lines
274 B
Go
Raw Normal View History

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"
}