feat: initialize Dr-Panel project with patient file number support
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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('prescriptions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('patient')->nullable()->comment('شناسه بیمار');
|
||||
$table->string('issue_date', 50)->nullable()->comment('تاریخ صدور (شمسی)');
|
||||
$table->dateTime('issue_datetime')->nullable()->comment('تاریخ و ساعت صدور');
|
||||
$table->string('doctor', 50)->nullable()->comment('نام پزشک');
|
||||
$table->mediumText('content')->nullable()->comment('محتوای نسخه');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('prescriptions');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user