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

111 lines
3.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['bbu'] = array(
'columns' => array(
'bbu_id' => array(
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => '自增ID',
),
'bbu_code' => array(
'type' => 'varchar(32)',
'required' => true,
'label' => '品牌BU编码',
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'nequal',
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 10,
),
'bbu_name' => array(
'type' => 'varchar(50)',
'label' => '品牌BU名称',
'editable' => false,
'is_title' => true,
'in_list' => true,
'default_in_list' => true,
'order' => 20,
),
'status' => array(
'type' => "enum('active', 'close')",
'label' => '状态',
'default' => 'active',
'in_list' => false,
'default_in_list' => false,
'editable' => false,
'order' => 30,
),
'op_name' => array(
'type' => 'varchar(32)',
'editable' => false,
'label' => '创建者', // 取账号名
'width' => 90,
'in_list' => true,
'default_in_list' => true,
'order' => 60,
),
'cos_id' => array(
'type' => 'table:cos@organization',
'label' => '组织架构ID',
'editable' => false,
),
'at_time' => array(
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default' => 'CURRENT_TIMESTAMP',
'width' => 150,
'in_list' => true,
'default_in_list' => true,
'order' => 40,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'width' => 150,
'in_list' => true,
'default_in_list' => true,
'order' => 50,
),
),
'index' => array(
'ind_bbu_code' => array(
'columns' => array(
0 => 'bbu_code',
),
'prefix' => 'unique',
),
'ind_cos_id' => array(
'columns' => array(
0 => 'cos_id',
),
),
'ind_status' => array(
'columns' => array(
0 => 'status',
),
),
),
'comment' => '销售团队表',
'engine' => 'innodb',
'version' => '$Rev: $',
);