mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-26 02:35:47 +08:00
95 lines
2.9 KiB
PHP
95 lines
2.9 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['series_endorse'] = array(
|
|
'columns' => array(
|
|
'en_id' => array(
|
|
'type' => 'int unsigned',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'extra' => 'auto_increment',
|
|
'label' => '产品线授权到店ID',
|
|
),
|
|
'series_id' => array(
|
|
'type' => 'int unsigned',
|
|
'label' => '产品线ID',
|
|
),
|
|
'bs_id' => array(
|
|
'type' => 'int unsigned',
|
|
'label' => '经销商ID',
|
|
'comment' => '一个经销店铺只能选一个经销商',
|
|
),
|
|
'shop_id' => array(
|
|
'type' => 'varchar(32)',
|
|
'label' => '店铺ID',
|
|
),
|
|
'sku_nums' => array(
|
|
'type' => 'int unsigned',
|
|
'label' => '产品数', // 店铺维度的数量
|
|
'default' => '0',
|
|
),
|
|
'at_time' => array(
|
|
'type' => 'TIMESTAMP',
|
|
'label' => '创建时间',
|
|
'default' => 'CURRENT_TIMESTAMP',
|
|
'width' => 150,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 90,
|
|
),
|
|
'up_time' => array(
|
|
'type' => 'TIMESTAMP',
|
|
'label' => '更新时间',
|
|
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
|
|
'width' => 150,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 100,
|
|
),
|
|
),
|
|
'index' => array (
|
|
'ind_series_id' => array(
|
|
'columns' => array(
|
|
'series_id',
|
|
),
|
|
),
|
|
'ind_shop_id' => array(
|
|
'columns' => array(
|
|
'shop_id',
|
|
),
|
|
),
|
|
'ind_bs_id' => array(
|
|
'columns' => array(
|
|
'bs_id',
|
|
),
|
|
),
|
|
'ind_at_time' => array(
|
|
'columns' => array(
|
|
'at_time',
|
|
),
|
|
),
|
|
'ind_up_time' => array(
|
|
'columns' => array(
|
|
'up_time',
|
|
),
|
|
),
|
|
|
|
),
|
|
'comment' => '产品线授权到店',
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $',
|
|
); |