<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Location extends Model
{
    use HasFactory;

    protected $table = "ADRES_COMP";
    protected $primaryKey = 'RID';

    /**
     * Relates to fk address birth
     * @return HasMany
     */
    public function location(): HasMany
    {
        return $this->hasMany(Address::class, 'location', 'rid');
    }


}
