use gorm cache

This commit is contained in:
Pascal Fischer
2025-10-13 16:29:04 +02:00
parent 0d2e67983a
commit f0e8cd578d
15 changed files with 498 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ type Peer struct {
// ID is an internal ID of the peer
ID string `gorm:"primaryKey"`
// AccountID is a reference to Account that this object belongs
AccountID string `json:"-" gorm:"index"`
AccountID string `gorm:"index"`
// WireGuard public key
Key string `gorm:"index"`
// IP address of the Peer