id(); $table->string('name')->comment('等级名称'); $table->string('slug')->comment('标识'); $table->unsignedBigInteger('growth_value')->default(0)->comment('等级成长值'); $table->unsignedInteger('sort')->comment('等级'); $table->integer('ratio')->comment('返佣比例, 10 => 10%'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('agents'); } }