From 6c4deaa298fec9f6291752b264dbc8b26fa40cf8 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 27 Jan 2026 20:56:40 -0600 Subject: [PATCH] Initial work on invoice class --- app/Models/Invoice.php | 10 ++++++ ...026_01_28_024527_create_invoices_table.php | 31 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 app/Models/Invoice.php create mode 100644 database/migrations/2026_01_28_024527_create_invoices_table.php 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'); + } +};