diff --git a/internal/backend/key.go b/internal/backend/key.go index f37a093..5d24684 100644 --- a/internal/backend/key.go +++ b/internal/backend/key.go @@ -1,10 +1,10 @@ package backend type ApiKey struct { - Perm map[string]bool - ID string - AppID string - Death int64 + Perm map[string]bool `json:"perm" bson:"perm"` + ID string `json:"id" bson:"_id" valkey:",key"` + AppID string `json:"appID" bson:"appID"` + Death int64 `json:"death" bson:"death"` } func (k ApiKey) GetID() string {