mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Add Users Last Seen At (#4192)
This commit is contained in:
+6
-4
@@ -43,10 +43,12 @@ type UsersRequest struct {
|
||||
|
||||
// User represents a user in Coder.
|
||||
type User struct {
|
||||
ID uuid.UUID `json:"id" validate:"required" table:"id"`
|
||||
Username string `json:"username" validate:"required" table:"username"`
|
||||
Email string `json:"email" validate:"required" table:"email"`
|
||||
CreatedAt time.Time `json:"created_at" validate:"required" table:"created at"`
|
||||
ID uuid.UUID `json:"id" validate:"required" table:"id"`
|
||||
Username string `json:"username" validate:"required" table:"username"`
|
||||
Email string `json:"email" validate:"required" table:"email"`
|
||||
CreatedAt time.Time `json:"created_at" validate:"required" table:"created at"`
|
||||
LastSeenAt time.Time `json:"last_seen_at"`
|
||||
|
||||
Status UserStatus `json:"status" table:"status"`
|
||||
OrganizationIDs []uuid.UUID `json:"organization_ids"`
|
||||
Roles []Role `json:"roles"`
|
||||
|
||||
Reference in New Issue
Block a user