feat: Implement client status validation on login, refine password rules, and simplify customer resource status.

This commit is contained in:
pbao9
2026-03-10 16:27:23 +07:00
parent cf0f2cf686
commit 7fdcc01027
18 changed files with 831 additions and 12 deletions
@@ -0,0 +1,30 @@
<?php
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('invoice_attachments', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('invoice_id')->index();
$table->string('filename'); // tên file gốc
$table->string('path'); // đường dẫn lưu trữ (storage)
$table->string('disk')->default('public');
$table->string('mime_type', 100)->nullable();
$table->unsignedBigInteger('size')->default(0); // bytes
$table->string('uploaded_by')->nullable(); // staff username/id
$table->timestamps();
$table->foreign('invoice_id')->references('id')->on('invoice')->onDelete('cascade');
});
}
public function down(): void
{
Schema::dropIfExists('invoice_attachments');
}
};