Refactor character to types
This commit is contained in:
14
types/character.go
Normal file
14
types/character.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package types
|
||||
|
||||
import "time"
|
||||
|
||||
// Character represents a character with authentication info
|
||||
type Character struct {
|
||||
ID int64 `gorm:"primaryKey"` // EVE character ID from JWT token
|
||||
CharacterName string `gorm:"uniqueIndex"`
|
||||
AccessToken string
|
||||
RefreshToken string
|
||||
ExpiresAt time.Time
|
||||
UpdatedAt time.Time
|
||||
CreatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user