1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 19:04:43 +00:00
This commit is contained in:
2022-04-29 08:53:19 +07:00
parent 7a6ba238a6
commit f0fa19d3cd
148 changed files with 38214 additions and 91 deletions

View File

@@ -0,0 +1,40 @@
<?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('users', function (Blueprint $table) {
$table->id();
$table->string('first_name');
$table->string('last_name');
$table->string('middle_name')->nullable();
$table->string('photo')->nullable();
$table->string('email')->unique();
$table->string('phone')->unique()->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamp('email_verified_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
};