View file File name : 2023_01_25_134037_create_produtos_table.php Content :<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProdutosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('produtos', function (Blueprint $table) { $table->integer('produto_id', true); $table->string('thumb', 200)->default('prod_default.jpg'); $table->enum('ativo', ['0', '1'])->nullable(); $table->integer('website_id'); $table->string('produto', 30); $table->string('credito', 30); $table->string('parcela', 20)->nullable(); $table->timestamps(); $table->integer('categoria')->nullable(); $table->string('ref')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('produtos'); } }