mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat(site): save sync node ids
This commit is contained in:
parent
aa556767f2
commit
6c137e5229
21 changed files with 381 additions and 327 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue