File: /www/wwwroot/erp.nhatnamsst.com/erp/database/migrations/2025_06_19_075044_create_settings_table.php
<?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('settings', function (Blueprint $table) {
$table->id();
$table->string('setting_key')->unique();
$table->string('setting_name')->nullable();
$table->longText('plain_value')->nullable();
$table->text('desc')->nullable();
$table->tinyInteger('type_input')->nullable();
$table->tinyInteger('type_data')->nullable();
$table->tinyInteger('group')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings');
}
};