repuve-backend-v1/database/migrations/2025_10_18_140200_create_owners_table.php
2025-10-30 17:33:05 -06:00

44 lines
1.3 KiB
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('owners', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('paternal')->nullable();
$table->string('maternal')->nullable();
$table->string('rfc')->unique()->nullable();
$table->string('curp')->unique()->nullable();
$table->text('address')->nullable();
$table->boolean('tipopers')->nullable();
$table->string('pasaporte')->unique()->nullable();
$table->string('licencia')->unique()->nullable();
$table->string('ent_fed')->nullable();
$table->string('munic')->nullable();
$table->string('callep')->nullable();
$table->string('num_ext')->nullable();
$table->string('num_int')->nullable();
$table->string('colonia')->nullable();
$table->string('cp')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('owners');
}
};