Files
vkv/app/Models/CountryWwl.php
Zdeněk Burda 41e3ce6f25 Initial commit
2026-01-09 21:26:40 +01:00

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'
];
}