<?php

namespace App\Models;

use App\Libs\Database\Eloquent\ContentTypeModel;
use App\Models\GenericBackoffice\Traits\LanguageSupportTrait;

class MicrosoftUser extends ContentTypeModel
{
    use LanguageSupportTrait;

    protected $fillable = [
        'email',
        'ms_id',
        'backend_user_id',
        'is_new'
    ];

    protected $casts = [
        'is_new' => 'boolean'
    ];

    protected $hidden = ['languages', "websites"];
    protected $with = ['languages', "websites"];

    /**
     * Relationship with ContactFolders
     */
    public function contactFolders()
    {
        return $this->hasMany(ContactFolder::class);
    }
}
