<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ContactGroupMember extends Model
{
    protected $table = 'meet_contact_group_members';

    protected $fillable = [
        'contact_group_id', 'email', 'user_ref', 'display_name',
    ];

    public function group(): BelongsTo
    {
        return $this->belongsTo(ContactGroup::class, 'contact_group_id');
    }
}
