sorarebuddy/db/card_supply.go

18 lines
365 B
Go
Raw Normal View History

2024-05-23 04:18:54 +00:00
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"}),
}
}