route/database/token.go

15 lines
284 B
Go

package database
import "time"
// Token is a single authorization token.
type Token struct {
ID string `storm:"id"`
Body string `storm:"unique"`
Owner string `storm:"index"`
Scopes []string
CreatedAt time.Time `json:"created_at"`
Active bool `json:"active"`
}