migrants-nt-sec/database/migrations/2024_05_15_000001_create_pe...

39 lines
1.1 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('person', function (Blueprint $table) {
$table->id('person_id');
$table->string('surname', 100)->nullable();
$table->string('christian_name', 100)->nullable();
$table->string('full_name', 200)->nullable();
$table->date('date_of_birth')->nullable();
$table->string('place_of_birth', 100)->nullable();
$table->date('date_of_death')->nullable();
$table->string('occupation', 100)->nullable();
$table->text('additional_notes')->nullable();
$table->string('reference', 100)->nullable();
$table->string('id_card_no', 50)->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('person');
}
};