0
0

RabbitLog.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "rabbit_log".
  6. *
  7. * @property int $id
  8. * @property string $channel 频道
  9. * @property string $queue 队列
  10. * @property string $msg 发送的所有信息
  11. * @property string $msg_body 信息体
  12. * @property string $msg_delivery_tag 路由标签
  13. * @property string $addtime 操作时间
  14. * @property string $describe 备注
  15. */
  16. class RabbitLog extends \yii\db\ActiveRecord
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return 'rabbit_log';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['channel', 'queue', 'msg', 'msg_body', 'msg_delivery_tag', 'describe'], 'string'],
  32. [['addtime'], 'safe'],
  33. ];
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'channel' => '频道',
  43. 'queue' => '队列',
  44. 'msg' => '消息',
  45. 'msg_body' => '消息体',
  46. 'msg_delivery_tag' => '消息标签',
  47. 'addtime' => '加入时间',
  48. 'describe' => '描述',
  49. ];
  50. }
  51. }