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

18 lines
335 B
Go

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