- 機台日誌:對齊 Luxury UI 規範,實作整合式佈局與分頁組件。 - 多語系:完成機台日誌繁、英、日三語系翻譯與動態處理。 - UI 規範:更新 SKILL.md 定義「標準列表 Bible」。 - 後端:完善 TenantScoped 隔離邏輯,修復儀表板死循環與 User Model 缺失。 - IoT:擴展機台、會員 Model 並建立交易、商品、狀態等核心表結構。 - 基礎設施:設置台北時區與 Docker 環境變數同步。
34 lines
878 B
PHP
34 lines
878 B
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('translations', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('group', 50)->comment('分組 (product, category, system)');
|
|
$table->string('key', 100)->comment('字典鍵值');
|
|
$table->string('locale', 10)->comment('語系代碼');
|
|
$table->text('value')->comment('翻譯內容');
|
|
$table->timestamps();
|
|
|
|
$table->unique(['group', 'key', 'locale']);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('translations');
|
|
}
|
|
};
|