add store support to filter by public id

This commit is contained in:
pascal
2026-08-14 12:47:22 +02:00
parent 85dd335836
commit 987a1dabfd
7 changed files with 197 additions and 3 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ type Route struct {
ID ID `gorm:"primaryKey"`
// AccountID is a reference to Account that this object belongs
AccountID string `gorm:"index"`
PublicID string `json:"-"`
PublicID string `json:"-" gorm:"index"`
// Network and Domains are mutually exclusive
Network netip.Prefix `gorm:"serializer:json"`
Domains domain.List `gorm:"serializer:json"`