chore: reorder api package structure
This commit is contained in:
@@ -36,15 +36,13 @@ type Command struct {
|
||||
Timestamps
|
||||
}
|
||||
|
||||
type Key struct {
|
||||
type AccessKey struct {
|
||||
ID int `gorm:"primaryKey;not null;"`
|
||||
MetaName string
|
||||
KeyName string `gorm:"not null;"`
|
||||
// We don't store the key itself, we hash the key
|
||||
KeyHash string `gorm:"not null;"`
|
||||
// we're cooking without pepper
|
||||
KeySalt string `gorm:"not null;"`
|
||||
CreatedAt time.Time `gorm:"not null;"`
|
||||
Timestamps
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user