id(); $table->foreignId('author_id'); $table->text('content')->nullable(); $table->boolean('is_published')->default(true); $table->unsignedTinyInteger('rating')->default(0); $table->json('tags')->nullable(); $table->string('title'); $table->timestamps(); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('posts'); } };