feat(env_group): migrate site_category to env_group

This commit is contained in:
Jacky 2025-04-05 02:32:40 +00:00
parent de1860718e
commit a379211e3c
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
66 changed files with 4837 additions and 4251 deletions

View file

@ -2,7 +2,9 @@ package model
type Stream struct {
Model
Path string `json:"path"`
Advanced bool `json:"advanced"`
SyncNodeIDs []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
Path string `json:"path" gorm:"uniqueIndex"`
Advanced bool `json:"advanced"`
EnvGroupID uint64 `json:"env_group_id"`
EnvGroup *EnvGroup `json:"env_group,omitempty"`
SyncNodeIDs []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
}