diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php new file mode 100644 index 0000000..cbc8919 --- /dev/null +++ b/app/Models/Invoice.php @@ -0,0 +1,10 @@ +id(); + $table->string('invoice_number')->unique(); + $table->foreignIdFor(Client::class); + $table->json('lines'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('invoices'); + } +};