<?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->id(); $table->unsignedInteger('customer_id'); $table->string('name'); $table->longText('dkim_key'); $table->longText('spf_key'); $table->longText('mail_code'); $table->longText('dnskey'); $table->longText('dmarc_key'); $table->enum('dkim_key_verified',['yes','no'])->default('no'); $table->enum('spf_key_verified',['yes','no'])->default('no'); $table->enum('text_verified',['yes','no'])->default('no'); $table->enum('dmarc_key_verified',['yes','no'])->default('no'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('domains'); } }