for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateChosenInlineResultTable extends Migration
{
public function up(): void
Schema::create('chosen_inline_result', static function (Blueprint $table) {
$table->bigInteger('id', true)->unsigned()->comment('Unique identifier for this entry');
$table->char('result_id')->default('')->comment('Identifier for this result');
$table->bigInteger('user_id')->nullable()->index('user_id')->comment('Unique user identifier');
$table->char('location')->nullable()->comment('Location object, user\'s location');
$table->char('inline_message_id')->nullable()->comment('Identifier of the sent inline message');
$table->text('query')->comment('The query that was used to obtain the result');
$table->dateTime('created_at')->nullable()->comment('Entry date creation');
});
}
public function down(): void
Schema::dropIfExists('chosen_inline_result');