feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图
This commit is contained in:
@@ -58,6 +58,44 @@ var (
|
||||
},
|
||||
},
|
||||
}
|
||||
// BackupRecordColumns holds the columns for the "backup_record" table.
|
||||
BackupRecordColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
{Name: "executed_at", Type: field.TypeInt64, Comment: "备份执行时刻(unix秒)"},
|
||||
{Name: "range_start", Type: field.TypeInt64, Comment: "备份范围开始(unix秒,含)"},
|
||||
{Name: "range_end", Type: field.TypeInt64, Comment: "备份范围结束(unix秒,含)"},
|
||||
{Name: "backup_path", Type: field.TypeString, Comment: "备份包(zip)在目标盘的完整路径"},
|
||||
{Name: "total_size", Type: field.TypeInt64, Comment: "备份包总字节数", Default: 0},
|
||||
{Name: "items_json", Type: field.TypeString, Comment: "各数据项及大小(JSON数组:[{name,rows,bytes}])"},
|
||||
{Name: "status", Type: field.TypeString, Size: 16, Comment: "success/failed/partial", Default: "success"},
|
||||
{Name: "operator", Type: field.TypeString, Size: 64, Comment: "操作人", Default: ""},
|
||||
{Name: "checksum", Type: field.TypeString, Size: 64, Comment: "备份包校验和(sha256,基于 manifest)", Default: ""},
|
||||
{Name: "scope", Type: field.TypeString, Size: 8, Comment: "写入方 mes/wms", Default: "wms"},
|
||||
}
|
||||
// BackupRecordTable holds the schema information for the "backup_record" table.
|
||||
BackupRecordTable = &schema.Table{
|
||||
Name: "backup_record",
|
||||
Comment: "BackupRecord 备份记录:备份到外部存储写一条,清理前校验时间窗覆盖",
|
||||
Columns: BackupRecordColumns,
|
||||
PrimaryKey: []*schema.Column{BackupRecordColumns[0]},
|
||||
Indexes: []*schema.Index{
|
||||
{
|
||||
Name: "backuprecord_range_start",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{BackupRecordColumns[2]},
|
||||
},
|
||||
{
|
||||
Name: "backuprecord_range_end",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{BackupRecordColumns[3]},
|
||||
},
|
||||
{
|
||||
Name: "backuprecord_status",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{BackupRecordColumns[7]},
|
||||
},
|
||||
},
|
||||
}
|
||||
// EventLogColumns holds the columns for the "event_log" table.
|
||||
EventLogColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
@@ -757,6 +795,20 @@ var (
|
||||
},
|
||||
},
|
||||
}
|
||||
// SysConfigColumns holds the columns for the "sys_config" table.
|
||||
SysConfigColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
{Name: "key", Type: field.TypeString, Unique: true, Size: 64, Comment: "配置键,如 wms.base_url"},
|
||||
{Name: "value", Type: field.TypeString, Size: 512, Comment: "配置值"},
|
||||
{Name: "remark", Type: field.TypeString, Nullable: true, Size: 255, Comment: "说明"},
|
||||
}
|
||||
// SysConfigTable holds the schema information for the "sys_config" table.
|
||||
SysConfigTable = &schema.Table{
|
||||
Name: "sys_config",
|
||||
Comment: "SysConfig 系统基础设置(key/value)。",
|
||||
Columns: SysConfigColumns,
|
||||
PrimaryKey: []*schema.Column{SysConfigColumns[0]},
|
||||
}
|
||||
// UsersColumns holds the columns for the "users" table.
|
||||
UsersColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
@@ -813,6 +865,7 @@ var (
|
||||
// Tables holds all the tables in the schema.
|
||||
Tables = []*schema.Table{
|
||||
AttachmentsTable,
|
||||
BackupRecordTable,
|
||||
EventLogTable,
|
||||
InboundDetailsTable,
|
||||
InboundOrdersTable,
|
||||
@@ -830,6 +883,7 @@ var (
|
||||
SemiFinishedsTable,
|
||||
StocktakeItemsTable,
|
||||
StocktakeOrdersTable,
|
||||
SysConfigTable,
|
||||
UsersTable,
|
||||
ZonesTable,
|
||||
}
|
||||
@@ -839,6 +893,9 @@ func init() {
|
||||
AttachmentsTable.Annotation = &entsql.Annotation{
|
||||
Table: "attachments",
|
||||
}
|
||||
BackupRecordTable.Annotation = &entsql.Annotation{
|
||||
Table: "backup_record",
|
||||
}
|
||||
EventLogTable.Annotation = &entsql.Annotation{
|
||||
Table: "event_log",
|
||||
}
|
||||
@@ -890,6 +947,9 @@ func init() {
|
||||
StocktakeOrdersTable.Annotation = &entsql.Annotation{
|
||||
Table: "stocktake_orders",
|
||||
}
|
||||
SysConfigTable.Annotation = &entsql.Annotation{
|
||||
Table: "sys_config",
|
||||
}
|
||||
UsersTable.Annotation = &entsql.Annotation{
|
||||
Table: "users",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user