ScheduleRefuse.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  5. use Illuminate\Database\Eloquent\SoftDeletes;
  6. /**
  7. * @property int $id
  8. * @property int $schedule_id
  9. * @property int $provider_id
  10. * @property \Illuminate\Support\Carbon|null $created_at
  11. * @property \Illuminate\Support\Carbon|null $updated_at
  12. * @property \Illuminate\Support\Carbon|null $deleted_at
  13. * @property-read \App\Models\Provider $provider
  14. * @property-read \App\Models\Schedule $schedule
  15. *
  16. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse newModelQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse newQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse onlyTrashed()
  19. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse query()
  20. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse whereDeletedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse whereProviderId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse whereScheduleId($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse whereUpdatedAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse withTrashed(bool $withTrashed = true)
  27. * @method static \Illuminate\Database\Eloquent\Builder<static>|ScheduleRefuse withoutTrashed()
  28. *
  29. * @mixin \Eloquent
  30. */
  31. class ScheduleRefuse extends Model
  32. {
  33. use SoftDeletes;
  34. protected $fillable = [
  35. 'schedule_id',
  36. 'provider_id',
  37. ];
  38. protected $casts = [
  39. 'created_at' => 'datetime',
  40. 'updated_at' => 'datetime',
  41. 'deleted_at' => 'datetime',
  42. ];
  43. public function schedule(): BelongsTo
  44. {
  45. return $this->belongsTo(Schedule::class);
  46. }
  47. public function provider(): BelongsTo
  48. {
  49. return $this->belongsTo(Provider::class);
  50. }
  51. }