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

196 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['foreign_sku']=array (
'columns' =>
array (
'fsid' =>
array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
),
'inner_sku' =>
array (
'type' => 'varchar(255)',
'required' => true,
'label' => '基础物料编码',
'comment'=>'内部sku',
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'searchtype' => 'nequal',
'filtertype' => 'textarea',
'filterdefault' => true,
'order' => 10,
),
'inner_product_id' =>
array (
'type' => 'int unsigned',
'required' => true,
'label' => '货品ID',
'width' => 110,
'editable' => false,
'order' => 11,
),
'wms_id' =>
array (
'type' => 'varchar(32)',
'required' => true,
'label' => '来源WMS',
'editable' => false,
'order' => 20,
),
'outer_sku' =>
array (
'type' => 'varchar(50)',
'label' => 'wms物料编码',
'in_list' => true,
'default_in_list' => true,
'order' => 21,
),
'oms_sku' =>
array (
'type' => 'varchar(50)',
'label' => '外部oms物料编码',
'in_list' => true,
'default_in_list' => true,
'order' => 30,
),
'price' =>
array (
'type' => 'money',
'label' => '单价',
'in_list' => true,
'default_in_list' => true,
'order' => 31,
),
'new_tag' =>
array (
'type' =>
array (
0 => '新品',
1 => '非新品',
),
'label' => '新品标识',
'default' => '0',
'required' => true,
'in_list' => true,
'default_in_list' => false,
'order' => 40,
),
'inner_type' => array (
'type' => array(
'0' => '普通商品',
'1' => '捆绑商品',
'2'=>'礼盒',
),
'required' => true,
'default' => '0',
'label' => '商品类型',
'searchtype' => 'has',
'width' => 110,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => false,
'order' => 50,
),
'sync_status' =>
array (
'type' =>
array (
0 => '未同步',
1 => '同步失败',
2 => '同步中',
3 => '同步成功',
4 => '同步后编辑',
),
'default' => '0',
'required' => true,
'label' => '同步状态',
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'has',
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 90,
),
'sync_combination' =>
array (
'type' =>
array (
0 => '未同步',
1 => '同步失败',
2 => '同步成功',
3 => '无需同步',
),
'default' => '0',
'required' => true,
'label' => '组合同步状态',
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'has',
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 90,
),
),
'index' =>
array (
'ind_product_wms_out' =>
array (
'columns' =>
array (
0 => 'inner_sku',
1 => 'wms_id',
),
'prefix' => 'unique',
),
'ind_inner_product_id' =>
array (
'columns' =>
array (
0 => 'inner_product_id',
),
),
'ind_wms_id' =>
array (
'columns' =>
array (
0 => 'wms_id',
),
),
'ind_sync_status' =>
array (
'columns' =>
array (
0 => 'sync_status',
),
),
'ind_sync_combination' =>
array (
'columns' =>
array (
0 => 'sync_combination',
),
),
'ind_inner_type' =>
array (
'columns' =>
array (
0 => 'inner_type',
),
),
),
'comment' => '外部sku关联表',
'engine' => 'innodb',
'version' => '$Rev: 40654 $',
);