<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SocialLink extends Model
{
    use HasFactory;

    protected $guarded = [];

    public function sociable()
    {
        return $this->morphTo();
    }

    public function engineer()
    {
        return $this->belongsTo(Engineer::class);
    }

    public function user()
    {
        return $this->belongsTo(User::class)->withTrashed();
    }
}
