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

127 lines
4.3 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_objects_coupon'] = array(
'columns' => array(
'id' => array(
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => 'ID',
'width' => 110,
'hidden' => true,
'editable' => false,
),
'order_id' => array(
'type' => 'table:orders@ome',
'editable' => false,
),
'order_bn' => array(
'type' => 'varchar(32)',
'in_list' => true,
'label' => '订单号',
'editable' => false,
'default_in_list' => true,
),
'num' => array(
'type' => 'number',
'editable' => false,
'in_list' => true,
'label' => '购买数量',
'comment' => '购买数量',
'default_in_list' => true,
'order' => 3
),
'material_name' => array(
'type' => 'varchar(200)',
'required' => true,
'label' => '基础物料名称',
'is_title' => true,
'default_in_list' => true,
'width' => 260,
'searchtype' => 'has',
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
),
'material_bn' => array(
'type' => 'varchar(200)',
'label' => '物料编码',
'width' => 120,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'nequal',
'filtertype' => 'normal',
'filterdefault' => true,
),
'oid' => array(
'type' => 'varchar(50)',
'default' => '',
'editable' => false,
'label' => '子订单号',
),
'create_time' => array(
'type' => 'time',
'label' => '下单时间',
'width' => 130,
'editable' => false,
'filtertype' => 'time',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
),
'shop_id' => array(
'type' => 'varchar(50)',
'label' => '店铺id',
'width' => 75,
'editable' => false,
'in_list' => false,
),
'shop_type' => array(
'type' => 'varchar(50)',
'label' => '店铺类型',
'width' => 75,
'editable' => false,
'in_list' => false,
),
'addon' => array(
'type' => 'serialize',
'editable' => false,
),
'source' => array(
'type' =>
array(
'local' => '本地创建',
'rpc' => 'api请求',
'push' => '矩阵推送',
),
'default' => 'local',
'label' => '来源',
),
'org_id' => array(
'type' => 'table:operation_organization@ome',
'label' => '运营组织',
'editable' => false,
'width' => 60,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
),
),
'index' => array(
'idx_oid' => array('columns' => array('oid')),
'idx_order_bn' => array('columns' => array('order_bn')),
'idx_material_bn' => array('columns' => array('material_bn')),
),
'comment' => '平台订单汇总优惠金额',
'engine' => 'innodb',
'version' => '$Rev: $',
'charset' => 'utf8mb4',
);