sorarebuddy/db/membership.go

18 lines
335 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 MembershipRepository struct {
*Repository[model.Membership]
}
func NewMembershipRepository(db *bun.DB) *MembershipRepository {
return &MembershipRepository{
Repository: NewRepository[model.Membership](db, []string{"id"}),
}
}