Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
10 | { |
||
11 | public function up(): void |
||
12 | { |
||
13 | Schema::create('user', static function (Blueprint $table) { |
||
14 | $table->bigInteger('id')->primary()->comment('Unique user identifier'); |
||
15 | $table->boolean('is_bot')->nullable()->default(0)->comment('True if this user is a bot'); |
||
16 | $table->char('first_name')->default('')->comment('User\'s first name'); |
||
17 | $table->char('last_name')->nullable()->comment('User\'s last name'); |
||
18 | $table->char('username', 191)->nullable()->index('username')->comment('User\'s username'); |
||
19 | $table->char('language_code', 10)->nullable()->comment('User\'s system language'); |
||
20 | $table->timestamps(); |
||
21 | }); |
||
22 | } |
||
29 |