Task.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Task.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property string $model_name 任务名称
  12. * @property int $m_id 任务名称
  13. * @property int $u_id 任务名称
  14. * @property int $status 任务名称
  15. * @property \Illuminate\Support\Carbon|null $created_at
  16. * @property \Illuminate\Support\Carbon|null $updated_at
  17. * @method static \Illuminate\Database\Eloquent\Builder|Task newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|Task newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|Task query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|Task whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|Task whereId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|Task whereMId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|Task whereModelName($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Task whereStatus($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|Task whereUId($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|Task whereUpdatedAt($value)
  27. * @mixin \Eloquent
  28. * @property string|null $data 请求信息
  29. * @method static \Illuminate\Database\Eloquent\Builder|Task whereData($value)
  30. * @property int|null $execute_id 任务ID
  31. * @method static \Illuminate\Database\Eloquent\Builder|Task whereExecuteId($value)
  32. */
  33. class Task extends Model implements Transformable
  34. {
  35. use TransformableTrait;
  36. /**
  37. * The attributes that are mass assignable.
  38. *
  39. * @var array
  40. */
  41. protected $guarded = ['id', 'updated_at', 'created_at'];
  42. protected $casts = [
  43. 'data' => 'array',
  44. ];
  45. }