<?php

namespace App\Models;

use App\Models\BaseModel;

class AppBackup extends BaseModel
{
    protected $table = 'app_backups';

    public const CREATED_AT = 'create_time';

    public const UPDATED_AT = 'update_time';

    protected $fillable = [
        'app_id',
        'app_name',
        'app_version',
        'backup_type',
        'file_path',
        'file_size',
        'db_tables',
        'status',
        'operator_id',
        'error_message',
    ];

    protected $casts = [
        'db_tables' => 'array',
        'file_size' => 'integer',
    ];
}
