increments('id'); // 主键 + AUTO_INCREMENT $table->string('bot_id')->nullable()->comment('bot_id'); $table->string('bot_token')->nullable()->comment('bot_oken'); $table->string('bot_username')->nullable()->comment('bot名称'); $table->string('subjection_username')->nullable()->comment('隶属飞机用户'); $table->string('subjection_mobile')->nullable()->comment('隶属飞机用户手机号'); $table->text('webhook')->nullable()->comment('webhook_url'); $table->text('memo')->nullable()->comment('备注说明'); $table->timestamp('created_at')->useCurrent()->nullable(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->charset = 'utf8mb4'; $table->collation = 'utf8mb4_0900_ai_ci'; $table->comment('机器人资料'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('tg_bot'); } };