matab-panel/database/migrations/2026_03_16_000004_create_tr...

26 lines
690 B
PHP

<?php
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('treatments', function (Blueprint $table) {
$table->id();
$table->string('treatment_type', 50)->nullable();
$table->string('treatment_name', 50)->nullable();
$table->mediumText('descriptions')->nullable();
$table->integer('treatment_cost')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('treatments');
}
};