Class UserRoleAssignmentProps

Assembly: redb.Identity.Core.dll

B.3 — direct user → role assignment. One row per (user, role) pair.

Stored shape: parent_id points at the role's _objects.id (so we
can fetch every member of a role with a single Query.WhereRedb on
parent_id without joining); value_long mirrors the user id so the
reverse query (every role of a user) also runs as a single indexed
scan. The key field is also set to the user id, enabling a
per-scheme unique index on (parent_id, key) to enforce idempotent
assignment without a separate uniqueness check.

[RedbScheme("identity.user_role_assignment")]
public class UserRoleAssignmentProps

Inheritance

Object→UserRoleAssignmentProps

Properties

AssignedAt

public DateTimeOffset AssignedAt { get; set; }

AssignedByUserId

Optional — id of the operator who assigned the role.

public long? AssignedByUserId { get; set; }