[FEAT] 實作公共事業費附件上傳管理與更新 UI 協作規範防呆機制
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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('utility_fee_attachments', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('utility_fee_id')->constrained('utility_fees')->cascadeOnDelete();
|
||||
$table->string('file_path'); // 儲存路徑
|
||||
$table->string('original_name'); // 原始檔名
|
||||
$table->string('mime_type'); // MIME 類型
|
||||
$table->unsignedBigInteger('size'); // 檔案大小 (bytes)
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('utility_fee_attachments');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user