id(); $table->foreignId('product_id')->constrained('products'); $table->date('date'); $table->float('margin')->default(0); $table->unsignedBigInteger('nb_sale')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('stats'); } }