|
2
|
1 <?php
|
|
|
2
|
|
|
3 use Illuminate\Database\Migrations\Migration;
|
|
|
4 use Wizard\Framework\Database\MyBlueprint as Blueprint;
|
|
|
5 use Wizard\Framework\Database\MySchema as Schema;
|
|
|
6
|
|
|
7 return new class extends Migration
|
|
|
8 {
|
|
|
9 /**
|
|
|
10 * Run the migrations.
|
|
|
11 */
|
|
|
12 public function up(): void
|
|
|
13 {
|
|
|
14 Schema::create('clients', function (Blueprint $table) {
|
|
|
15 $table->baseColumns();
|
|
|
16 $table->string('name');
|
|
|
17 $table->string('email')->nullable();
|
|
|
18 $table->string('phone_number')->nullable();
|
|
|
19 $table->string('address')->nullable();
|
|
|
20 $table->text('notes')->nullable();
|
|
|
21 });
|
|
|
22 }
|
|
|
23
|
|
|
24 /**
|
|
|
25 * Reverse the migrations.
|
|
|
26 */
|
|
|
27 public function down(): void
|
|
|
28 {
|
|
|
29 Schema::dropIfExists('clients');
|
|
|
30 }
|
|
|
31 };
|