mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
93 lines
2.9 KiB
PHP
93 lines
2.9 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
$db['pagecols_setting'] = array(
|
||
'columns' => array(
|
||
'id' => array(
|
||
'type' => 'int unsigned',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'extra' => 'auto_increment',
|
||
'label' => 'ID',
|
||
'width' => 110,
|
||
'hidden' => true,
|
||
'editable' => false,
|
||
),
|
||
'at_time' => array(
|
||
'type' => 'TIMESTAMP',
|
||
'label' => '创建时间',
|
||
'default' => 'CURRENT_TIMESTAMP',
|
||
'width' => 130,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'order' => 330,
|
||
'filtertype' => 'normal',
|
||
),
|
||
'up_time' => array(
|
||
'type' => 'TIMESTAMP',
|
||
'label' => '更新时间',
|
||
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
|
||
'width' => 130,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'order' => 340,
|
||
'filtertype' => 'normal',
|
||
),
|
||
'tbl_name' => array(
|
||
'type' => 'varchar(100)',
|
||
'required' => true,
|
||
'label' => '表名',
|
||
'is_title' => true,
|
||
'width' => 150,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
),
|
||
'is_required' => array(
|
||
'type' => array(
|
||
'0' => '否',
|
||
'1' => '是',
|
||
),
|
||
'label' => '是否必填',
|
||
'width' => 80,
|
||
'default' => '0',
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
),
|
||
'default_value' => array(
|
||
'type' => 'varchar(255)',
|
||
'label' => '默认值',
|
||
'width' => 150,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'col_key' => array(
|
||
'type' => 'varchar(50)',
|
||
'required' => true,
|
||
'label' => '字段键',
|
||
'width' => 150,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
),
|
||
),
|
||
'index' => array(
|
||
'ind_tbl_name' => array('columns' => array('tbl_name')),
|
||
'ind_col_key' => array('columns' => array('col_key')),
|
||
'ind_is_required' => array('columns' => array('is_required')),
|
||
'ind_at_time' => array('columns' => array('at_time')),
|
||
'ind_up_time' => array('columns' => array('up_time')),
|
||
),
|
||
'comment' => '页面字段配置表',
|
||
'charset' => 'utf8mb4',
|
||
'engine' => 'innodb',
|
||
);
|