From 7b93fd7f68c33f1041e46addbc40c9ec0d6dbeef 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:37:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[pmis]=20=EC=9E=90=EC=9E=AC=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=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 --- ..._12_160000_create_pmis_materials_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2026_03_12_160000_create_pmis_materials_table.php diff --git a/database/migrations/2026_03_12_160000_create_pmis_materials_table.php b/database/migrations/2026_03_12_160000_create_pmis_materials_table.php new file mode 100644 index 0000000..826429b --- /dev/null +++ b/database/migrations/2026_03_12_160000_create_pmis_materials_table.php @@ -0,0 +1,34 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('company_name', 200); + $table->string('material_code', 50)->nullable(); + $table->string('material_name', 200); + $table->string('specification', 300)->nullable(); + $table->string('unit', 50)->nullable(); + $table->decimal('design_quantity', 14, 2)->default(0)->comment('설계량'); + $table->json('options')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->index('tenant_id'); + $table->index(['tenant_id', 'company_name']); + $table->index(['tenant_id', 'material_name']); + }); + } + + public function down(): void + { + Schema::dropIfExists('pmis_materials'); + } +};