Implement Phase 3: Advanced search, real-time notifications, and Velociraptor integration

Co-authored-by: mblanke <9078342+mblanke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-09 17:33:10 +00:00
parent c8c0c762c5
commit cc1d7696bc
9 changed files with 700 additions and 5 deletions

View File

@@ -0,0 +1,34 @@
from pydantic import BaseModel
from typing import Optional
from datetime import datetime
class NotificationBase(BaseModel):
"""Base notification schema"""
title: str
message: str
notification_type: str
link: Optional[str] = None
class NotificationCreate(NotificationBase):
"""Schema for creating a notification"""
user_id: int
tenant_id: int
class NotificationRead(NotificationBase):
"""Schema for reading notification data"""
id: int
user_id: int
tenant_id: int
is_read: bool
created_at: datetime
class Config:
from_attributes = True
class NotificationUpdate(BaseModel):
"""Schema for updating a notification"""
is_read: bool