59 lines
1.3 KiB
PHP
59 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_log".
|
|
*
|
|
* @property int $id
|
|
* @property int|null $admin_id 操作用户ID
|
|
* @property string|null $type 操作事件
|
|
* @property string|null $operate_time 操作时间
|
|
* @property string|null $content 操作记录
|
|
* @property int|null $mold 类型1审核操作2订单操作3财务操作
|
|
* @property int|null $created_at
|
|
* @property int|null $updated_at
|
|
*/
|
|
class Log extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_log';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['admin_id', 'mold', 'created_at', 'updated_at'], 'integer'],
|
|
[['operate_time'], 'safe'],
|
|
[['content'], 'string'],
|
|
[['type'], 'string', 'max' => 100],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'admin_id' => 'Admin ID',
|
|
'type' => 'Type',
|
|
'operate_time' => 'Operate Time',
|
|
'content' => 'Content',
|
|
'mold' => 'Mold',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|