feat: 앱 버전 관리 페이지 구현
- AppVersion 모델, Service, Controller - 버전 등록 폼 (APK 업로드, 강제 업데이트 설정) - 버전 목록 테이블 (활성 토글, 다운로드 수, 삭제) - /app-versions 라우트 추가 - app_releases 스토리지 디스크 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
36
app/Models/AppVersion.php
Normal file
36
app/Models/AppVersion.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class AppVersion extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
'version_code',
|
||||
'version_name',
|
||||
'platform',
|
||||
'release_notes',
|
||||
'apk_path',
|
||||
'apk_size',
|
||||
'apk_original_name',
|
||||
'force_update',
|
||||
'is_active',
|
||||
'download_count',
|
||||
'published_at',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'version_code' => 'integer',
|
||||
'apk_size' => 'integer',
|
||||
'force_update' => 'boolean',
|
||||
'is_active' => 'boolean',
|
||||
'download_count' => 'integer',
|
||||
'published_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user