feat(API): 직책/직원/근태 관리 API 개선

- Position 모델: key 필드 추가 및 마이그레이션
- PositionSeeder: 기본 직책 시더 추가
- TenantUserProfile: 프로필 이미지 관련 필드 추가
- Employee Request: 직원 등록/수정 요청 검증 강화
- EmployeeService: 직원 관리 서비스 로직 개선
- AttendanceService: 근태 관리 서비스 개선

🤖 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-30 17:25:13 +09:00
parent 08c9a74cbc
commit d6e18fb54e
9 changed files with 381 additions and 62 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('positions', function (Blueprint $table) {
$table->string('key', 64)->nullable()->after('type')->comment('영문 키 (tenant_user_profiles 연동용)');
$table->unique(['tenant_id', 'type', 'key'], 'positions_tenant_type_key_unique');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('positions', function (Blueprint $table) {
$table->dropUnique('positions_tenant_type_key_unique');
$table->dropColumn('key');
});
}
};