<?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
    {
        // Update ai_chat_token_usage
        Schema::table('ai_chat_token_usage', function (Blueprint $table) {
            $table->integer('week_number')->after('day');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        // Remove week_number column
        Schema::table('ai_chat_token_usage', function (Blueprint $table) {
            $table->dropColumn('week_number');
        });

    }
};
