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

65
app/Models/LogQso.php Normal file
View File

@@ -0,0 +1,65 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class LogQso extends Model
{
use HasFactory;
protected $table = 'log_qsos';
protected $fillable = [
'log_id',
'qso_index',
'time_on',
'band',
'freq_khz',
'mode',
'my_call',
'my_rst',
'my_serial',
'my_locator',
'dx_call',
'dx_rst',
'dx_serial',
'rx_wwl',
'rx_exchange',
'mode_code',
'points',
'wwl',
'dxcc',
'new_exchange',
'new_wwl',
'new_dxcc',
'duplicate_qso',
'raw_line',
];
protected $casts = [
'log_id' => 'integer',
'qso_index' => 'integer',
'time_on' => 'datetime',
'freq_khz' => 'integer',
'points' => 'integer',
'new_exchange'=> 'boolean',
'new_wwl' => 'boolean',
'new_dxcc' => 'boolean',
'duplicate_qso'=> 'boolean',
];
public function log(): BelongsTo
{
return $this->belongsTo(Log::class);
}
}