id(); $table->integer('entity_id'); $table->string('entity_type'); $table->integer('user_id')->nullable(); $table->string('author_name')->nullable(); $table->string('author_avatar')->nullable(); $table->integer('author_rating')->nullable(); $table->text('content'); $table->datetime('published_at'); $table->string('tmdb_id')->nullable(); $table->string('tmdb_url')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('comments'); } };