feat: client_code 백엔드 자동 생성으로 변경

- ClientStoreRequest: client_code 필수→nullable 변경
- ClientService.store(): 프론트 코드 무시, generateClientCode() 자동 생성
- ClientService.update(): client_code 변경 불가 처리
- 코드 형식: 8자리 영숫자 (예: A3B7X9K2)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-21 16:32:44 +09:00
parent 72ba1c560b
commit b74297a75b
2 changed files with 35 additions and 17 deletions

View File

@@ -53,7 +53,7 @@ public function rules(): array
{
return [
'client_group_id' => 'nullable|integer',
'client_code' => 'required|string|max:50',
'client_code' => 'nullable|string|max:50', // 프론트에서 보내도 백엔드에서 자동 생성
'name' => 'required|string|max:100',
'client_type' => [
'nullable',