diff --git a/database/migrations/2024_03_23_095309_create_stores_table.php b/database/migrations/2024_03_23_095309_create_stores_table.php index cff07d8..91a5a68 100644 --- a/database/migrations/2024_03_23_095309_create_stores_table.php +++ b/database/migrations/2024_03_23_095309_create_stores_table.php @@ -22,7 +22,7 @@ return new class extends Migration $table->string('address')->nullable()->comment('详细地址'); $table->string('lon')->comment('精度'); $table->string('lat')->comment('纬度'); - $table->unsignedInteger('profit_ratio')->default(0)->comment('佣金比例(0-100)'); + $table->decimal('profit_ratio', 5, 2)->unsigned()->default(0)->comment('佣金比例(0-100)'); $table->decimal('profit_money')->default(0)->comment('累计佣金'); $table->string('business_status')->default(1)->comment('营业状态{1: 开业, 2: 关闭}'); $table->timestamps();