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

154 lines
5.1 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_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' => 'int unsigned',
'required' => true,
'editable' => false,
'label' => '订单ID',
),
'type' => array(
'type' => 'varchar(50)',
'label' => '金额类型',
'editable' => false,
'filtertype' => 'yes',
'filterdefault' => true,
),
'type_name' => array(
'type' => 'varchar(50)',
'label' => '优惠名称',
),
'coupon_type' => array(
'type' => array(
'0' => '暂无',
'1' => '平台优惠',
'2' => '商家优惠',
'3' => '平台支付优惠 ',
),
'default' => '0',
'label' => '优惠类型',
),
'num' => array(
'type' => 'number',
'editable' => false,
'label' => 'sku数量',
'comment' => 'sku数量',
),
'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,
),
'amount' => array(
'type' => 'money',
'default' => '0.000',
'label' => '金额',
'width' => 75,
),
'total_amount' => array(
'type' => 'money',
'default' => '0.000',
'label' => '小计金额',
'width' => 75,
),
'oid' => array(
'type' => 'varchar(50)',
'default' => '',
'editable' => false,
'label' => '子订单号',
),
'pay_time' => array(
'type' => 'time',
'label' => '付款时间',
'width' => 130,
'editable' => false,
'in_list' => true,
),
'create_time' => array(
'type' => 'time',
'label' => '下单时间',
'width' => 130,
'editable' => false,
'filtertype' => 'time',
'filterdefault' => true,
'in_list' => true,
),
'shop_type' => array(
'type' => 'varchar(50)',
'label' => '店铺类型',
'width' => 75,
'editable' => false,
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'extend' => array(
'type' => 'serialize',
'editable' => false,
),
'source' => array(
'type' =>
array(
'local' => '本地创建',
'rpc' => 'api请求',
'push' => '矩阵推送',
),
'default' => 'local',
'label' => '来源',
),
'archive_time' => array(
'type' => 'int unsigned',
'label' => '归档时间',
'width' => 130,
'editable' => false,
'in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
),
),
'index' => array(
'idx_oid' => array('columns' => array('oid')),
'idx_coupon_type' => array('columns' => array('coupon_type')),
'idx_create_time' => array('columns' => array('create_time')),
'idx_pay_time' => array('columns' => array('pay_time')),
'idx_order_id' => array('columns' => array('order_id')),
'idx_archive_time' => array('columns' => array('archive_time')),
),
'comment' => '归档订单优惠券明细',
'engine' => 'innodb',
'version' => '$Rev: $',
);