@ -17,7 +17,6 @@ class PostFactory extends Factory
public function definition(): array
{
return [
'title' => fake()->sentence,
'description' => collect(fake()->paragraphs)->implode(' '),
'user_id' => 1,
];
@ -14,7 +14,6 @@ return new class extends Migration
Schema::create('posts', function (Blueprint $table) {
$table->id('sequence');
$table->uuid('id');
$table->string('title');
$table->foreignUuid('user_id')->constrained(table: 'users', column: 'id');
$table->longText('description')->nullable(true);
$table->timestamps();