Files
Intelligent-selection-of-co…/database/migrations/2025_10_29_154421_create_components_table.php
2025-12-03 17:47:54 +00:00

33 lines
713 B
PHP

<?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('components', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->text('name');
$table->text('type');
$table->text('brand');
$table->text('model');
$table->integer('price');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('components');
}
};