Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function up(): void |
||
12 | { |
||
13 | Schema::create('callback_query', static function (Blueprint $table) { |
||
14 | $table->bigInteger('id')->unsigned()->primary()->comment('Unique identifier for this query'); |
||
15 | $table->bigInteger('user_id')->nullable()->index('user_id')->comment('Unique user identifier'); |
||
16 | $table->bigInteger('chat_id')->nullable()->index('chat_id')->comment('Unique chat identifier'); |
||
17 | $table->bigInteger('message_id')->unsigned()->nullable()->index('message_id')->comment('Unique message identifier'); |
||
18 | $table->char('inline_message_id')->nullable()->comment('Identifier of the message sent via the bot in inline mode, that originated the query'); |
||
19 | $table->char('data')->default('')->comment('Data associated with the callback button'); |
||
20 | $table->dateTime('created_at')->nullable()->comment('Entry date creation'); |
||
21 | $table->index(['chat_id', 'message_id'], 'chat_id_2'); |
||
22 | }); |
||
30 |