From 422bad7dfcacbc165e2cba60b497f1afe2db0e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 5 Feb 2026 06:14:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EB=B6=80=EA=B0=80=EC=84=B8=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20vat=5Frecords=20=ED=85=8C=EC=9D=B4=EB=B8=94=20?= =?UTF-8?q?=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=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_05_100000_create_vat_records_table.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 database/migrations/2026_02_05_100000_create_vat_records_table.php diff --git a/database/migrations/2026_02_05_100000_create_vat_records_table.php b/database/migrations/2026_02_05_100000_create_vat_records_table.php new file mode 100644 index 0000000..a7a065d --- /dev/null +++ b/database/migrations/2026_02_05_100000_create_vat_records_table.php @@ -0,0 +1,37 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('period', 20); // 2026-1H, 2025-2H + $table->string('type', 20)->default('sales'); // sales, purchase + $table->string('partner_name', 100); // 거래처명 + $table->string('invoice_no', 50); // 세금계산서번호 + $table->date('invoice_date')->nullable(); // 발행일 + $table->bigInteger('supply_amount')->default(0); // 공급가액 + $table->bigInteger('vat_amount')->default(0); // 부가세 + $table->bigInteger('total_amount')->default(0); // 합계 + $table->string('status', 20)->default('pending');// pending, filed, paid + $table->text('memo')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->index(['tenant_id', 'period']); + $table->index(['tenant_id', 'type']); + }); + } + + public function down(): void + { + Schema::dropIfExists('vat_records'); + } +};