diff --git a/app/Models/MedicalHistoryCorrection.php b/app/Models/MedicalHistoryCorrection.php index 5873240..9ce9b5c 100644 --- a/app/Models/MedicalHistoryCorrection.php +++ b/app/Models/MedicalHistoryCorrection.php @@ -23,6 +23,7 @@ class MedicalHistoryCorrection extends Model 'comment', 'delivery_from_address', 'delivery_from_object_id', + 'received_disease_at' ]; protected $casts = [ @@ -31,7 +32,8 @@ class MedicalHistoryCorrection extends Model 'extract_date' => 'datetime:Y-m-d H:i:s', 'death_date' => 'datetime:Y-m-d H:i:s', 'male' => 'boolean', - 'delivery_from_object_id' => 'integer' + 'delivery_from_object_id' => 'integer', + 'received_disease_at' => 'datetime:Y-m-d H:i:s', ]; public function medicalHistory() diff --git a/app/Models/ReportNursePatient.php b/app/Models/ReportNursePatient.php index 3fefb8f..01b9343 100644 --- a/app/Models/ReportNursePatient.php +++ b/app/Models/ReportNursePatient.php @@ -25,6 +25,7 @@ class ReportNursePatient extends Model 'profit_type_id', 'delivery_from_address', 'delivery_from_object_id', + 'received_disease_at' ]; protected $casts = [ @@ -33,7 +34,8 @@ class ReportNursePatient extends Model 'extract_date' => 'datetime:Y-m-d H:i:s', 'death_date' => 'datetime:Y-m-d H:i:s', 'male' => 'boolean', - 'delivery_from_object_id' => 'integer' + 'delivery_from_object_id' => 'integer', + 'received_disease_at' => 'datetime:Y-m-d H:i:s', ]; public function migrations(): \Illuminate\Database\Eloquent\Relations\HasMany diff --git a/database/migrations/2026_07_08_082852_add_column_received.php b/database/migrations/2026_07_08_082852_add_column_received.php new file mode 100644 index 0000000..43ec4db --- /dev/null +++ b/database/migrations/2026_07_08_082852_add_column_received.php @@ -0,0 +1,34 @@ +dateTime('received_disease_at')->nullable(); + }); + Schema::table('report_nurse_patients', function (Blueprint $table) { + $table->dateTime('received_disease_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('medical_history_corrections', function (Blueprint $table) { + $table->dropColumn('received_disease_at'); + }); + Schema::table('report_nurse_patients', function (Blueprint $table) { + $table->dropColumn('received_disease_at'); + }); + } +};