mirror of
https://github.com/hanzo-fi/auth.git
synced 2026-10-30 20:33:21 +00:00
20 lines
390 B
Go
20 lines
390 B
Go
package auth
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type AccessToken struct {
|
|
bun.BaseModel `bun:"table:access_tokens"`
|
|
|
|
ID string `bun:",pk"`
|
|
ApplicationID string
|
|
UserID string
|
|
Audience Array[string] `bun:"type:text"`
|
|
Expiration time.Time
|
|
Scopes Array[string] `bun:"type:text"`
|
|
RefreshTokenID string `json:"refreshTokenID"`
|
|
}
|