20 lines
427 B
PHP
20 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UnifiedMedicalHistory extends MaterializedViewModel
|
|
{
|
|
protected $table = 'v_unified_medical_history';
|
|
protected $primaryKey = 'id';
|
|
|
|
protected $casts = [
|
|
'birth_date' => 'date',
|
|
'recipient_date' => 'datetime',
|
|
'extract_date' => 'datetime',
|
|
'death_date' => 'datetime',
|
|
'male' => 'boolean',
|
|
];
|
|
}
|