Files
sam-api/app/Console/Kernel.php
hskwon 1a796462e4 feat: ERD 자동 생성 시스템 구축 및 모델 오류 수정
- GraphViz 설치를 통한 ERD 다이어그램 생성 지원
- BelongsToTenantTrait → BelongsToTenant 트레잇명 수정
- Estimate, EstimateItem 모델의 인터페이스 참조 오류 해결
- 60개 모델의 완전한 관계도 생성 (graph.png, 4.1MB)
- beyondcode/laravel-er-diagram-generator 패키지 활용

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 22:30:28 +09:00

33 lines
964 B
PHP

<?php
namespace App\Console;
use App\Console\Commands\PruneAuditLogs;
use App\Console\Commands\UpdateLogicalRelationships;
use App\Console\Commands\MakeModelWithRelationships;
use App\Console\Commands\GenerateSimpleRelationships;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
protected $commands = [
PruneAuditLogs::class,
UpdateLogicalRelationships::class,
MakeModelWithRelationships::class,
GenerateSimpleRelationships::class,
];
protected function schedule(Schedule $schedule): void
{
// 매일 새벽 03:10에 감사 로그 정리(환경값 기반 보관기간)
$schedule->command('audit:prune')->dailyAt('03:10');
}
protected function commands(): void
{
// 라우트 콘솔 혹은 커맨드 자동 로딩 필요 시 사용
// $this->load(__DIR__.'/Commands');
}
}