Laravel-Mini-CRM-Beginners/database/migrations/2024_09_09_122543_create_clients_table.php
2024-09-10 11:26:04 +03:00

37 lines
939 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('clients', function (Blueprint $table) {
$table->id();
$table->string('contact_name');
$table->string('contact_email')->unique();
$table->string('contact_phone_number');
$table->string('company_name');
$table->string('company_address');
$table->string('company_city');
$table->string('company_zip');
$table->integer('company_vat');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('clients');
}
};