mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
2265fffd8e
* refactor(domain): add user type * fix(projections): start with login names * fix(login_policy): correct handling of user domain claimed event * fix(projections): add members * refactor: simplify member projections * add migration for members * add metadata to member projections * refactor: login name projection * fix: set correct suffixes on login name projections * test(projections): login name reduces * fix: correct cols in reduce member * test(projections): org, iam, project members * member additional cols and conds as opt, add project grant members * fix(migration): members * fix(migration): correct database name * migration version * migs * better naming for member cond and col * split project and project grant members * prepare member columns * feat(queries): membership query * test(queries): membership prepare * fix(queries): multiple projections for latest sequence * fix(api): use query for membership queries in auth and management * fix(query): member queries and user avatar column * member cols * fix(queries): membership stmt * fix user test * fix user test
39 lines
846 B
Go
39 lines
846 B
Go
package query
|
|
|
|
import "github.com/caos/zitadel/internal/query/projection"
|
|
|
|
var (
|
|
iamMemberTable = table{
|
|
name: projection.IAMMemberProjectionTable,
|
|
alias: "members",
|
|
}
|
|
IAMMemberUserID = Column{
|
|
name: projection.MemberUserIDCol,
|
|
table: iamMemberTable,
|
|
}
|
|
IAMMemberRoles = Column{
|
|
name: projection.MemberRolesCol,
|
|
table: iamMemberTable,
|
|
}
|
|
IAMMemberCreationDate = Column{
|
|
name: projection.MemberCreationDate,
|
|
table: iamMemberTable,
|
|
}
|
|
IAMMemberChangeDate = Column{
|
|
name: projection.MemberChangeDate,
|
|
table: iamMemberTable,
|
|
}
|
|
IAMMemberSequence = Column{
|
|
name: projection.MemberSequence,
|
|
table: iamMemberTable,
|
|
}
|
|
IAMMemberResourceOwner = Column{
|
|
name: projection.MemberResourceOwner,
|
|
table: iamMemberTable,
|
|
}
|
|
IAMMemberIAMID = Column{
|
|
name: projection.IAMMemberIAMIDCol,
|
|
table: iamMemberTable,
|
|
}
|
|
)
|