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

112 lines
3.2 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['store_freeze_log'] = array (
'columns'=>array(
'log_id'=>array(
'type' => 'int unsigned',
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'product_id'=>array(
'type' => 'table:products@ome',
'required' => true,
'default' => 0,
'editable' => false,
'in_list' => true,
'label'=>'货品名称',
'default_in_list' => true,
'searchtype'=>'nequal',
'filtertype' => 'normal',
'filterdefault' => true,
),
'num'=>array(
'type' => 'int',
'required' => true,
'default' => 0,
'editable' => false,
'label'=>'变化数量',
'comment'=>'变化数量',
'in_list' => true,
'default_in_list' => true,
),
'shop_id'=>array(
'type' => 'table:shop@ome',
'editable' => false,
'label'=>'店铺名称',
'in_list' => true,
'default_in_list' => true,
),
'branch_id'=>array(
'type' => 'table:branch@ome',
'editable' => false,
'in_list' => true,
'label'=>'仓库名称',
'default_in_list' => true,
),
'original_id'=>array(
'type'=>'int unsigned',
'editable' => false,
'comment'=>'原始单据ID',
'label'=>'原始单据ID',
),
'original_type'=>array(
'type'=>'tinyint',
'editable' => false,
'comment'=>'原始单据类型',
'label'=>'原始单据类型',
),
'operator'=>array(
'type'=>'tinyint',
'required' => true,
'editable' => false,
'label'=>'操作符',
'comment'=>'操作符,0减少1增加',
),
'status'=>array(
'type' => array(
'succ' => '成功',
'fail' => '失败'
),
'default' => 'succ',
'editable' => false,
'label'=>'状态',
'in_list' => true,
'default_in_list' => true,
),
'operate_time' => array (
'type' => 'time',
'editable' => false,
'label'=>'操作时间',
'comment'=>'操作时间',
'in_list' => true,
'default_in_list' => true,
),
'memo' =>array(
'type' => 'text',
'editable' => false,
'label'=>'备注',
'comment'=>'备注',
),
'addon' =>array(
'type' => 'text',
'editable' => false,
'comment'=>'附加数据',
),
),
'index'=>array(
'ind_original_id'=>array(
'columns'=>array(
'0'=>'original_id',
),
),
),
'comment' => '出入库日志表',
'engine' => 'innodb',
'version' => '$Rev: $',
);