JobRun.php 947 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace UCore\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * 队列运行情况
  6. *
  7. * field start
  8. * @property int $id
  9. * @property string $queue
  10. * @property string $payload
  11. * @property string $runclass 运行类
  12. * @property int $attempts
  13. * @property int $reserved_at
  14. * @property int $available_at
  15. * @property \Carbon\Carbon $created_at
  16. * @property string $status 运行状态
  17. * @property string $desc 描述信息
  18. * @property float $runtime 运行时间
  19. * field end
  20. *
  21. */
  22. class JobRun extends Model
  23. {
  24. public $timestamps = false;
  25. //attrlist start
  26. public static $attrlist = array (
  27. 0 => 'id',
  28. 1 => 'queue',
  29. 2 => 'payload',
  30. 3 => 'runclass',
  31. 4 => 'attempts',
  32. 5 => 'reserved_at',
  33. 6 => 'available_at',
  34. 7 => 'created_at',
  35. 8 => 'status',
  36. 9 => 'desc',
  37. 10 => 'runtime',
  38. );
  39. //attrlist end
  40. protected $casts = [
  41. 'payload' => 'array'
  42. ];
  43. }