DDL
This commit is contained in:
parent
d1c6f81149
commit
4048493a65
@ -2,6 +2,4 @@
|
|||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
class OrthancHost extends BaseModel {}
|
||||||
|
|
||||||
class OrthancHost extends Model {}
|
|
||||||
|
@ -8,14 +8,17 @@
|
|||||||
{
|
{
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('orthanc_hosts', function (Blueprint $table) {
|
Schema::create('orthanc_hosts', static function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('server_name')->unique();
|
$table->string('server_name')->unique();
|
||||||
$table->string('fqdn')->unique();
|
$table->string('host');
|
||||||
|
$table->integer('port');
|
||||||
$table->string('ae_title')->nullable();
|
$table->string('ae_title')->nullable();
|
||||||
$table->string('stone_viewer_url')->nullable();
|
$table->string('username')->nullable();
|
||||||
$table->string('ohif_viewer_url')->nullable();
|
$table->string('password')->nullable();
|
||||||
$table->string('meddream_viewer_url')->nullable();
|
$table->string('stone_viewer_path')->nullable();
|
||||||
|
$table->string('ohif_viewer_path')->nullable();
|
||||||
|
$table->string('meddream_viewer_path')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
@ -3,6 +3,7 @@
|
|||||||
use App\Domain\Report\ReportStatus;
|
use App\Domain\Report\ReportStatus;
|
||||||
use App\Domain\Study\Priority;
|
use App\Domain\Study\Priority;
|
||||||
use App\Domain\Study\StudyLevelStatus;
|
use App\Domain\Study\StudyLevelStatus;
|
||||||
|
use App\Models\OrthancHost;
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
@ -13,6 +14,7 @@ public function up(): void
|
|||||||
{
|
{
|
||||||
Schema::create('studies', function (Blueprint $table) {
|
Schema::create('studies', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
|
$table->foreignIdFor(OrthancHost::class)->index();
|
||||||
$table->string('orthanc_uuid')->unique()->index();
|
$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);
|
||||||
|
Loading…
Reference in New Issue
Block a user