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

66 lines
1.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'] = array(
'columns' => array(
'id' => array(
'type' => 'mediumint(8)',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => '经销商货品ID',
),
'bs_id' => array(
'type' => 'mediumint(8)',
'required' => true,
'label' => '经销商ID',
),
'bm_id' => array(
'type' => 'int unsigned',
'required' => true,
'label' => '货品ID',
),
'cost' => array (
'type' => 'money',
'required' => true,
'label' => '成本价',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'create_time' => array (
'type' => 'time',
'label' => '创建时间',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'modify_time' => array (
'type' => 'time',
'label' => '修改时间',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
),
'index' => array (
'ind_bs_bm_id' => array (
'columns' => array (
'bs_id',
'bm_id',
),
'prefix' => 'unique'
),
'ind_bm_id' => array (
'columns' => array (
'bm_id',
),
),
),
'comment' => '经销商货品',
'engine' => 'innodb',
'version' => '$Rev: $',
);