HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/ghayatcom/ghayatcom-api/app/AiChatBot.php
<?php

namespace App;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Casts\YesNoBoolean;

class AiChatBot extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id', 'name', 'age', 'family_cancer', 'cancer_type', 'family_heart_disease',
        'family_arrhythmia', 'family_genetic_disorder', 'ethnic_background',
        'risk_score', 'risk_category', 'lynch_syndrome_suspect',
        'hereditary_breast_cancer_suspect', 'lqts_suspect', 'ashkenazi_risk',
        'suggested_tests', 'test_results', 'personalized_plan'
    ];

    protected $hidden = ['created_at', 'updated_at'];

    protected $casts = [
        'personalized_plan' => 'array',
        'suggested_tests' => 'array',
        'test_results' => 'array',
        'family_cancer' => YesNoBoolean::class,
        'family_heart_disease' => YesNoBoolean::class,
        'family_arrhythmia' => YesNoBoolean::class,
        'family_genetic_disorder' => YesNoBoolean::class,
        'lynch_syndrome_suspect' => YesNoBoolean::class,
        'hereditary_breast_cancer_suspect' => YesNoBoolean::class,
        'lqts_suspect' => YesNoBoolean::class,
        'ashkenazi_risk' => YesNoBoolean::class,
    ];

}