This commit is contained in:
Masroor Ehsan 2025-01-08 20:48:42 +06:00
parent ca640279ed
commit 8ce22fb4ea

View File

@ -13,12 +13,12 @@ public function up(): void
{ {
Schema::create('studies', function (Blueprint $table) { Schema::create('studies', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('orthanc_uuid')->unique(); $table->string('orthanc_uuid')->unique()->index();
$table->boolean('is_archived')->default(false); $table->boolean('is_archived')->default(false);
$table->unsignedTinyInteger('priority')->default(Priority::Routine); $table->unsignedTinyInteger('priority')->default(Priority::Routine);
$table->string('patient_id')->nullable();
$table->string('patient_uuid')->nullable()->index(); $table->string('patient_uuid')->nullable()->index();
$table->string('patient_id')->nullable();
$table->string('patient_name'); $table->string('patient_name');
$table->string('patient_sex')->nullable(); $table->string('patient_sex')->nullable();
$table->date('patient_birthdate')->nullable(); $table->date('patient_birthdate')->nullable();