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

111 lines
2.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['rule_obj']=array (
'columns' =>
array (
'obj_id' =>
array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'editable' => false,
'extra' => 'auto_increment',
),
'rule_id' =>
array (
'type' => 'table:rule@logistics',
'required' => true,
'default' => 0,
//'pkey' => true,
'editable' => false,
'comment' => '规则ID',
),
'region_grade' =>
array (
'type' => 'number',
'editable' => false,
'comment' => '区域级别',
),
'region_id' =>
array (
'type' => 'number',
'editable' => false,
'comment' => '区域ID',
//'pkey' => true,
),
'region_name' =>
array (
'type' => 'varchar(50)',
'label'=>'区域',
'width'=>100,
'default_in_list'=>true,
'in_list'=>true,
'editable' => false,
),
'rule_type'=>array (
'type' =>
array (
'default' => '默认',
'other' => '排它',
),
'label' => '规则类型',
'in_list' => true,
'default_in_list' => true,
'editable' => false,
),
'set_type'=>array (
'type' =>
array (
'shop' => '指定店铺',
'weight' => '重量区间',
'noweight' => '任意重量',
),
'label' => '设置类型',
'in_list' => true,
'default_in_list' => true,
'editable' => false,
),
'branch_id' =>
array (
'type' => 'table:branch@ome',
'editable' => false,
'label' => '仓库',
'width' => 110,
),
'rule_group_hash' =>
array (
'type' => 'char(32)',
'label' => '分组识别号',
'editable' => false,
),
),
'index' =>array (
'ind_region_id' =>
array (
'columns' =>
array (
0 => 'region_id',
),
),
'ind_set_type' =>
array (
'columns' =>
array (
0 => 'set_type',
),
),
),
'comment' => '规则对象',
'engine' => 'innodb',
'version' => '$Rev: $',
);