<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "rabbit_log".
 *
 * @property int $id
 * @property string $channel 频道
 * @property string $queue 队列
 * @property string $msg 发送的所有信息
 * @property string $msg_body 信息体
 * @property string $msg_delivery_tag 路由标签
 * @property string $addtime 操作时间
 * @property string $describe 备注
 */
class RabbitLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rabbit_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['channel', 'queue', 'msg', 'msg_body', 'msg_delivery_tag', 'describe'], 'string'],
            [['addtime'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'channel' => '频道',
            'msg_body' => '消息体',
            'queue' => '队列',
            'msg' => '消息',
            'msg_delivery_tag' => '消息标签',
            'addtime' => '加入时间',
            'describe' => '描述',

//            'title'=>'操作记录描述',
//            'admin_name'=>'操作人姓名',
//            'admin_ip'=>'操作人IP地址',
//            'admin_agent'=>'操作人浏览器代理商',
//            'handle_id'=>'操作控制器名称',
//            'type'=>'操作类型',
//            'model'=>'操作数据编号',
//            'result'=>'操作结果',
        ];
    }
}