You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
977 B
PHTML

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\OAuth2User;
class OauthUser extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(OAuth2User::TABLE_NAME, function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('email')->unique();
$table->string('name');
$table->string('patronymic');
$table->string('lastname');
$table->text('access_token');
$table->text('refresh_token');
$table->rememberToken();
$table->timestamps();
$table->timestamp('expires_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists(OAuth2User::TABLE_NAME);
}
}