ome_product_serial_history
唯一码历史记录表
所属应用: ome
表结构
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| history_id | history_id | int(10) unsigned | Y | Y | |
| branch_id | 仓库名称 | mediumint(8) unsigned | N | N | |
| bn | 基础物料编码 | varchar(30) | N | N | |
| product_name | 基础物料名称 | varchar(200) | N | N | |
| act_type | 操作类型 | tinyint(4) | Y | 0 | N |
| act_time | 操作时间 | int(10) unsigned | N | N | |
| act_owner | 操作人 | mediumint(8) unsigned | Y | N | |
| bill_type | 单据类型 | tinyint(4) | Y | 0 | N |
| bill_id | 单据id | int(10) unsigned | N | 0 | N |
| bill_no | 单据编号 | varchar(30) | Y | N | |
| serial_number | 唯一码 | varchar(30) | Y | N | |
| imei_number | IMEI码 | varchar(512) | N | N | |
| sync | 回写状态 none:未回写;run:运行中;fail:回写失败;succ:回写成功; | enum('none','run','fail','succ') | N | none | N |
索引
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | history_id | Y | |
| ind_bill_id | bill_id | N | |
| ind_bill_no | bill_no | N | |
| ind_sync | sync | N | |
| idx_c_serial_number | serial_number | N | |
| idx_c_branch_id | branch_id | N | |
| idx_c_act_owner | act_owner | N |
