database/migrations/2020_04_14_125726_create_domains_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDomainsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('domains', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->bigInteger('contentLength')->nullable();
$table->integer('responseCode')->nullable();
$table->text('body')->nullable();
$table->text('h1')->nullable();
$table->text('keywords')->nullable();
$table->text('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('domains');
}
}