Mercurial > borealpoint
diff database/migrations/2025_08_29_004806_create_clients_table.php @ 2:90296614b7e2 default tip
Adding in the base for the clients table
| author | luka |
|---|---|
| date | Thu, 28 Aug 2025 20:55:40 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/database/migrations/2025_08_29_004806_create_clients_table.php Thu Aug 28 20:55:40 2025 -0400 @@ -0,0 +1,31 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Wizard\Framework\Database\MyBlueprint as Blueprint; +use Wizard\Framework\Database\MySchema as Schema; + +return new class extends Migration +{ + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('clients', function (Blueprint $table) { + $table->baseColumns(); + $table->string('name'); + $table->string('email')->nullable(); + $table->string('phone_number')->nullable(); + $table->string('address')->nullable(); + $table->text('notes')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('clients'); + } +};
