dml
This commit is contained in:
parent
e2c0e24b90
commit
216a565d3a
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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']);
|
||||||
|
Loading…
Reference in New Issue
Block a user