Files
OMS/app/ome/dbschema/batch_log.php
2025-12-28 23:13:25 +08:00

117 lines
2.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
$db['batch_log']=array (
'columns' =>
array (
'log_id' =>
array (
'type' => 'int(10)',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'createtime' =>
array (
'type' => 'time',
'label' => '发起同步时间',
'width' => 130,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
),
'op_id' =>
array (
'type' => 'table:account@pam',
'editable' => false,
'required' => true,
),
'op_name' =>
array (
'type' => 'varchar(30)',
'editable' => false,
),
'batch_number' =>
array (
'type' => 'number',
'required' => true,
'default' => 0,
'editable' => false,
'label' => '批量发货总数',
),
'fail_number' =>
array (
'type' => 'number',
'required' => true,
'default' => 0,
'editable' => false,
'label' => '批量发货失败总数',
),
'succ_number' =>
array (
'type' => 'number',
'default' => 0,
'editable' => false,
'label' => '批量成功总数',
),
'status' => array(
'type' => array(
0 => '等待中',
1 => '已处理',
2 => '处理中',
),
'label' => '状态',
'default' => '0',
),
'log_type' =>
array (
'type' => array(
'consign' => '发货',
'check' => '校验',
'combine' => '系统自动审单',
'ordertaking' => '手动获取订单',
'confirm_reship' => '退换货单',
'confirm_inventory' => '盘点确认',
'pre_select_branch' => '提前选仓',
),
'default' => 'consign',
'label' => '日志类型',
'editable' => false,
'filtertype' => 'yes',
'filterdefault' => true,
),
'log_text'=>
array(
'type' => 'longtext',
'label' => '参数',
'editable' => false,
),
'source' => array(
'type' => 'varchar(16)',
'comment' => '来源direct->默认task->定时任务, combineagain->再次合单, split->拆单',
'editable' => false,
'default' => 'direct'
),
'up_time' => [
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'width' => 120,
// 'in_list' => true,
]
),
'index' => array(
'idx_log_type' =>array('columns'=>array('log_type')),
'idx_status' =>array('columns'=>array('status')),
),
'comment' => '批量日志',
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);