File: /var/www/api_matriculas/database/migrations/2025_09_24_034731_create_relationships_table.php
<?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('relationships', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('relationship')->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
$table->boolean('deleted')->default(0);
$table->timestamp('deleted_at')->nullable();
$table->unsignedBigInteger('user_created')->nullable();
$table->unsignedBigInteger('user_updated')->nullable();
$table->unsignedBigInteger('user_deleted')->nullable();
});
}
public function down(): void
{
Schema::dropIfExists('relationships');
}
};