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

105 lines
2.9 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.
*/
/**
* 客户分类数据结构
*
* @author wangbiao@shopex.cn
* @version 2025.06.11
*/
$db['customer_classify'] = array(
'columns' => array(
'class_id' => array(
'pkey' => 'true',
'type' => 'int unsigned',
'extra' => 'auto_increment',
'label' => '主键ID',
'required' => true,
'order' => 1,
),
'class_bn' => array(
'type' => 'varchar(32)',
'label' => '客户分类编码',
'editable' => true,
'searchtype' => 'nequal',
'filtertype' => 'textarea',
'filterdefault' => 'true',
'in_list' => true,
'default_in_list' => true,
'width' => 180,
'order' => 10,
),
'class_name' => array(
'type' => 'varchar(50)',
'is_title' => true,
'label' => '客户分类名称',
'width' => 260,
'searchtype' => 'has',
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'order' => 12,
),
'disabled' => array (
'type' => 'bool',
'default' => 'false',
'label' => '是否屏蔽',
'width' => 110,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'order' => 90,
),
'at_time' => array(
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default' => 'CURRENT_TIMESTAMP',
'filtertype' => 'time',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'order' => 98,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'in_list' => true,
'default_in_list' => true,
'order' => 99,
),
),
'index' => array(
'uni_class_bn' => array(
'columns' => array(
0 => 'class_bn',
),
'prefix' => 'unique',
),
'ind_class_name' => array(
'columns' => array(
0 => 'class_name',
),
),
'ind_disabled' => array(
'columns' => array(
0 => 'disabled',
),
),
'ind_at_time' => array(
'columns' => array(
0 => 'at_time',
),
),
),
'engine' => 'innodb',
'version' => '$Rev: $',
'comment' => '销售客户分类表',
);