id(); $table->foreignId('user_id')->constrained()->onDelete('cascade'); $table->foreignId('menu_id')->constrained('menu_items')->onDelete('cascade'); $table->integer('quantity'); $table->decimal('price', 10, 2); // Harga saat item ditambahkan ke cart $table->decimal('subtotal', 10, 2); // Harga * quantity $table->string('notes')->nullable(); // Catatan khusus untuk item $table->timestamps(); }); } public function down() { Schema::dropIfExists('carts'); } };