70 lines
1.9 KiB
PHP
70 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_fund_water".
|
|
*
|
|
* @property int $id
|
|
* @property int|null $store_id 门店ID
|
|
* @property int|null $order_id 订单ID
|
|
* @property int|null $order_type 订单类型1产品订单2挂号订单
|
|
* @property int|null $user_id 用户ID
|
|
* @property int|null $user_type 用户ID
|
|
* @property int|null $service_user_id 医生ID
|
|
* @property string|null $type 类型enter入账refund出账
|
|
* @property float|null $price 金额
|
|
* @property string|null $order_no 订单号
|
|
* @property string|null $refund_no 退款单号
|
|
* @property int|null $pay_type 支付类型1为微信
|
|
* @property int|null $created_at
|
|
* @property int|null $updated_at
|
|
*/
|
|
class FundWater extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_fund_water';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['store_id', 'order_id', 'order_type', 'user_id','service_user_id', 'pay_type', 'created_at', 'updated_at'], 'integer'],
|
|
[['price'], 'number'],
|
|
[['type'], 'string', 'max' => 20],
|
|
[['order_no', 'refund_no'], 'string', 'max' => 30],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'store_id' => 'Store ID',
|
|
'order_id' => 'Order ID',
|
|
'order_type' => 'Order Type',
|
|
'user_id' => 'User ID',
|
|
'service_user_id' => 'Service User ID',
|
|
'type' => 'Type',
|
|
'price' => 'Price',
|
|
'order_no' => 'Order No',
|
|
'refund_no' => 'Refund No',
|
|
'pay_type' => 'Pay Type',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|