%PDF- %PDF-
| Direktori : /home/vacivi36/.trash/database/migrations/ |
| Current File : /home/vacivi36/.trash/database/migrations/2014_10_12_000000_create_dependents.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('dependents', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('last_name');
$table->string('cpf')->unique();
$table->string('birth_date');
$table->string('vaccine_id');
$table->string('employee_id');
$table->string('unit_id');
$table->string('is_active');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('dependents');
}
};