<?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::create('logs', function (Blueprint $table) {
            $table->id();
            $table->string('user');  // 使用者
            $table->string('project_number');  // 專案編號
            $table->string('action_type');  // 操作類型
            $table->text('action_content');  // 操作內容
            $table->string('action_result');  // 操作結果
            $table->timestamp('action_timestamp');  // 操作時間
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('logs');
    }
};
