<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fat_kinds', function (Blueprint $table) {
            $table->id();
            $table->string('fat_name', 50)->comment('名称');
            $table->string('icon')->comment('默认图标');
            $table->string('h_icon')->comment("高亮图标");
            $table->string('unit', 10)->comment("单位");
            $table->timestamps();
        });
    }

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