Files
OMS/app/dealer/dbschema/series_endorse.php
2025-12-28 23:13:25 +08:00

84 lines
2.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
$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: $',
);