enhance(site): remove uniqueIndex constraint #673

This commit is contained in:
Jacky 2024-11-04 10:48:09 +08:00
parent 2142f2e1cc
commit b552973998
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

@ -2,7 +2,7 @@ package model
type Site struct {
Model
Path string `json:"path" gorm:"uniqueIndex"`
Path string `json:"path"`
Advanced bool `json:"advanced"`
SiteCategoryID uint64 `json:"site_category_id"`
SiteCategory *SiteCategory `json:"site_category,omitempty"`