Files
sam-manage/database/migrations/0001_01_01_000001_create_cache_table.php
hskwon ece1f28747 feat: MNG 인증 시스템 구현
- Laravel Sanctum 기반 세션 인증 시스템 구축
- Service-First 아키텍처: AuthService 작성
- FormRequest 분리: LoginRequest 검증
- DaisyUI 기반 로그인 UI 구현
- 라우트 설정: /login, /logout, /dashboard
- Tailwind CSS 4.x PostCSS 설정
- Vite 빌드 완료

Phase 1-1: 인증 시스템 개발 완료
2025-11-20 16:24:40 +09:00

36 lines
849 B
PHP

<?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::create('cache', function (Blueprint $table) {
$table->string('key')->primary();
$table->mediumText('value');
$table->integer('expiration');
});
Schema::create('cache_locks', function (Blueprint $table) {
$table->string('key')->primary();
$table->string('owner');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('cache');
Schema::dropIfExists('cache_locks');
}
};