Initial commit

This commit is contained in:
Zdeněk Burda
2026-01-09 21:26:40 +01:00
parent e83aec6dca
commit 41e3ce6f25
404 changed files with 61250 additions and 28 deletions

56
app/Models/WorkingQso.php Normal file
View File

@@ -0,0 +1,56 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class WorkingQso extends Model
{
use HasFactory;
protected $table = 'working_qsos';
protected $fillable = [
'evaluation_run_id',
'log_qso_id',
'log_id',
'ts_utc',
'call_norm',
'rcall_norm',
'loc_norm',
'rloc_norm',
'band_id',
'mode',
'match_key',
'dupe_key',
'out_of_window',
'errors',
];
protected $casts = [
'evaluation_run_id' => 'integer',
'log_qso_id' => 'integer',
'log_id' => 'integer',
'band_id' => 'integer',
'out_of_window' => 'boolean',
'errors' => 'array',
'ts_utc' => 'datetime',
];
public function evaluationRun(): BelongsTo
{
return $this->belongsTo(EvaluationRun::class);
}
public function logQso(): BelongsTo
{
return $this->belongsTo(LogQso::class);
}
public function log(): BelongsTo
{
return $this->belongsTo(Log::class);
}
}