mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
110 lines
3.3 KiB
PHP
110 lines
3.3 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
$db['interfacefield_mapper'] = array(
|
||
'columns' => array(
|
||
'id' => array(
|
||
'type' => 'int unsigned',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'extra' => 'auto_increment',
|
||
'label' => 'ID',
|
||
'width' => 110,
|
||
'hidden' => true,
|
||
'editable' => false,
|
||
'comment' => '自增主键',
|
||
),
|
||
'channel_id' => array(
|
||
'type' => 'varchar(32)',
|
||
'required' => true,
|
||
'default' => '',
|
||
'label' => '渠道ID',
|
||
'width' => 150,
|
||
'editable' => true,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'comment' => '渠道ID',
|
||
),
|
||
'channel_type' => array(
|
||
'type' => 'varchar(32)',
|
||
'required' => true,
|
||
'default' => '',
|
||
'label' => '渠道类型',
|
||
'width' => 120,
|
||
'editable' => true,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'comment' => '渠道类型',
|
||
),
|
||
'scene' => array(
|
||
'type' => 'varchar(32)',
|
||
'default' => '',
|
||
'label' => '场景',
|
||
'width' => 120,
|
||
'editable' => true,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'comment' => '场景',
|
||
),
|
||
'content' => array(
|
||
'type' => 'longtext',
|
||
'default' => '',
|
||
'label' => '字段内容',
|
||
'width' => 300,
|
||
'editable' => true,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
'comment' => '字段内容',
|
||
),
|
||
'at_time' => array(
|
||
'type' => 'TIMESTAMP',
|
||
'default' => 'CURRENT_TIMESTAMP',
|
||
'label' => '创建时间',
|
||
'width' => 130,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'order' => 330,
|
||
'filtertype' => 'normal',
|
||
'comment' => '创建时间',
|
||
),
|
||
'up_time' => array(
|
||
'type' => 'TIMESTAMP',
|
||
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
|
||
'label' => '更新时间',
|
||
'width' => 130,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'order' => 340,
|
||
'filtertype' => 'normal',
|
||
'comment' => '更新时间',
|
||
),
|
||
),
|
||
'index' => array(
|
||
'idx_channel' => array(
|
||
'columns' => array('channel_id', 'channel_type'),
|
||
),
|
||
'idx_scene' => array(
|
||
'columns' => array('scene'),
|
||
),
|
||
'ind_at_time' => array(
|
||
'columns' => array('at_time'),
|
||
),
|
||
'ind_up_time' => array(
|
||
'columns' => array('up_time'),
|
||
),
|
||
),
|
||
'engine' => 'innodb',
|
||
'charset' => 'utf8mb4',
|
||
'collate' => 'utf8mb4_general_ci',
|
||
'comment' => '接口字段映射表',
|
||
);
|