id(); $table->string('nomor_penjualan')->unique(); $table->timestamp('waktu')->useCurrent(); $table->unsignedBigInteger('subtotal'); $table->unsignedBigInteger('diskon')->default(0); $table->unsignedBigInteger('pajak')->default(0); $table->unsignedBigInteger('total'); $table->string('metode_pembayaran'); $table->unsignedBigInteger('jumlah_bayar'); $table->unsignedBigInteger('kembalian')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('penjualan'); } };