id(); $table->foreignId('user_id')->constrained()->onDelete('cascade'); $table->string('invoice_number')->unique(); $table->decimal('subtotal', 10, 2); $table->decimal('tax', 10, 2); $table->decimal('total', 10, 2); $table->enum('payment_method', ['cash', 'credit_card', 'debit_card']); $table->enum('status', ['pending', 'completed', 'cancelled'])->default('pending'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('sales'); } };