| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function up() |
||
| 11 | { |
||
| 12 | Schema::create(config('phptelegrambot.database.prefix', '') . 'pre_checkout_query', static function (Blueprint $table) { |
||
| 13 | $table->bigInteger('id')->primary()->unsigned()->comment('Unique query identifier'); |
||
| 14 | $table->bigInteger('user_id')->index('user_id')->nullable()->comment('User who sent the query'); |
||
| 15 | $table->char ('currency', 3)->nullable()->comment ('Three-letter ISO 4217 currency code'); |
||
| 16 | $table->bigInteger('total_amount')->nullable()->comment ('Total price in the smallest units of the currency'); |
||
| 17 | $table->char ('invoice_payload', 255)->comment ('Bot specified invoice payload'); |
||
| 18 | $table->char ('shipping_option_id', 255)->nullable()->comment ('Identifier of the shipping option chosen by the user'); |
||
| 19 | $table->text ('order_info')->nullable()->comment ('Order info provided by the user'); |
||
| 20 | $table->timestamp('created_at')->nullable()->comment ('Entry date creation'); |
||
| 21 | }); |
||
| 22 | } |
||
| 23 | |||
| 29 |