add migrations for public_id column

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-07-10 19:23:14 +02:00
parent 4aa486fde8
commit aff723e3bb
5 changed files with 75 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ type Policy struct {
// ID of the policy'
ID string `gorm:"primaryKey"`
PublicID string
PublicID string `json:"-"`
// AccountID is a reference to Account that this object belongs
AccountID string `json:"-" gorm:"index"`