User Statistik

This commit is contained in:
Kevin Adametz 2026-05-18 17:23:28 +02:00
parent 70240d2b6a
commit 53bdba33cd
24 changed files with 2633 additions and 9 deletions

View file

@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BackofficeStatisticsSnapshot extends Model
{
protected $table = 'backoffice_statistics_snapshots';
protected $fillable = [
'user_id',
'year',
'month',
'payload',
'calculated_at',
];
protected function casts(): array
{
return [
'user_id' => 'int',
'year' => 'int',
'month' => 'int',
'payload' => 'array',
'calculated_at' => 'datetime',
];
}
}