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

288 lines
6.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['refund_apply']=array (
'columns' =>
array (
'apply_id' =>
array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'refund_apply_bn' =>
array (
'type' => 'varchar(32)',
'required' => true,
'default' => '',
'label' => '退款申请单号',
'width' => 140,
'editable' => false,
'in_list' => true,
'is_title' => true,
'filtertype' => 'yes',
'filterdefault' => true,
),
'order_id' =>
array (
'type' => 'int unsigned',
'required' => true,
'editable' => false,
'in_list' => false,
'default_in_list' => false,
'label' => '订单号',
'editable' => false,
),
'pay_type' =>
array (
'type' =>
array (
'online' => '在线支付',
'offline' => '线下支付',
'deposit' => '预存款支付',
),
'default' => 'online',
'required' => true,
'label' => '支付类型',
'width' => 110,
'editable' => false,
'filtertype' => 'yes',
'filterdefault' => true,
'in_list' => true,
),
'account' =>
array (
'type' => 'varchar(50)',
'editable' => false,
'in_list' => true,
'label' => '退款帐号',
),
'bank' =>
array (
'type' => 'varchar(50)',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'label' => '退款银行',
),
'pay_account' =>
array (
'type' => 'varchar(50)',
'editable' => false,
'in_list' => true,
'label' => '收款帐号',
),
'money' =>
array (
'type' => 'money',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'label' => '申请退款金额',
'width' => '70',
),
'refunded' =>
array (
'type' => 'money',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'label' => '已退款金额',
'width' => '70',
),
'memo' =>
array (
'type' => 'text',
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'in_list' => true,
'default_in_list' => true,
'label' => '退款原因',
),
'create_time' =>
array (
'type' => 'time',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'label' => '申请时间',
'width' => 130,
'filtertype' => 'time',
'filterdefault' => true,
),
'last_modified' =>
array (
'label' => '最后更新时间',
'type' => 'last_modify',
'width' => 130,
'editable' => false,
'in_list' => true,
),
'status' =>
array (
'type' =>
array (
0 => '未审核',
1 => '审核中',
2 => '已接受申请',
3 => '已拒绝',
4 => '已退款',
5 => '退款中',
6 => '退款失败',
),
'default' => '0',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'label' => '退款状态',
'filtertype' => 'yes',
'filterdefault' => true,
),
'shop_id' =>
array (
'type' => 'table:shop@ome',
'label' => '来源店铺',
'width' => 75,
'editable' => false,
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'return_id' =>
array(
'type' => 'int unsigned',
//'required' => true,
'editable' => false,
'comment' => '售后ID',
),
'reship_id' =>
array(
'type' => 'int(10)',
'editable' => false,
'comment' => '退换货ID',
),
'addon' =>
array (
'type' => 'longtext',
'editable' => false,
),
'refund_refer' =>
array(
'type' =>
array(
0=>'normal',
1=>'aftersale',
),
'default' => '0',
'label' => '退款来源',
),
'bcmoney' => array(
'type' => 'money',
'label' => app::get('ome')->_('补偿费用'),
'in_list' => true,
'default' => 0,
),
'product_data' =>
array (
'type' => 'longtext',
'editable' => false,
'label'=>'售后申请商品',
),
'source' =>
array (
'type' => 'varchar(50)',
'default' => 'local',
'editable' => false,
'label' => '来源',
'in_list' => true,
'filterdefault' => true,
),
'shop_type' =>
array (
'type' => 'varchar(50)',
'label' => '店铺类型',
'width' => 75,
'editable' => false,
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'mark_text' =>
array (
'type' => 'longtext',
'label' => '卖家备注',
'editable' => false,
),
'outer_lastmodify' =>
array (
'label' => '前端店铺最后更新时间',
'type' => 'time',
'width' => 130,
'editable' => false,
),
'oid' =>
array(
'type' => 'varchar(50)',
'default' => 0,
'editable' => false,
'label' => '子订单号',
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'bn' =>
array(
'type' => 'varchar(40)',
'editable' => false,
'label' => '货号',
'in_list' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
),
'index' =>
array (
'ind_refund_apply_bn_shop' =>
array (
'columns' =>
array (
0 => 'refund_apply_bn',
1 => 'shop_id',
),
'prefix' => 'unique',
),
'idx_oid' =>
array(
'columns' =>
array(
0 => 'oid',
),
),
'idx_bn' =>
array(
'columns' =>
array(
0 => 'bn',
),
),
),
'engine' => 'innodb',
'version' => '$Rev: $',
);