add global settings api

This commit is contained in:
arifal hidayat
2025-01-26 03:57:48 +07:00
parent 8e819eedb5
commit 5d0965bd3b
6 changed files with 168 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
<?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('global_settings', function (Blueprint $table) {
$table->id();
$table->string('key')->unique();
$table->text('value');
$table->string('type')->nullable();
$table->string('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('global_settings');
}
};