mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-25 18:19:04 +01:00
refactor: migrate API key functionality to single apikey module
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package model
|
||||
|
||||
import datatype "github.com/pocket-id/pocket-id/backend/internal/model/types"
|
||||
|
||||
type ApiKey struct {
|
||||
Base
|
||||
|
||||
Name string `sortable:"true"`
|
||||
Key string
|
||||
Description *string
|
||||
ExpiresAt datatype.DateTime `sortable:"true"`
|
||||
LastUsedAt *datatype.DateTime `sortable:"true"`
|
||||
ExpirationEmailSent bool
|
||||
|
||||
UserID string
|
||||
User User
|
||||
}
|
||||
Reference in New Issue
Block a user