mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
99 lines
3.1 KiB
PHP
99 lines
3.1 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['server'] = array(
|
|
'columns' => array(
|
|
'server_id' => array(
|
|
'type' => 'number',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'extra' => 'auto_increment',
|
|
'editable' => false,
|
|
),
|
|
'server_bn' => array(
|
|
'type' => 'varchar(20)',
|
|
'required' => true,
|
|
'label' => '服务端编码',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
'name' => array(
|
|
'type' => 'varchar(255)',
|
|
'required' => true,
|
|
'label' => '服务端名称',
|
|
'editable' => false,
|
|
'searchtype' => 'has',
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'is_title' => true,
|
|
'width' => 200,
|
|
),
|
|
'type' => array(
|
|
'required' => false,
|
|
'label' => '类型',
|
|
'type' => 'varchar(10)',
|
|
'default' => 'webpos',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
|
|
'node_id' => array(
|
|
'type' => 'varchar(32)',
|
|
'editable' => false,
|
|
'label' => '节点ID',
|
|
'editable' => false,
|
|
'width' => '120',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
'node_type' => array(
|
|
'type' => 'varchar(32)',
|
|
'label' => '节点类型',
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
),
|
|
'config' => array(
|
|
'type' => 'longtext',
|
|
'label' => '服务端配置参数',
|
|
),
|
|
),
|
|
'index' => array(
|
|
'ind_server_bn' => array(
|
|
'columns' => array(
|
|
0 => 'server_bn',
|
|
),
|
|
'prefix' => 'unique',
|
|
),
|
|
'ind_type' => array(
|
|
'columns' => array(
|
|
0 => 'type',
|
|
),
|
|
),
|
|
'ind_node_id' => array(
|
|
'columns' => array(
|
|
0 => 'node_id',
|
|
),
|
|
'prefix' => 'unique',
|
|
),
|
|
),
|
|
'comment' => 'webpos服务端信息表',
|
|
'engine' => 'innodb',
|
|
);
|