From 90e3b585ff5010833d5068563f9a542b718edb36 Mon Sep 17 00:00:00 2001 From: harryzcy Date: Mon, 22 Aug 2022 02:24:30 -0400 Subject: [PATCH] Add scope field to access token --- models/auth/token.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/auth/token.go b/models/auth/token.go index 01654f2901..86e3830d71 100644 --- a/models/auth/token.go +++ b/models/auth/token.go @@ -59,6 +59,7 @@ type AccessToken struct { TokenHash string `xorm:"UNIQUE"` // sha256 of token TokenSalt string TokenLastEight string `xorm:"token_last_eight"` + Scope string CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"` UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`