View file File name : 2023_01_25_134037_create_customers_table.php Content :<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCustomersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('customers', function (Blueprint $table) { $table->integer('customer_id', true); $table->bigInteger('team_id')->nullable(); $table->integer('assistent_id')->nullable(); $table->integer('cob_id')->nullable(); $table->integer('persona_id')->nullable(); $table->integer('sector_id')->nullable(); $table->integer('stage_id')->nullable(); $table->integer('brand_id')->nullable(); $table->string('website_id', 10)->nullable(); $table->integer('score')->nullable(); $table->string('credito', 22)->nullable(); $table->integer('contactable')->nullable(); $table->integer('opened')->nullable()->default(2); $table->enum('emailsent', ['1', '2'])->default('2'); $table->string('embracon_id', 50)->nullable(); $table->timestamps(); $table->integer('n_atendimentos')->nullable()->default(0); $table->integer('produto_id')->nullable(); $table->integer('parcelas')->nullable(); $table->integer('atendimento_id')->nullable(); $table->integer('timeline_customer_id')->nullable(); $table->string('conversao_id')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('customers'); } }