fix : Category, Product 관련 테이블 정리 (Models, DB, seeder)

This commit is contained in:
2025-08-22 15:57:14 +09:00
parent 5f62179473
commit 189bdbfd80
10 changed files with 569 additions and 45 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Commons\Category;
class CategorySeeder extends Seeder
{
public function run(): void
{
Category::create([
'tenant_id' => 1,
'parent_id' => null,
'code_group' => 'product',
'code' => 'DEFAULT',
'name' => '기본 카테고리',
'profile_code'=> 'FINISHED_GOOD', // capability_profile 참조
'is_active' => 1,
'sort_order' => 1,
'description' => '시스템 기본 카테고리',
]);
}
}