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

122 lines
2.7 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['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: $',
);