Initial commit
This commit is contained in:
56
app/Models/WorkingQso.php
Normal file
56
app/Models/WorkingQso.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user