Files
OMS/app/omeanalysts/dbschema/cat_sale_statis.php
2026-01-04 19:08:31 +08:00

108 lines
2.4 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['cat_sale_statis']=array (
'columns' =>
array (
'id' =>
array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => 'ID',
),
'shop_id' =>
array (
'type' => 'table:shop@ome',
'required' => false,
'editable' => false,
'label' => '来源店铺',
'in_list' => true,
'default_in_list' => true,
'order' => 1,
'width' => 130,
),
'type_id' =>
array (
'type' => 'table:goods_type@ome',
'label' => '商品类目',
'width' => 75,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'order' => 2,
'width' => 130,
),
'sales_num' =>
array (
'type' => 'number',
'editable' => false,
'label' => '销售量',
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'default' => 0,
'order' => 3,
'width' => 70,
),
'sales_amount' =>
array (
'type' => 'money',
'editable' => false,
'label' => '销售额',
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'default' => 0,
'order' => 4,
'width' => 80,
),
'brand_id' =>
array (
'type' => 'table:brand@ome',
'label' => '品牌',
'width' => 75,
'editable' => false,
),
'sales_time' =>
array (
'type' => 'time',
'label' => '销售时间',
'width' => 130,
'editable' => false,
),
),
'comment' => '商品类目销售对比统计',
'index' =>
array (
'ind_sales_time' =>
array (
'columns' =>
array (
0 => 'sales_time',
),
),
),
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);