feat: initialize Dr-Panel project with patient file number support

This commit is contained in:
SajjadMahmoody
2026-05-06 02:18:23 +03:30
parent f8f174690a
commit 8b84d1780f
460 changed files with 113960 additions and 1 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('medications', function (Blueprint $table) {
$table->id();
$table->string('name', 255)->comment('نام دارو');
$table->string('dosage_form', 50)->nullable()->comment('شکل دارویی (Tab, Cap, Amp, Drop, Serum, Cream, ...)');
$table->string('strength', 100)->nullable()->comment('دوز (مثلاً 500mg, 5mg/5ml)');
$table->integer('quantity')->nullable();
$table->string('timing', 100)->nullable()->comment('زمان مصرف (مثلاً q8h, q12h)');
$table->text('notes')->nullable()->comment('یادداشت‌ها');
$table->boolean('is_default')->default(false);
$table->boolean('is_active')->default(true)->comment('فعال/غیرفعال');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('medications');
}
};