CustomScheduleSpeciality.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. /**
  7. * @property int $id
  8. * @property int $custom_schedule_id
  9. * @property int $speciality_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\CustomSchedule $customSchedule
  14. * @property-read \App\Models\Speciality $speciality
  15. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality newModelQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality newQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality onlyTrashed()
  18. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality query()
  19. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality whereCreatedAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality whereCustomScheduleId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality whereDeletedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality whereSpecialityId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality whereUpdatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality withTrashed(bool $withTrashed = true)
  26. * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomScheduleSpeciality withoutTrashed()
  27. * @mixin \Eloquent
  28. */
  29. class CustomScheduleSpeciality extends Model
  30. {
  31. use SoftDeletes;
  32. protected $table = "custom_schedules_specialities";
  33. protected $fillable = [
  34. 'custom_schedule_id',
  35. 'speciality_id',
  36. ];
  37. public function customSchedule(): BelongsTo
  38. {
  39. return $this->belongsTo(CustomSchedule::class);
  40. }
  41. public function speciality(): BelongsTo
  42. {
  43. return $this->belongsTo(Speciality::class);
  44. }
  45. }