fix: link old

This commit is contained in:
hashbro
2026-09-14 01:09:01 +08:00
parent b49755c900
commit d5ae0bf6ff
29 changed files with 1584 additions and 212 deletions
+49
View File
@@ -0,0 +1,49 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AnalyticsDailyDim extends Model
{
public $timestamps = false;
public const KIND_VISIT_OS = 'visit_os';
public const KIND_VISIT_VERSION = 'visit_version';
public const KIND_DEVICE_VERSION = 'device_version';
public const KIND_SURVIVAL = 'survival';
public const KIND_SURVIVAL_WALLET = 'survival_wallet';
public const DIM_IOS = 'iOS';
public const DIM_OTHER = '其他';
public const DIM_UNKNOWN = '未知';
protected $fillable = [
'stat_date',
'scope_key',
'kind',
'dim',
'uv',
'effective_uv',
'devices',
'seconds_sum',
'computed_at',
];
protected function casts(): array
{
return [
'uv' => 'integer',
'effective_uv' => 'integer',
'devices' => 'integer',
'seconds_sum' => 'integer',
'computed_at' => 'datetime',
];
}
}