kuvia/database/migrations/2014_10_12_000000_create_users_table.php

38 lines
803 B
PHP
Raw Permalink Normal View History

2021-01-11 11:49:50 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
2021-01-12 14:49:45 +00:00
$table->timestamps();
$table->string('username');
2021-01-11 11:49:50 +00:00
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
2021-01-12 14:49:45 +00:00
2021-01-11 11:49:50 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}