ruạṛ
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('licenses', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->softDeletes(); $table->string('first_name')->nullable(); $table->string('last_name')->nullable(); $table->string('email')->nullable(); $table->string('license_key')->unique()->nullable(); $table->boolean('is_claimed')->nullable(); $table->string('transaction_reference')->nullable(); $table->unsignedInteger('product_id')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('licenses'); } };
cải xoăn