32 lines
759 B
PHP
32 lines
759 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CountryWwl extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'countries_wwl';
|
|
|
|
// Nemáme primární klíč typu int → vypnout auto increment
|
|
public $incrementing = false;
|
|
|
|
// Primární klíč není integer → type = string
|
|
protected $keyType = 'string';
|
|
|
|
// Eloquent NEPODPORUJE composite PK → necháme primaryKey prázdné
|
|
protected $primaryKey = null;
|
|
|
|
// Zakázat timestamps auto-handling? → ne, používáš timestamps v DB
|
|
// Pokud bys je chtěl řídit sám:
|
|
// public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'country_name',
|
|
'wwl'
|
|
];
|
|
}
|