Files
sam-manage/database/seeders/SalesRoleSeeder.php
김보곤 ced9110f3b refactor:영업파트너 역할 2개로 단순화 (recruiter 제거)
- 역할: sales(영업파트너), manager(상담매니저) 2개만 유지
- recruiter(유치담당) 역할 완전 제거
- 역할 레이블 변경: 영업→영업파트너, 매니저→상담매니저
- 통계, 필터, 역할관리 UI 모두 업데이트

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 16:43:02 +09:00

47 lines
1.2 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\Role;
use Illuminate\Database\Seeder;
class SalesRoleSeeder extends Seeder
{
/**
* 영업파트너 역할 시더
*
* 모든 영업 담당자는 "영업파트너"라는 동일한 직위
* 역할은 수행하는 업무를 정의
*/
public function run(): void
{
$tenantId = 1; // HQ 테넌트
$roles = [
[
'name' => 'sales',
'description' => '영업파트너 - 고객 발굴, 계약 체결',
],
[
'name' => 'manager',
'description' => '상담매니저 - 고객 상담, 인터뷰 정리',
],
];
foreach ($roles as $roleData) {
Role::updateOrCreate(
[
'tenant_id' => $tenantId,
'name' => $roleData['name'],
],
[
'description' => $roleData['description'],
'guard_name' => 'web',
]
);
}
$this->command->info('영업파트너 역할이 생성되었습니다: sales, manager');
}
}