<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Meeting extends Model
{
    protected $fillable = [
        'meeting_id', 'client_id', 'title', 'meeting_datetime', 'location', 'reminders'
    ];

    protected $casts = [
        'reminders' => 'array',
        'meeting_datetime' => 'datetime'
    ];

    public function client()
    {
        return $this->belongsTo(Client::class, 'client_id', 'client_id');
    }
}
