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

113 lines
3.7 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['goods_price'] = array(
'columns' => array(
'id' => array(
'type' => 'int',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => 'ID',
'in_list' => true,
'default_in_list' => true,
'width' => 50,
),
'bs_id' => array(
'type' => 'table:business@dealer',
'required' => true,
'label' => '经销商编码',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
'order' => 10,
),
'bm_id' => array(
'type' => 'table:basic_material@material',
'required' => true,
'label' => '基础物料编码',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
// 'filtertype' => 'normal',
// 'filterdefault' => true,
'order' => 20,
),
'price' => array(
'type' => 'decimal(20,3)',
'required' => true,
'label' => '采购价',
'in_list' => true,
'default_in_list' => true,
'order' => 30,
),
'price_unit' => array(
'type' => 'varchar(10)',
'label' => '价格单位',
'in_list' => true,
'default_in_list' => true,
'order' => 35,
'default' => '',
),
'start_time' => array(
'type' => 'time',
'label' => '生效时间',
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'date',
'filterdefault' => true,
'order' => 40,
),
'end_time' => array(
'type' => 'time',
'label' => '过期时间',
'in_list' => true,
'default_in_list' => true,
'filtertype' => 'date',
'filterdefault' => true,
'order' => 50,
),
'at_time' => array(
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default' => 'CURRENT_TIMESTAMP',
'width' => 150,
'in_list' => true,
'default_in_list' => true,
'order' => 60,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'width' => 150,
'in_list' => true,
'default_in_list' => true,
'order' => 70,
),
),
'index' => array(
'ind_bs_bm' => array(
'columns' => array(
0 => 'bs_id',
1 => 'bm_id',
),
),
'ind_bs_id' => array(
'columns' => array(
0 => 'bs_id',
),
),
'ind_bm_id' => array(
'columns' => array(
0 => 'bm_id',
),
),
),
'comment' => '经销商品价格管理',
'engine' => 'innodb',
'version' => '$Rev: $',
);