mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
152 lines
3.5 KiB
PHP
152 lines
3.5 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['goods_cat']=array (
|
||
'columns' =>
|
||
array (
|
||
'cat_id' =>
|
||
array (
|
||
'type' => 'number',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'extra' => 'auto_increment',
|
||
'label' => '分类ID',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'parent_id' =>
|
||
array (
|
||
'type' => 'number',
|
||
'label' => '分类ID',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'parent_id'=>true,
|
||
),
|
||
'cat_path' =>
|
||
array (
|
||
'type' => 'varchar(100)',
|
||
'default' => ',',
|
||
'label' => '分类路径(从根至本结点的路径,逗号分隔,首部有逗号)',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'is_leaf' =>
|
||
array (
|
||
'type' => 'bool',
|
||
'required' => true,
|
||
'default' => 'false',
|
||
'label' => '是否叶子结点(true:是;false:否)',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'type_id' =>
|
||
array (
|
||
'type' => 'mediumint',
|
||
'label' => '类型序号',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'cat_name' =>
|
||
array (
|
||
'type' => 'varchar(100)',
|
||
'required' => true,
|
||
'is_title' => true,
|
||
'default' => '',
|
||
'label' => '分类名称',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'disabled' =>
|
||
array (
|
||
'type' => 'bool',
|
||
'default' => 'false',
|
||
'required' => true,
|
||
'label' => '是否屏蔽(true:是;false:否)',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'p_order' =>
|
||
array (
|
||
'type' => 'number',
|
||
'label' => '排序',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'goods_count' =>
|
||
array (
|
||
'type' => 'number',
|
||
'label' => '商品数',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'tabs' =>
|
||
array (
|
||
'type' => 'longtext',
|
||
'editable' => false,
|
||
),
|
||
'finder' =>
|
||
array (
|
||
'type' => 'longtext',
|
||
'label' => '渐进式筛选容器',
|
||
'width' => 110,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
),
|
||
'addon' =>
|
||
array (
|
||
'type' => 'longtext',
|
||
'editable' => false,
|
||
),
|
||
'child_count' =>
|
||
array (
|
||
'type' => 'number',
|
||
'default' => 0,
|
||
'required' => true,
|
||
'editable' => false,
|
||
),
|
||
),
|
||
'comment' => '类别属性值有限表',
|
||
'index' =>
|
||
array (
|
||
'ind_cat_path' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'cat_path',
|
||
),
|
||
),
|
||
'ind_disabled' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'disabled',
|
||
),
|
||
),
|
||
),
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: 41329 $',
|
||
); |