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

123 lines
2.5 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['zero_sale']=array (
'columns' =>
array (
'bpsd_id' =>
array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'label' => 'ID',
),
'branch_id' =>
array (
'type' => 'table:branch@ome',
'required' => false,
'editable' => false,
'label' => '线上仓库',
'filtertype' => 'yes',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'order' => 1,
'width' => 130,
),
'product_id' =>
array (
'type' => 'table:products@ome',
'required' => false,
'editable' => false,
'label' => '货品ID',
),
'bn' =>
array (
'type' => 'varchar(60)',
'editable' => false,
'label' => '货号',
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'yes',
'filterdefault' => true,
'order' => 2,
'width' => 100,
),
'name' =>
array (
'type' => 'varchar(200)',
'editable' => false,
'label' => '商品名称(规格)',
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'yes',
'filterdefault' => true,
'default' => 0,
'order' => 4,
'width' => 200,
),
'type_id' =>
array (
'type' => 'table:goods_type@ome',
'editable' => false,
'label' => '商品类目',
'in_list' => true,
'default_in_list' => true,
'default' => 0,
'order' => 3,
'width' => 120,
),
'brand_id' =>
array (
'type' => 'table:brand@ome',
'label' => '品牌',
'width' => 90,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'order' => 6,
),
'months' =>
array (
'type' => 'varchar(8)',
'label' => '统计时间',
'width' => 130,
'editable' => false,
'order' => 7,
),
'days' =>
array (
'type' => 'varchar(32)',
'default' => '0000000000000000000000000000000',
'label' => '记录每天销售情况,用32位2进制存储',
'editable' => false,
),
),
'comment' => '零销售产品分析',
'index' =>
array (
'ind_bn' =>
array (
'columns' =>
array (
0 => 'bn',
),
),
'ind_month_day' =>
array (
'columns' =>
array (
0 => 'months',
1 => 'days',
),
),
),
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);