From e371b7c9ab36fd8f60df501f930f50c2b391a213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 12 Mar 2026 14:13:34 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[pmis]=20=EC=9E=A5=EB=B9=84=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?(pmis=5Fequipments)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...12_150000_create_pmis_equipments_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2026_03_12_150000_create_pmis_equipments_table.php diff --git a/database/migrations/2026_03_12_150000_create_pmis_equipments_table.php b/database/migrations/2026_03_12_150000_create_pmis_equipments_table.php new file mode 100644 index 0000000..3042742 --- /dev/null +++ b/database/migrations/2026_03_12_150000_create_pmis_equipments_table.php @@ -0,0 +1,39 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('company_name', 200); + $table->string('equipment_code', 50)->nullable(); + $table->string('equipment_name', 200); + $table->string('specification', 300)->nullable(); + $table->string('unit', 50)->nullable(); + $table->string('equipment_number', 100); + $table->string('operator', 50)->nullable()->comment('운전원'); + $table->date('inspection_end_date')->nullable()->comment('검사종료일'); + $table->boolean('inspection_not_applicable')->default(false)->comment('검사 해당없음'); + $table->date('insurance_end_date')->nullable()->comment('보험종료일'); + $table->boolean('insurance_not_applicable')->default(false)->comment('보험 해당없음'); + $table->json('options')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->index('tenant_id'); + $table->index(['tenant_id', 'company_name']); + $table->index(['tenant_id', 'equipment_name']); + }); + } + + public function down(): void + { + Schema::dropIfExists('pmis_equipments'); + } +};