<?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()
{
    Schema::table('users', function (Blueprint $table) {

        $table->integer('likes')->default(0); // ❤️
        $table->integer('answered_questions')->default(0); // ❓

        $table->integer('gems')->default(0); // 💎
        $table->decimal('balance', 10, 2)->default(0); // 💰
    });
}

public function down()
{
    Schema::table('users', function (Blueprint $table) {
        $table->dropColumn([
            'likes',
            'answered_questions',
            'gems',
            'balance'
        ]);
    });
}
};
