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'); } };