65 lines
1.6 KiB
PHP
65 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_ledger_log".
|
|
*
|
|
* @property int $id
|
|
* @property int $order_id 订单id
|
|
* @property int $user_id 门店id 平台为0
|
|
* @property int $user_type 1门店 2平台
|
|
* @property int $order_type 1产品订单 2挂号订单
|
|
* @property int $fee_type 1药品费用 2挂号费用 3快递费用 4代煎费用
|
|
* @property int $type 1增 2减
|
|
* @property float $amount
|
|
* @property string $content
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class LedgerLog extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_ledger_log';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['order_id', 'user_id', 'user_type', 'order_type', 'fee_type', 'type', 'created_at', 'updated_at'], 'integer'],
|
|
[['amount'], 'number'],
|
|
[['content'], 'string'],
|
|
[['created_at', 'updated_at'], 'required'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'order_id' => 'Order ID',
|
|
'user_id' => 'User ID',
|
|
'user_type' => 'User Type',
|
|
'order_type' => 'order Type',
|
|
'fee_type' => 'fee Type',
|
|
'type' => 'Type',
|
|
'amount' => 'Amount',
|
|
'content' => 'Content',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|