This commit is contained in:
Dr Masroor Ehsan 2024-12-28 11:08:14 +06:00
parent e2c0e24b90
commit 216a565d3a
2 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public function up(): void
$table->rememberToken(); $table->rememberToken();
$table->foreignId('current_team_id')->nullable(); $table->foreignId('current_team_id')->nullable();
$table->string('profile_photo_path', 2048)->nullable(); $table->string('profile_photo_path', 2048)->nullable();
$table->foreignIdFor(Site::class, 'site_id')->nullable(); $table->foreignIdFor(Site::class)->nullable()->index();
$table->timestamps(); $table->timestamps();
}); });

View File

@ -27,8 +27,9 @@ public function up(): void
$table->dateTime('upload_date')->index(); $table->dateTime('upload_date')->index();
$table->foreignIdFor(Site::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(Site::class)->constrained()->onDelete('cascade');
$table->tinyInteger('report_status')->default(0); $table->tinyInteger('report_status')->default(0);
$table->string('study_modality'); $table->string('study_modality',4);
$table->foreignIdFor(User::class, 'assigned_radiologist_id')->nullable()->constrained()->onDelete('set null'); $table->foreignIdFor(User::class, 'assigned_physician_id')->nullable()->constrained()->onDelete('set null');
$table->foreignIdFor(User::class, 'interpreting_physician_id')->nullable()->constrained()->onDelete('set null');
$table->timestamps(); $table->timestamps();
$table->index(['site_id', 'upload_date']); $table->index(['site_id', 'upload_date']);