feat: Implement client status validation on login, refine password rules, and simplify customer resource status.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user