<?php

namespace App\Models;

class Notification extends BaseModel
{
    public function create(array $data): void
    {
        $stmt = $this->pdo->prepare('INSERT INTO notifications (user_id, type, message, is_read) 
            VALUES (:user_id, :type, :message, 0)');
        $stmt->execute([
            'user_id' => $data['user_id'],
            'type' => $data['type'],
            'message' => $data['message'],
        ]);
    }
}

