2024_12_19_161249_create_clients_table.php 613 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. /**
  6. * Клиенты
  7. */
  8. return new class extends Migration {
  9. public function up(): void
  10. {
  11. Schema::create('clients', function (Blueprint $table) {
  12. $table->id();
  13. $table->string('name');
  14. $table->string('phone');
  15. $table->string('email');
  16. $table->softDeletes();
  17. $table->timestamps();
  18. });
  19. }
  20. public function down(): void
  21. {
  22. Schema::dropIfExists('clients');
  23. }
  24. };