View file File name : 2023_01_25_134037_create_contracts_table.php Content :<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateContractsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('contracts', function (Blueprint $table) { $table->integer('contract_id', true); $table->integer('customer_id')->nullable(); $table->integer('contrato')->nullable(); $table->enum('venda', ['1', '2'])->nullable(); $table->string('socioben', 100)->nullable(); $table->string('tiporesp1', 40)->nullable(); $table->string('tiporesp2', 40)->nullable(); $table->integer('num1assemb')->nullable(); $table->integer('ndn')->nullable(); $table->integer('nplano')->nullable(); $table->string('capitalsubs', 20)->nullable(); $table->enum('divulgar', ['1', '2'])->nullable(); $table->enum('informconta', ['1', '2', '3'])->nullable(); $table->enum('contatipo', ['1', '2'])->nullable(); $table->string('banco', 50)->nullable(); $table->string('agencia', 10)->nullable(); $table->string('conta', 15)->nullable(); $table->string('nomeresp1', 100)->nullable(); $table->string('cpfresp1', 20)->nullable(); $table->string('participacao1', 40)->nullable(); $table->string('nomeresp2', 100)->nullable(); $table->string('cpfresp2', 20)->nullable(); $table->string('participacao2', 40)->nullable(); $table->string('plano', 20)->nullable(); $table->string('prazogrupo', 20)->nullable(); $table->string('contrimensal', 20)->nullable(); $table->string('taxaantecipada', 20)->nullable(); $table->string('taxadiferida', 20)->nullable(); $table->string('fundores', 20)->nullable(); $table->string('valor1prest', 20)->nullable(); $table->string('planopadrao', 20)->nullable(); $table->string('bolsao', 20)->nullable(); $table->string('planoreduzido', 20)->nullable(); $table->string('segurodevida', 20)->nullable(); $table->string('porcentagem', 100)->nullable(); $table->string('valorbasico', 50)->nullable(); $table->string('modelo', 50)->nullable(); $table->string('nomevendedor', 50)->nullable(); $table->string('cpfvendedor', 50)->nullable(); $table->string('nomegerente', 50)->nullable(); $table->string('cpfgerente', 50)->nullable(); $table->integer('marca_id')->nullable(); $table->string('marca', 30)->nullable(); $table->integer('marcaContrato')->nullable(); $table->timestamps(); $table->date('dataParcela1')->nullable(); $table->integer('status')->nullable()->default(1); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('contracts'); } }