Files
OMS/app/ome/dbschema/stock_change_log.php
2026-01-04 19:08:31 +08:00

143 lines
3.3 KiB
PHP

<?php
/**
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
$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: $',
);