2025-06-29 09:37:49 +02:00
|
|
|
<?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('articles', function (Blueprint $table) {
|
|
|
|
|
$table->id();
|
|
|
|
|
$table->string('url');
|
2025-06-29 21:20:45 +02:00
|
|
|
$table->string('title')->nullable();
|
|
|
|
|
$table->text('description')->nullable();
|
2025-06-29 19:46:50 +02:00
|
|
|
$table->boolean('is_valid')->nullable();
|
2025-06-30 19:54:43 +02:00
|
|
|
$table->boolean('is_duplicate')->default(false);
|
2025-06-29 19:46:50 +02:00
|
|
|
$table->timestamp('validated_at')->nullable();
|
2025-06-29 17:13:18 +02:00
|
|
|
$table->timestamps();
|
2025-06-29 09:37:49 +02:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function down(): void
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('articles');
|
|
|
|
|
}
|
|
|
|
|
};
|