mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +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
43 lines
1.1 KiB
Go
43 lines
1.1 KiB
Go
package query
|
|
|
|
import "github.com/caos/zitadel/internal/query/projection"
|
|
|
|
var (
|
|
projectGrantMemberTable = table{
|
|
name: projection.ProjectGrantMemberProjectionTable,
|
|
alias: "members",
|
|
}
|
|
ProjectGrantMemberUserID = Column{
|
|
name: projection.MemberUserIDCol,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberRoles = Column{
|
|
name: projection.MemberRolesCol,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberCreationDate = Column{
|
|
name: projection.MemberCreationDate,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberChangeDate = Column{
|
|
name: projection.MemberChangeDate,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberSequence = Column{
|
|
name: projection.MemberSequence,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberResourceOwner = Column{
|
|
name: projection.MemberResourceOwner,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberProjectID = Column{
|
|
name: projection.ProjectGrantMemberProjectIDCol,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
ProjectGrantMemberGrantID = Column{
|
|
name: projection.ProjectGrantMemberGrantIDCol,
|
|
table: projectGrantMemberTable,
|
|
}
|
|
)
|