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

111 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['order_front_items'] = array(
'columns' => array(
'id' => array(
'type' => 'int unsigned',
'extra' => 'auto_increment',
'pkey' => true,
'editable' => false,
'label' => '自增ID',
),
'of_id' => array(
'type' => 'table:order_front',
'label' => '主表ID',
),
'source_item_id' => array(
'type' => 'int unsigned',
'default' => 0,
'required' => true,
'label' => '来源明细id',
'in_list' => false,
'default_in_list' => false,
),
'bm_id' => array(
'type' => 'int unsigned',
'editable' => false,
'label' => '物料主键',
),
'bn' => array(
'type' => 'varchar(40)',
'editable' => false,
'label' => '物料编码',
'is_title' => true,
),
'item_type' => array(
'type' => [
'basic' => '基础物料',
'sales' => '销售物料',
'ship' => '运费',
],
'label' => '行类型',
'editable' => false,
),
'name' => array(
'type' => 'varchar(200)',
'label' => '物料名称',
'editable' => false,
),
'divide' => array(
'type' => 'money',
'default' => '0',
'label' => '实付小计',
'required' => true,
'editable' => false,
),
'amount' => array(
'type' => 'money',
'default' => '0',
'label' => '开票金额小计',
'required' => true,
'editable' => false,
),
'quantity' => array(
'type' => 'number',
'default' => 1,
'label' => '购买数量',
'required' => true,
'editable' => false,
),
'reship_num' => array(
'type' => 'number',
'default' => 0,
'label' => '退货数量',
'required' => true,
'editable' => false,
),
'is_delete' => array(
'type' => 'bool',
'default' => 'false',
'label' => '是否删除',
'editable' => false,
),
'at_time' => array(
'type' => 'TIMESTAMP',
'label' => '创建时间',
'default' => 'CURRENT_TIMESTAMP',
'in_list' => true,
'default_in_list' => true,
'order' => 1000,
),
'up_time' => array(
'type' => 'TIMESTAMP',
'label' => '更新时间',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'in_list' => true,
'default_in_list' => true,
'order' => 1010,
),
),
'index' => array(
'idx_at_time' => array('columns' => array('at_time')),
'idx_up_time' => array('columns' => array('up_time')),
),
'engine' => 'innodb',
'commit' => '预发票表明细表',
'version' => 'Rev: 41996 $',
);