TeamMember

@Serializable
data class TeamMember(val id: String, val teamId: String, val userId: String, val role: String, val createdAt: Instant, val updatedAt: Instant, val user: User? = null)

A member of a team.

See also

Constructors

Link copied to clipboard
constructor(id: String, teamId: String, userId: String, role: String, createdAt: Instant, updatedAt: Instant, user: User? = null)

Properties

Link copied to clipboard
@SerialName(value = "createdAt")
val createdAt: Instant

The date and time the user joined the team.

Link copied to clipboard
@SerialName(value = "id")
val id: String

The unique identifier of the team membership.

Link copied to clipboard
@SerialName(value = "role")
val role: String

The role of the user in the team.

Link copied to clipboard
@SerialName(value = "teamId")
val teamId: String

The ID of the team.

Link copied to clipboard
@SerialName(value = "updatedAt")
val updatedAt: Instant

The date and time the membership was last updated.

Link copied to clipboard
@SerialName(value = "user")
val user: User?

The user associated with this membership. This is not always present.

Link copied to clipboard
@SerialName(value = "userId")
val userId: String

The ID of the user.