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

132 lines
2.8 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['stock_change_log']=array (
'columns' =>
array (
'log_id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'log_bn' =>
array (
'type' => 'varchar(12)',
'required' => true,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'label' => '日志编号',
),
'branch_id' =>
array (
'type' => 'table:branch@ome',
'required' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'width' => 100,
'label' => '仓库编号',
),
'product_id' =>
array (
'type' => 'table:products@ome',
'required' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'width' => 100,
'label' => '商品ID',
),
'bn' =>
array (
'type' => 'varchar(32)',
'required' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'width' => 100,
'label' => '商品货号',
),
'product_name' =>
array(
'type' => 'varchar(255)',
'editable' => false,
),
'create_time' =>
array (
'type' => 'time',
'label' => '创建时间',
'width' => 110,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'last_modified' =>
array (
'label' => '最后更新时间',
'type' => 'last_modify',
'width' => 110,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'store' =>
array (
'label' => '变更数量',
'type' => 'number',
'width' => 110,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'type' =>
array (
'type' => 'varchar(50)',
'editable' => false,
'default' => 'sell',
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
'label' => '变更类型',
),
'memo' =>
array (
'type' => 'text',
'editable' => false,
),
),
'index' =>
array (
'ind_log_bn' =>
array (
'columns' =>
array (
0 => 'log_bn',
),
),
'ind_type' =>
array (
'columns' =>
array (
0 => 'type',
),
),
),
'comment' => '库存变更日志',
'engine' => 'innodb',
'version' => '$Rev: $',
);