Đóng gói cuối tuần
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<?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('customers', function (Blueprint $table) {
|
||||
@@ -10,10 +12,10 @@ return new class extends Migration {
|
||||
$table->string('full_name');
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->jsonb('address')->nullable(); // Lưu cấu trúc: số nhà, phường, quận...
|
||||
$table->jsonb('address')->nullable();
|
||||
$table->date('dob')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void { Schema::dropIfExists('customers'); }
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user