chore: reorder api package structure

This commit is contained in:
DaanSelen
2026-04-23 15:43:39 +02:00
parent ea2a1730a4
commit 0556bc4932
6 changed files with 56 additions and 39 deletions
+1 -3
View File
@@ -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
}