id(); $table->date('date'); $table->decimal('shares', 12, 6); // Supports fractional shares $table->decimal('price_per_share', 8, 4); // Price in euros $table->decimal('total_cost', 12, 2); // Total cost in euros $table->timestamps(); $table->index('date'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('purchases'); } };