CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('clients', function (Blueprint $table) {
$table->id();
$table->string('client_name');
$table->foreignId('client_category_id')->constrained('client_categories')->cascadeOnDelete();
$table->foreignId('client_country');
$table->foreignId('client_state');
$table->text('client_address');
$table->text('billing_address');
$table->string('contact_name')->nullable();
$table->string('contact_mobile')->nullable();
$table->string('contact_mail')->nullable();
$table->string('fax')->nullable();
$table->string('cin_no')->nullable();
$table->string('pan_no')->nullable();
$table->string('gst_no')->nullable();
$table->string('logo')->nullable();
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->string('modified_by')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('clients');
}
};