id(); $table->string('invoice_number', 50)->unique(); $table->string('customer_name', 200); $table->string('customer_phone', 20)->nullable(); $table->text('customer_address')->nullable(); $table->integer('amount'); $table->date('date'); $table->date('due_date')->nullable(); $table->enum('status', InvoiceStatus::values())->default(InvoiceStatus::UNPAID->value); $table->text('description')->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('invoices'); } };