<?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('posts', function (Blueprint $table) {
            $table->bigInteger('id');
            $table->string('title');
            $table->text('body');
            $table->boolean('published');
            $table->dateTime('created_at');
            $table->json('tags');
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('posts');
    }
};
