<?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',
    ];
}
