arcos-backend/database/migrations/2026_01_06_113001_create_arcos_table.php
Juan Felipe Zapata Moreno aac383fc83 jwt endpoint arcos
2026-01-06 17:03:01 -06:00

35 lines
803 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('arcos', function (Blueprint $table) {
$table->id();
$table->string('nombre');
$table->string('ip_address')->unique();
$table->string('ubicacion')->nullable();
$table->boolean('activo')->default(true);
$table->timestamps();
$table->index('ip_address');
$table->index('activo');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('arcos');
}
};