test_rsabhk_be/app/Models/JadwalPeriksa.php
2025-04-28 00:00:05 +07:00

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');
}
}