aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/user_app.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structs/user_app.go')
-rw-r--r--modules/structs/user_app.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go
index 8401252bd6..15811ceb66 100644
--- a/modules/structs/user_app.go
+++ b/modules/structs/user_app.go
@@ -11,11 +11,13 @@ import (
// AccessToken represents an API access token.
// swagger:response AccessToken
type AccessToken struct {
- ID int64 `json:"id"`
- Name string `json:"name"`
- Token string `json:"sha1"`
- TokenLastEight string `json:"token_last_eight"`
- Scopes []string `json:"scopes"`
+ ID int64 `json:"id"`
+ Name string `json:"name"`
+ Token string `json:"sha1"`
+ TokenLastEight string `json:"token_last_eight"`
+ Scopes []string `json:"scopes"`
+ Created time.Time `json:"created_at"`
+ Updated time.Time `json:"last_used_at"`
}
// AccessTokenList represents a list of API access token.