channel 表添加 IP 白名单字段用于快照保存与展示

This commit is contained in:
2025-05-22 15:22:40 +08:00
parent 15ffccf554
commit 09a9cc573e
5 changed files with 18 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ type Channel struct {
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp without time zone;comment:删除时间" json:"deleted_at"` // 删除时间
EdgeHost string `gorm:"column:edge_host;type:character varying(255);comment:节点地址" json:"edge_host"` // 节点地址
EdgeID int32 `gorm:"column:edge_id;type:integer;comment:节点ID" json:"edge_id"` // 节点ID
Whitelists string `gorm:"column:whitelists;type:text;comment:IP白名单逗号分隔" json:"whitelists"` // IP白名单逗号分隔
}
// TableName Channel's table name