61 lines
1.5 KiB
PHP
61 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "cx_activity_user_log".
|
|
*
|
|
* @property int $id
|
|
* @property int|null $user_id 用户id
|
|
* @property int|null $activity_id 活动id
|
|
* @property string|null $msg 操作信息
|
|
* @property int|null $created_at 创建时间
|
|
* @property int|null $updated_at 更新时间
|
|
* @property int|null $is_delete 是否删除
|
|
* @property int|null $deleted_at 删除时间
|
|
* @property string|null $data 其他数据
|
|
* @property int $status 状态
|
|
*/
|
|
class ActivityUserLog extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'cx_activity_user_log';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id', 'activity_id', 'created_at', 'updated_at', 'is_delete', 'deleted_at','status'], 'integer'],
|
|
[['data'], 'string'],
|
|
[['msg'], 'string', 'max' => 255],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'activity_id' => 'Activity ID',
|
|
'msg' => 'Msg',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'is_delete' => 'Is Delete',
|
|
'deleted_at' => 'Deleted At',
|
|
'data' => 'Data',
|
|
];
|
|
}
|
|
}
|