<?php

namespace App\Models;

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

class AccountContact extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'account_id',
        'notes',
        'email',
        'address',
        'phone_no',
        'website_url',
        'whatsapp_no',
        'organization',
        'date_of_birth',
        'marital_status',
        'alternative_no',
        'contact_person',
        'business_email',
        'primary_business',
        'secondary_business',
        'national_id_number',
        'account_gender_id',
        'blood_group_id',
        'country_id',
        'state_id',
        'city_id',
        'any_known_allergies',
        'anniversary_date',
        'organization_type',
        'guardian_name',
        'postal_code',
        'pin',
        'house_group_id',
        'language_id',
        'qualifications'
    ];

    public function gender(){
        return $this->belongsTo(Gender::class,'account_gender_id', 'id');
    }
}