ProvinceGatherLog.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace addons\RfDevTool\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_dev_tool_provinces_gather_log}}".
  6. *
  7. * @property string $id
  8. * @property string $job_id 工作id
  9. * @property int $message_id 消息id
  10. * @property array $data 数据
  11. * @property string $url
  12. * @property int $max_level 最大级别
  13. * @property int $level 当前级别
  14. * @property int $reconnection 重连次数
  15. * @property string $remark 备注
  16. * @property int $status 状态
  17. * @property string $created_at 创建时间
  18. * @property string $updated_at 更新时间
  19. */
  20. class ProvinceGatherLog extends \common\models\base\BaseModel
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%addon_dev_tool_province_gather_log}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['job_id', 'message_id', 'max_level', 'level', 'reconnection', 'status', 'created_at', 'updated_at'], 'integer'],
  36. [['data'], 'safe'],
  37. [['url', 'remark'], 'string', 'max' => 200],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'data' => '数据',
  48. 'remark' => '备注',
  49. 'url' => 'Url',
  50. 'max_level' => '最大级别',
  51. 'level' => '当前级别',
  52. 'reconnection' => '重连次数',
  53. 'status' => '状态',
  54. 'created_at' => '创建时间',
  55. 'updated_at' => 'Updated At',
  56. ];
  57. }
  58. }
粤ICP备19079148号