deploy commit

This commit is contained in:
2026-07-15 17:23:15 +07:00
commit b94ef4a695
148 changed files with 14831 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Sanctum\HasApiTokens;
class Account extends Authenticatable
{
/** @use HasFactory<\Database\Factories\AccountFactory> */
use HasApiTokens, HasFactory;
protected $fillable = [
'name',
'email',
'phone',
'dob',
'role',
'password',
];
protected function casts(): array
{
return [
'password' => 'hashed',
'role' => 'string', // patient or doctor
];
}
public function submission()
{
return $this->hasMany(Submission::class, 'patient_id');
}
public function doctorProfile() {
return $this->hasOne(DoctorProfile::class, 'user_id');
}
}