Initial commit
This commit is contained in:
50
app/Models/ContestParameter.php
Normal file
50
app/Models/ContestParameter.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ContestParameter extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'contests_parameters';
|
||||
|
||||
protected $fillable = [
|
||||
'contest_id',
|
||||
'log_type',
|
||||
'ignore_slash_part',
|
||||
'ignore_third_part',
|
||||
'letters_in_rst',
|
||||
'discard_qso_rec_diff_call',
|
||||
'discard_qso_sent_diff_call',
|
||||
'discard_qso_rec_diff_rst',
|
||||
'discard_qso_sent_diff_rst',
|
||||
'discard_qso_rec_diff_code',
|
||||
'discard_qso_sent_diff_code',
|
||||
'unique_qso',
|
||||
'time_tolerance',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'contest_id' => 'integer',
|
||||
'ignore_slash_part' => 'boolean',
|
||||
'ignore_third_part' => 'boolean',
|
||||
'letters_in_rst' => 'boolean',
|
||||
'discard_qso_rec_diff_call' => 'boolean',
|
||||
'discard_qso_sent_diff_call' => 'boolean',
|
||||
'discard_qso_rec_diff_rst' => 'boolean',
|
||||
'discard_qso_sent_diff_rst' => 'boolean',
|
||||
'discard_qso_rec_diff_code' => 'boolean',
|
||||
'discard_qso_sent_diff_code' => 'boolean',
|
||||
'unique_qso' => 'boolean',
|
||||
'time_tolerance' => 'integer',
|
||||
];
|
||||
|
||||
public function contest(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Contest::class, 'contest_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user