id(); $table->string('invoice_number')->unique(); $table->foreignIdFor(Client::class)->constrained(); $table->string('status')->default('draft'); $table->date('invoice_date')->nullable(); $table->date('sent_at')->nullable(); $table->date('due_date')->nullable(); $table->unsignedBigInteger('total')->default(0); $table->text('notes')->nullable(); $table->text('internal_notes')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('invoices'); } };