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

136 lines
4.4 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['inventory_snapshot'] = [
'columns' => [
'id' => [
'type' => 'int unsigned',
'label' => 'ID',
'comment' => 'ID',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
],
'stock_date' => [
'type' => 'DATE',
'required' => true,
'label' => '记录日期',
'default_in_list' => true,
'in_list' => true,
'order' => 10,
'filtertype' => 'date',
'filterdefault' => true,
],
'warehouse_code' => [
'type' => 'varchar(50)',
'label' => 'WMS仓库编号',
'required' => true,
'in_list' => true,
'default_in_list' => true,
'order' => 20,
'filtertype' => 'normal',
'filterdefault' => true,
'searchtype' => 'nequal',
],
'wms_id' => [
'type' => 'int unsigned',
'label' => '渠道名称',
'required' => true,
],
'wms_bn' => [
'type' => 'varchar(20)',
'label' => '渠道编码',
'required' => true,
'searchtype' => 'nequal',
'in_list' => true,
'default_in_list' => true,
'order' => 15,
'filtertype' => 'normal',
'filterdefault' => true,
],
'branch_bn' => [
'type' => 'varchar(255)',
'label' => '仓库编号',
'in_list' => true,
'default_in_list' => true,
'order' => 30,
],
'branch_id' => [
'type' => 'varchar(255)',
'label' => '仓库ID',
],
'storage_code' => array(
'type' => 'varchar(32)',
'in_list' => true,
'default_in_list' => true,
'label' => '库位',
'searchtype' => 'nequal',
'filtertype' => 'normal',
'filterdefault' => true,
),
'wms_stock' => [
'type' => 'int',
'label' => 'WMS库存',
'default' => 0,
'in_list' => true,
'default_in_list' => true,
'order' => 40,
],
'total_count' => [
'type' => 'mediumint unsigned',
'label' => '总行数',
'default' => 0,
'in_list' => true,
'order' => 70,
],
'get_count' => [
'type' => 'mediumint unsigned',
'default' => 0,
'label' => '获取行数',
'in_list' => true,
'order' => 80,
],
'status' => [
'type' => [
'1' => '处理中', '2' => '处理完成', '3' => '处理失败',
],
'label' => '单据状态',
'default' => '1',
'in_list' => true,
'order' => 90,
],
'errmsg' => [
'type' => 'varchar(255)',
'label' => '错误信息',
'in_list' => true,
'order' => 90,
],
'at_time' => [
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default' => 'CURRENT_TIMESTAMP',
'width' => 120,
'in_list' => true,
],
'up_time' => [
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'width' => 120,
'in_list' => true,
],
],
'index' => [
'ind_stock_date' => ['columns' => ['stock_date', 'warehouse_code', 'wms_id'], 'prefix' => 'unique'],
'ind_status' => ['columns' => ['status']],
],
'comment' => 'WMS库存快照',
'engine' => 'innodb',
'version' => '$Rev: $',
];