2024-09-17 15:06:22 +02:00

28 lines
485 B
Go

package authenticator
import (
"github.com/zitadel/zitadel/internal/eventstore"
)
const (
AggregateType = "authenticator"
AggregateVersion = "v1"
eventPrefix = "authenticator."
)
type Aggregate struct {
eventstore.Aggregate
}
func NewAggregate(id, resourceOwner string) *Aggregate {
return &Aggregate{
Aggregate: eventstore.Aggregate{
Type: AggregateType,
Version: AggregateVersion,
ID: id,
ResourceOwner: resourceOwner,
},
}
}