UserResource add seeding leeching data + seed bonus per hour

This commit is contained in:
xiaomlove
2025-11-21 00:41:03 +07:00
parent ab7c3a71a4
commit ac83b68929
6 changed files with 97 additions and 20 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->decimal('seed_bonus_per_hour', 20, 1)->default(0)->after('seed_points_per_hour');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('seed_bonus_per_hour');
});
}
};