fix(projections): login names projection (#2698)

* refactor(domain): add user type

* fix(projections): start with login names

* fix(login_policy): correct handling of user domain claimed event

* refactor: login name projection

* fix: set correct suffixes on login name projections

* test(projections): login name reduces

* migration versioning

* refactor: use const for login name table name
This commit is contained in:
Silvan
2021-11-23 10:31:23 +01:00
committed by GitHub
parent a194354f47
commit 861b777d9f
6 changed files with 1247 additions and 0 deletions

View File

@@ -26,3 +26,16 @@ func (f UserState) Valid() bool {
func (s UserState) Exists() bool {
return s != UserStateUnspecified && s != UserStateDeleted
}
type UserType int32
const (
UserTypeUnspecified UserType = iota
UserTypeHuman
UserTypeMachine
userTypeCount
)
func (f UserType) Valid() bool {
return f >= 0 && f < userTypeCount
}