22 lines
421 B
PHP
22 lines
421 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class KebutuhanKalori extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'kebutuhan_kalori';
|
|
protected $primaryKey = 'id';
|
|
protected $fillable = [
|
|
'kebutuhan_kalori',
|
|
];
|
|
|
|
public function pasien() {
|
|
return $this->hasMany(Pasien::class, 'id');
|
|
}
|
|
}
|