first commit from hostslim

This commit is contained in:
2026-03-24 21:12:21 +01:00
commit 20fee7784c
252 changed files with 27385 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class DailyAggregate extends Model
{
protected $fillable = [
'website_id',
'date',
'visitors',
'sessions',
'page_views',
'bounce_count',
'total_duration',
];
protected function casts(): array
{
return [
'visitors' => 'integer',
'sessions' => 'integer',
'page_views' => 'integer',
'bounce_count' => 'integer',
'total_duration' => 'integer',
];
}
public function website(): BelongsTo
{
return $this->belongsTo(Website::class);
}
}