cxgj/models/OrderSale.php
2023-11-27 09:45:13 +08:00

75 lines
2.3 KiB
PHP
Raw Permalink 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
namespace app\models;
use Yii;
/**
* This is the model class for table "cx_order_sale".
*
* @property int $id
* @property int $order_id 订单ID
* @property int $user_id 用户ID
* @property int $type 退款原因
* @property string $order_no 退款单号
* @property float $refund_price 退款金额
* @property string $remark 用户退款说明
* @property string $pic_urls 上传补充图片
* @property int $status 状态1=待商家处理2=同意3=拒绝
* @property int $status_time 商家处理时间
* @property string|null $merchant_remark 商家同意|拒绝备注、理由
* @property int $created_at 添加时间
* @property int $updated_at 更新时间
* @property int $deleted_at 删除时间
* @property int $is_delete 是否删除
* @property int $store_id 门店ID
*/
class OrderSale extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'cx_order_sale';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['order_id', 'user_id', 'order_no', 'refund_price', 'status_time', 'created_at', 'updated_at', 'store_id', 'deleted_at'], 'required'],
[['order_id', 'user_id', 'status', 'status_time', 'created_at', 'updated_at', 'deleted_at', 'is_delete'], 'integer'],
[['refund_price'], 'number'],
[['remark', 'pic_urls'], 'string'],
[['order_no'], 'string', 'max' => 64],
[['merchant_remark'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'order_id' => 'Order ID',
'user_id' => 'User ID',
'order_no' => 'Order No',
'refund_price' => 'Refund Price',
'remark' => 'Remark',
'pic_urls' => 'Pic Urls',
'status' => 'Status',
'status_time' => 'Status Time',
'merchant_remark' => 'Merchant Remark',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'deleted_at' => 'Deleted At',
'is_delete' => 'Is Delete',
];
}
}