Initial commit
This commit is contained in:
38
app/Models/Cty.php
Normal file
38
app/Models/Cty.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Cty extends Model
|
||||
{
|
||||
protected $table = 'cty';
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'country_name',
|
||||
'dxcc',
|
||||
'cq_zone',
|
||||
'itu_zone',
|
||||
'continent',
|
||||
'latitude',
|
||||
'longitude',
|
||||
'time_offset',
|
||||
'prefix',
|
||||
'prefix_norm',
|
||||
'precise',
|
||||
'source'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'dxcc' => 'integer',
|
||||
'cq_zone' => 'integer',
|
||||
'itu_zone' => 'integer',
|
||||
'latitude' => 'float',
|
||||
'longitude' => 'float',
|
||||
'time_offset' => 'float',
|
||||
'precise' => 'boolean',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user