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,38 @@
<?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('visits', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('patient')->nullable()->comment('شناسه بیمار');
$table->string('visit_date', 50)->nullable()->comment('تاریخ ویزیت (شمسی)');
$table->string('visit_time', 50)->nullable()->comment('ساعت ویزیت');
$table->unsignedBigInteger('treatment')->nullable()->comment('شناسه نوع درمان');
$table->unsignedInteger('treatment_cost')->nullable()->comment('هزینه درمان');
$table->unsignedBigInteger('payment_type')->nullable()->comment('شناسه روش پرداخت');
$table->unsignedInteger('paid_amount')->nullable()->comment('مبلغ پرداخت شده');
$table->tinyInteger('pos_ul')->nullable()->comment('موقعیت دندان: بالا چپ');
$table->tinyInteger('pos_ll')->nullable()->comment('موقعیت دندان: پایین چپ');
$table->tinyInteger('pos_ur')->nullable()->comment('موقعیت دندان: بالا راست');
$table->tinyInteger('pos_lr')->nullable()->comment('موقعیت دندان: پایین راست');
$table->mediumText('treatment_description')->nullable()->comment('شرح درمان');
$table->unsignedBigInteger('doctor')->nullable()->comment('شناسه پزشک');
$table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('visits');
}
};