65 lines
1.7 KiB
PHP
65 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_cash_account".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id 用户
|
|
* @property float $able_cash 账户余额
|
|
* @property float $frozen_cash 申请提现冻结的金额
|
|
* @property float $withdrawn_cash 已提现金额
|
|
* @property float $total_cash 累计收益
|
|
* @property float|null $wait_cash 待结算收益
|
|
* @property int $user_type 用户类型1诊所2总部
|
|
* @property string|null $last_apply_time 最近提现申请时间
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class CashAccount extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_cash_account';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id'], 'required'],
|
|
[['user_id', 'user_type', 'created_at', 'updated_at'], 'integer'],
|
|
[['able_cash', 'frozen_cash', 'withdrawn_cash', 'total_cash', 'wait_cash'], 'number'],
|
|
[['last_apply_time'], 'safe'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'able_cash' => 'Able Cash',
|
|
'frozen_cash' => 'Frozen Cash',
|
|
'withdrawn_cash' => 'Withdrawn Cash',
|
|
'total_cash' => 'Total Cash',
|
|
'wait_cash' => 'Wait Cash',
|
|
'user_type' => 'User Type',
|
|
'last_apply_time' => 'Last Apply Time',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|