nang cap san sang import

This commit is contained in:
2026-05-01 04:33:00 +00:00
parent 6c74c17b48
commit 6ef2e9fe4e
93 changed files with 6542 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
<?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('handovers', function (Blueprint $table) {
$table->id();
$table->foreignId('product_id')->constrained('products')->cascadeOnDelete();
$table->foreignId('customer_id')->constrained('customers')->cascadeOnDelete();
$table->date('handover_date')->nullable();
$table->string('status')->default('chua_du_dieu_kien');
$table->text('remark')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('handovers');
}
};