From cee37b3e20c0a5e49cdf88b60c657339b6e16b5d 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:27:13 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EB=AF=B8=EC=A7=80=EA=B8=89=EA=B8=88(payab?= =?UTF-8?q?les)=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A7=88=EC=9D=B4?= =?UTF-8?q?=EA=B7=B8=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 --- ...026_02_04_222513_create_payables_table.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2026_02_04_222513_create_payables_table.php diff --git a/database/migrations/2026_02_04_222513_create_payables_table.php b/database/migrations/2026_02_04_222513_create_payables_table.php new file mode 100644 index 0000000..726f316 --- /dev/null +++ b/database/migrations/2026_02_04_222513_create_payables_table.php @@ -0,0 +1,35 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('vendor_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('paid_amount')->default(0); + $table->string('status', 20)->default('unpaid'); // unpaid, partial, paid, 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('payables'); + } +};