feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// SysConfig 系统基础设置(key/value)。
|
||||
// 系统管理员「基础设置」页维护,保存即生效(无需重启);敏感信息(JWT secret、
|
||||
// 内部 Token、数据库密码)仍留在 etc/*.yaml,不进本表。
|
||||
type SysConfig struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (SysConfig) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{entsql.Annotation{Table: "sys_config"}, entsql.WithComments(true), schema.Comment("SysConfig 系统基础设置(key/value)。")}
|
||||
}
|
||||
|
||||
func (SysConfig) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.String("key").Unique().MaxLen(64).Comment("配置键,如 wms.base_url"),
|
||||
field.String("value").MaxLen(512).Comment("配置值"),
|
||||
field.String("remark").Optional().MaxLen(255).Comment("说明"),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user