sorarebuddy/db/card_supply.go
2024-05-23 08:18:54 +04:00

18 lines
365 B
Go

package db
import (
"github.com/uptrace/bun"
"git.lehouerou.net/laurent/sorarebuddy/model"
)
type CardSupplyRepository struct {
*Repository[model.CardSupply]
}
func NewCardSupplyRepository(db *bun.DB) *CardSupplyRepository {
return &CardSupplyRepository{
Repository: NewRepository[model.CardSupply](db, []string{"player_slug", "season_start_year"}),
}
}