From 0e9f8be423f1a7bb99b7ff1311311fc35c6aa911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 4 Feb 2026 22:22:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EB=AF=B8=EC=88=98=EA=B8=88(receivables)?= =?UTF-8?q?=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- ..._02_04_222005_create_receivables_table.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2026_02_04_222005_create_receivables_table.php diff --git a/database/migrations/2026_02_04_222005_create_receivables_table.php b/database/migrations/2026_02_04_222005_create_receivables_table.php new file mode 100644 index 0000000..d672cd4 --- /dev/null +++ b/database/migrations/2026_02_04_222005_create_receivables_table.php @@ -0,0 +1,35 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('customer_name', 100); + $table->string('invoice_no', 50); + $table->date('issue_date'); + $table->date('due_date')->nullable(); + $table->string('category', 50)->default('서비스'); + $table->bigInteger('amount')->default(0); + $table->bigInteger('collected_amount')->default(0); + $table->string('status', 20)->default('outstanding'); // outstanding, partial, collected, overdue + $table->string('description', 255)->nullable(); + $table->text('memo')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->index(['tenant_id', 'status']); + $table->index(['tenant_id', 'due_date']); + }); + } + + public function down(): void + { + Schema::dropIfExists('receivables'); + } +};