<?php

declare(strict_types=1);

namespace Engelsystem\Models\User;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Query\Builder as QueryBuilder;

/**
 * @property string|null $dect
 * @property string|null $email
 * @property string|null $mobile
 *
 * @method static QueryBuilder|Contact[] whereDect($value)
 * @method static QueryBuilder|Contact[] whereEmail($value)
 * @method static QueryBuilder|Contact[] whereMobile($value)
 */
class Contact extends HasUserModel
{
    use HasFactory;

    /** @var array<string, null> default attributes */
    protected $attributes = [ // phpcs:ignore
        'dect'   => null,
        'mobile' => null,
        'email'  => null,
    ];

    /** @var string The table associated with the model */
    protected $table = 'users_contact'; // phpcs:ignore

    /**
     * The attributes that are mass assignable
     *
     * @var array<string>
     */
    protected $fillable = [ // phpcs:ignore
        'user_id',
        'dect',
        'email',
        'mobile',
    ];
}
