From 6cc89bb728a8035ac3f08c7b880fa7da537c2e45 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Mon, 13 Jan 2025 18:35:05 +0600 Subject: [PATCH] DDL rearrange --- .../migrations/2024_12_27_060234_create_studies_table.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/database/migrations/2024_12_27_060234_create_studies_table.php b/database/migrations/2024_12_27_060234_create_studies_table.php index 80dec6b..b1ec8ac 100644 --- a/database/migrations/2024_12_27_060234_create_studies_table.php +++ b/database/migrations/2024_12_27_060234_create_studies_table.php @@ -15,9 +15,11 @@ public function up(): void Schema::create('studies', function (Blueprint $table) { $table->id(); $table->foreignIdFor(DicomServer::class)->index(); - $table->string('orthanc_uuid')->index(); $table->unsignedTinyInteger('priority')->default(Priority::Routine); + $table->unsignedTinyInteger('study_status')->default(StudyLevelStatus::Pending->value); + $table->unsignedTinyInteger('report_status')->default(ReportStatus::Unread->value); + $table->string('orthanc_uuid')->index(); $table->string('patient_uuid')->nullable()->index(); $table->string('patient_id')->nullable(); $table->string('patient_name'); @@ -41,9 +43,6 @@ public function up(): void $table->timestamp('approved_at')->nullable(); $table->timestamp('archived_at')->nullable(); - $table->unsignedTinyInteger('study_status')->default(StudyLevelStatus::Pending->value); - $table->unsignedTinyInteger('report_status')->default(ReportStatus::Unread->value); - $table->unsignedSmallInteger('image_count')->nullable(); $table->unsignedSmallInteger('series_count')->nullable(); $table->unsignedInteger('disk_size')->nullable();