new Migrations

This commit is contained in:
2025-03-10 19:46:43 +01:00
parent 05442e6ad4
commit 7c5a6a5b84
3 changed files with 96 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('manufacturers', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name')->required();
$table->string('description')->nullable();
$table->string('website')->nullable();
$table->string('logo')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('manufacturers');
}
};