Ниже приведена структура таблицы в Laravel, и, похоже, в ней есть ошибка. Кто-нибудь может направить меня?
Эта ошибка создает некоторые проблемы на будущее для моего проекта.
Я сам не могу найти ничего подозрительного
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserBaseInfosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user__base__infos', function (Blueprint $table) {
$table->increments('id');
$table->string('user_Name');
$table->string('name');
$table->string('family');
$table->text('password');
$table->boolean('block');
$table->integer('num_reported');
$table->boolean('is_sms_send');
$table->boolean('is_email_send');
$table->integer('link_id')->unsigned();
$table->foreign('link_id')->references('id')->on('links');
$table->integer('role_id')->unsigned();
$table->foreign('role_id')->references('id')->on('roles');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user__base__infos');
}
}