34 lines
639 B
PHP
34 lines
639 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class JadwalPeriksa extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'jadwal_periksa';
|
|
protected $primaryKey = 'id';
|
|
protected $keyType = 'string';
|
|
public $incrementing = false;
|
|
public $timestamps = false;
|
|
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'id_dokter',
|
|
'hari',
|
|
'jam_mulai',
|
|
'jam_selesai',
|
|
'tanggal',
|
|
'status',
|
|
];
|
|
|
|
public function dokter()
|
|
{
|
|
return $this->belongsTo(Dokter::class, 'id_dokter', 'id');
|
|
}
|
|
}
|