30 lines
675 B
PHP
30 lines
675 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\HasOne;
|
|
|
|
class HealthcareServiceSchedule extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
"day_of_week",
|
|
"available_start_time",
|
|
"available_end_time",
|
|
"active"
|
|
];
|
|
|
|
/**
|
|
* Get the user associated with the HealthcareServiceSchedule
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function msHealthcareService(): HasOne
|
|
{
|
|
return $this->hasOne(MsHealthcareService::class, 'foreign_key', 'local_key');
|
|
}
|
|
}
|