<?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('services', function (Blueprint $table) {
$table->id();
$table->string('slug', 255)->unique();
$table->string('icon', 100)->nullable();
$table->json('title');
$table->json('short_description')->nullable();
$table->json('content')->nullable();
$table->string('banner_image', 500)->nullable();
$table->json('meta_title')->nullable();
$table->json('meta_description')->nullable();
$table->integer('sort_order')->default(0);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
public function down(): void { Schema::dropIfExists('services'); }
};