<?php

namespace App\Models;

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

use Illuminate\Database\Eloquent\Model;

class ManageContactus extends Model
{
    use SoftDeletes;
    use HasFactory;
    protected $table = "manage_contact_us";
    protected $fillable = [
        'id',
        'principal_xid',
        'name',
        'email',
        'message',
        'is_reply',
        'reply_message',
        'deleted_at',
        'created_at',
        'updated_at',
        'is_active',
        'created_by',
        'modified_by',
    ];
    public function customer()
    {
        return $this->belongsTo(IamPrincipal::class, 'principal_xid', 'id');
    }
}
