Initial commit
This commit is contained in:
31
app/Models/CountryWwl.php
Normal file
31
app/Models/CountryWwl.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user