Files
sifatbaho-php/database/migrations/2023_02_19_153612_creare_user_info.php
2026-04-05 05:31:24 +05:00

42 lines
1006 B
PHP
Executable File

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_infos', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->references('id')->on('users');
$table->string('first_name');
$table->string('last_name');
$table->string('email');
$table->text('description');
$table->string('address');
$table->string('cover');
$table->string('skills');
$table->string('company');
$table->float('completed');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_infos');
}
};