Backup
extends BaseEntity
in package
Backup entity — tracks backup metadata.
Table of Contents
Properties
- $branch_id : int|null
- $created : DateTime
- $filename : string
- $id : int
- $modified : DateTime
- $notes : string|null
- $row_count : int|null
- $size_bytes : int|null
- $status : string
- $storage_type : string
- $table_count : int|null
- $_accessible : array<string|int, mixed>
Methods
- getBranchId() : int|null
- Get the branch ID for authorization checks.
Properties
$branch_id
public
int|null
$branch_id
Associated branch ID (when applicable)
$created
public
DateTime
$created
$filename
public
string
$filename
$id
public
int
$id
$modified
public
DateTime
$modified
$notes
public
string|null
$notes
$row_count
public
int|null
$row_count
$size_bytes
public
int|null
$size_bytes
$status
public
string
$status
$storage_type
public
string
$storage_type
$table_count
public
int|null
$table_count
$_accessible
protected
array<string|int, mixed>
$_accessible
= ['filename' => true, 'size_bytes' => true, 'table_count' => true, 'row_count' => true, 'storage_type' => true, 'status' => true, 'notes' => true]
Methods
getBranchId()
Get the branch ID for authorization checks.
public
getBranchId() : int|null
Child classes should override for complex branch relationships.
Return values
int|null —The branch ID, or null if no association