mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 17:58:11 +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 (
|
|
orgMemberTable = table{
|
|
name: projection.OrgMemberProjectionTable,
|
|
alias: "members",
|
|
}
|
|
OrgMemberUserID = Column{
|
|
name: projection.MemberUserIDCol,
|
|
table: orgMemberTable,
|
|
}
|
|
OrgMemberRoles = Column{
|
|
name: projection.MemberRolesCol,
|
|
table: orgMemberTable,
|
|
}
|
|
OrgMemberCreationDate = Column{
|
|
name: projection.MemberCreationDate,
|
|
table: orgMemberTable,
|
|
}
|
|
OrgMemberChangeDate = Column{
|
|
name: projection.MemberChangeDate,
|
|
table: orgMemberTable,
|
|
}
|
|
OrgMemberSequence = Column{
|
|
name: projection.MemberSequence,
|
|
table: orgMemberTable,
|
|
}
|
|
OrgMemberResourceOwner = Column{
|
|
name: projection.MemberResourceOwner,
|
|
table: orgMemberTable,
|
|
}
|
|
OrgMemberOrgID = Column{
|
|
name: projection.OrgMemberOrgIDCol,
|
|
table: orgMemberTable,
|
|
}
|
|
)
|