ServiceAccounts: Add Service Account Token last used at date (#51446)

* ServiceAccounts Add api key last used at

* ServiceAccounts: LastUpdateAt tests
This commit is contained in:
Jguer
2022-06-28 16:42:40 +02:00
committed by GitHub
parent daf0e3cb4e
commit 6d0261263c
11 changed files with 60 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ type ApiKey struct {
Role RoleType
Created time.Time
Updated time.Time
LastUsedAt *time.Time `xorm:"last_used_at"`
Expires *int64
ServiceAccountId *int64
}