<?php

namespace Modules\MedNotify\Entities;

use Illuminate\Database\Eloquent\Model;

/**
 * A user's delivery preference. Rows are matched most-specific-first
 * (event+channel > event > channel > global) by PreferenceResolver.
 */
class MednotifyPreference extends Model
{
    protected $table = 'mednotify_preferences';

    protected $guarded = ['id'];

    protected $casts = [
        'enabled' => 'boolean',
    ];
}
