页面优化,功能修复

This commit is contained in:
jiangdong.cheng
2026-02-12 13:06:12 +08:00
parent d35c397e8d
commit 67cd9501de
24 changed files with 975 additions and 242 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('site_settings', function (Blueprint $table): void {
$table->id();
$table->string('setting_key', 120)->unique();
$table->json('setting_value')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('site_settings');
}
};

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('feedback_entries', function (Blueprint $table): void {
$table->id();
$table->string('feedback_type', 40);
$table->string('title', 180);
$table->text('description');
$table->string('contact', 160)->nullable();
$table->string('status', 30)->default('new');
$table->string('ip_address', 45)->nullable();
$table->timestamps();
$table->index(['feedback_type', 'status']);
});
}
public function down(): void
{
Schema::dropIfExists('feedback_entries');
}
};