forked from magonysandormate/PeePal
Majdnem kész
This commit is contained in:
36
Backend/laravel9/app/Models/WcAdatok.php
Normal file
36
Backend/laravel9/app/Models/WcAdatok.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WcAdatok extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public function kerulet(){
|
||||
return $this->belongsTo(Keruletek::class);
|
||||
}
|
||||
|
||||
public function felhasznalo(){
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
protected $table = 'wc_adatok';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nev',
|
||||
'kerulet_id',
|
||||
'kozeli_megall',
|
||||
'akadalym',
|
||||
'ar',
|
||||
'nyitva',
|
||||
'hossz_koord',
|
||||
'szel_koord',
|
||||
'utvonal',
|
||||
'felhasznalo_id'
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user