66 lines
1.2 KiB
PHP
66 lines
1.2 KiB
PHP
<?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);
|
|
}
|
|
}
|