This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
otter-space-sdk/pkg/models/userFavorite.go
soxx b28891f383 refactor(postgres): fixed any IDE errors
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 23:23:23 +02:00

18 lines
294 B
Go

package models
import "time"
type UserFavorite struct {
UserID string `gorm:"primaryKey"`
PostID string `gorm:"primaryKey"`
CreatedAt time.Time
}
func (UserFavorite) TableName() string {
return "UserFavorites"
}
type FavoriteList struct {
Posts []Post `json:"posts,omitempty"`
}