Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
RemoteConfigHistory
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace App\Http\Models;
4
5use Illuminate\Database\Eloquent\Factories\HasFactory;
6
7/**
8 * RemoteConfigHistory model - audit trail for remote config changes.
9 *
10 * Each entry stores a snapshot of the full config at the time of change,
11 * along with metadata about who made the change and why.
12 *
13 * @property string $_id
14 * @property string $version ISO-8601 timestamp version identifier
15 * @property array $snapshot Full config snapshot at time of change
16 * @property string $changed_by Who made this change
17 * @property string|null $change_description Description of the change
18 * @property \Carbon\Carbon|null $created_at
19 * @property \Carbon\Carbon|null $updated_at
20 */
21class RemoteConfigHistory extends Moloquent
22{
23    use HasFactory;
24
25    /**
26     * The collection name.
27     *
28     * @var string
29     */
30    protected $table = 'remote_config_history';
31
32    /**
33     * The attributes that are mass assignable.
34     *
35     * @var array<string>
36     */
37    protected $fillable = [
38        'version',
39        'snapshot',
40        'changed_by',
41        'change_description',
42    ];
43
44    /**
45     * The attributes that should be cast.
46     *
47     * @var array<string, string>
48     */
49    protected $casts = [
50        'snapshot' => 'array',
51    ];
52}