Files
w4rpservices/database/migrations/2014_10_12_000000_create_users_table.php
2018-10-15 22:20:33 -05:00

43 lines
1.1 KiB
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('character_id');
$table->string('avatar');
$table->string('access_token');
$table->string('refresh_token');
$table->integer('expires_in');
$table->string('owner_hash');
$table->string('user_type')->default('Guest');
$table->string('email')->unique()->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}