DDL rearrange
This commit is contained in:
parent
436a8ae566
commit
6cc89bb728
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user