User Statistik
This commit is contained in:
parent
70240d2b6a
commit
53bdba33cd
24 changed files with 2633 additions and 9 deletions
29
app/Models/BackofficeStatisticsSnapshot.php
Normal file
29
app/Models/BackofficeStatisticsSnapshot.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue