mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
feat: add master keys back
This commit is contained in:
10
internal/db/models/master-key.go
Normal file
10
internal/db/models/master-key.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type MasterKey struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primaryKey" json:"id"`
|
||||
Key string `gorm:"not null"`
|
||||
IsActive bool `gorm:"default:true"`
|
||||
Timestamped
|
||||
}
|
||||
Reference in New Issue
Block a user