This commit is contained in:
Dr Masroor Ehsan 2024-12-28 18:07:17 +06:00
parent 588982ebff
commit 5c04b31ecd
2 changed files with 5 additions and 1 deletions

View File

@ -26,6 +26,7 @@ public function up(): void
$table->foreignId('current_team_id')->nullable(); $table->foreignId('current_team_id')->nullable();
$table->string('profile_photo_path')->nullable(); $table->string('profile_photo_path')->nullable();
$table->foreignIdFor(Institute::class)->nullable()->index(); $table->foreignIdFor(Institute::class)->nullable()->index();
$table->string('timezone')->default('Asia/Dhaka');
$table->timestamps(); $table->timestamps();
}); });

View File

@ -1,6 +1,8 @@
<?php <?php
use App\Models\Enums\ReportStatus;
use App\Models\Enums\StudyAccessFlags; use App\Models\Enums\StudyAccessFlags;
use App\Models\Enums\StudyLevelStatus;
use App\Models\Institute; use App\Models\Institute;
use App\Models\User; use App\Models\User;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
@ -30,7 +32,8 @@ public function up(): void
$table->dateTime('receive_date'); $table->dateTime('receive_date');
$table->dateTime('report_date')->nullable(); $table->dateTime('report_date')->nullable();
$table->foreignIdFor(Institute::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(Institute::class)->constrained()->onDelete('cascade');
$table->unsignedTinyInteger('report_status')->default(0); $table->unsignedTinyInteger('study_status')->default(StudyLevelStatus::None->value);
$table->unsignedTinyInteger('report_status')->default(ReportStatus::Pending->value);
$table->unsignedSmallInteger('image_count')->default(0); $table->unsignedSmallInteger('image_count')->default(0);
$table->unsignedSmallInteger('series_count')->default(0); $table->unsignedSmallInteger('series_count')->default(0);