mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
90 lines
2.0 KiB
PHP
90 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 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.
|
|
*/
|
|
|
|
/**
|
|
* 特性配置数据结构
|
|
*
|
|
* @author kamisama.xia@gmail.com
|
|
* @version 0.1
|
|
*/
|
|
|
|
$db['feature']=array (
|
|
'columns' =>
|
|
array (
|
|
'ft_id' =>
|
|
array (
|
|
'type' => 'int unsigned',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'extra' => 'auto_increment',
|
|
'width' => 110,
|
|
'hidden' => true,
|
|
'editable' => false,
|
|
),
|
|
'ft_name' =>
|
|
array (
|
|
'type' => 'varchar(200)',
|
|
'required' => true,
|
|
'editable' => false,
|
|
'is_title' => true,
|
|
'searchtype' => 'has',
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'width' => 200,
|
|
'label' => '特性名称',
|
|
),
|
|
'type' =>
|
|
array (
|
|
'required' => true,
|
|
'type' => 'varchar(50)',
|
|
'editable' => false,
|
|
'label' => '事件节点',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'width' => 160,
|
|
),
|
|
'config' =>
|
|
array (
|
|
'type' => 'serialize',
|
|
'editable' => false,
|
|
),
|
|
'disabled' =>
|
|
array (
|
|
'type' => 'bool',
|
|
'required' => true,
|
|
'editable' => false,
|
|
'default' => 'false',
|
|
),
|
|
),
|
|
'index' =>
|
|
array (
|
|
'ind_ft_name' =>
|
|
array (
|
|
'columns' =>
|
|
array (
|
|
0 => 'ft_name',
|
|
),
|
|
'prefix' => 'unique',
|
|
),
|
|
),
|
|
'comment' => '特性配置表',
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $',
|
|
);
|