You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
<?php |
|
|
|
namespace app\models; |
|
|
|
use Yii; |
|
|
|
/** |
|
* This is the model class for table "{{%mch_account_log}}". |
|
* |
|
* @property integer $id |
|
* @property integer $store_id |
|
* @property integer $mch_id |
|
* @property string $price |
|
* @property integer $type |
|
* @property string $desc |
|
* @property integer $addtime |
|
*/ |
|
class MchAccountLog extends \yii\db\ActiveRecord |
|
{ |
|
/** |
|
* @inheritdoc |
|
*/ |
|
public static function tableName() |
|
{ |
|
return '{{%mch_account_log}}'; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function rules() |
|
{ |
|
return [ |
|
[['store_id', 'mch_id', 'price', 'type', 'addtime'], 'required'], |
|
[['store_id', 'mch_id', 'type', 'addtime'], 'integer'], |
|
[['price'], 'number'], |
|
[['desc'], 'string'], |
|
]; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function attributeLabels() |
|
{ |
|
return [ |
|
'id' => 'ID', |
|
'store_id' => 'Store ID', |
|
'mch_id' => 'Mch ID', |
|
'price' => '金额', |
|
'type' => '类型:1=收入,2=支出', |
|
'desc' => 'Desc', |
|
'addtime' => 'Addtime', |
|
]; |
|
} |
|
}
|
|
|