feat(site): save sync node ids

This commit is contained in:
Jacky 2024-10-25 18:10:45 +08:00
parent aa556767f2
commit 6c137e5229
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
21 changed files with 381 additions and 327 deletions

View file

@ -2,8 +2,9 @@ package model
type Site struct {
Model
Path string `json:"path"`
Path string `json:"path" gorm:"uniqueIndex"`
Advanced bool `json:"advanced"`
SiteCategoryID uint64 `json:"site_category_id"`
SiteCategory *SiteCategory `json:"site_category,omitempty"`
SyncNodeIDs []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
}