mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
1143e3773e
* fix: remove usermemberships on user remove * fix: text user remove with memberships * fix: translations * Update internal/iam/repository/eventsourcing/model/types.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: uncomment tests * fix: remove memberships if user removed Co-authored-by: Livio Amstutz <livio.a@gmail.com>
30 lines
562 B
Go
30 lines
562 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type UserMembership struct {
|
|
UserID string
|
|
MemberType MemberType
|
|
AggregateID string
|
|
//ObjectID differs from aggregate id if obejct is sub of an aggregate
|
|
ObjectID string
|
|
|
|
Roles []string
|
|
DisplayName string
|
|
CreationDate time.Time
|
|
ChangeDate time.Time
|
|
ResourceOwner string
|
|
ResourceOwnerName string
|
|
Sequence uint64
|
|
}
|
|
|
|
type MemberType int32
|
|
|
|
const (
|
|
MemberTypeUnspecified MemberType = iota
|
|
MemberTypeOrganisation
|
|
MemberTypeProject
|
|
MemberTypeProjectGrant
|
|
MemberTypeIam
|
|
)
|