This commit is contained in:
Dr Masroor Ehsan 2025-01-10 14:18:39 +06:00
parent d1c6f81149
commit 4048493a65
3 changed files with 11 additions and 8 deletions

View File

@ -2,6 +2,4 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class OrthancHost extends Model {}
class OrthancHost extends BaseModel {}

View File

@ -8,14 +8,17 @@
{
public function up(): void
{
Schema::create('orthanc_hosts', function (Blueprint $table) {
Schema::create('orthanc_hosts', static function (Blueprint $table) {
$table->id();
$table->string('server_name')->unique();
$table->string('fqdn')->unique();
$table->string('host');
$table->integer('port');
$table->string('ae_title')->nullable();
$table->string('stone_viewer_url')->nullable();
$table->string('ohif_viewer_url')->nullable();
$table->string('meddream_viewer_url')->nullable();
$table->string('username')->nullable();
$table->string('password')->nullable();
$table->string('stone_viewer_path')->nullable();
$table->string('ohif_viewer_path')->nullable();
$table->string('meddream_viewer_path')->nullable();
$table->timestamps();
});
}

View File

@ -3,6 +3,7 @@
use App\Domain\Report\ReportStatus;
use App\Domain\Study\Priority;
use App\Domain\Study\StudyLevelStatus;
use App\Models\OrthancHost;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
@ -13,6 +14,7 @@ public function up(): void
{
Schema::create('studies', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(OrthancHost::class)->index();
$table->string('orthanc_uuid')->unique()->index();
$table->boolean('is_archived')->default(false);
$table->unsignedTinyInteger('priority')->default(Priority::Routine);