Files
bambuddy/backend/app/schemas/user_notifications.py
T
Thomas Rambach 9562d66b6b Feature: Advanced Authentication User Email Notifications (#693)
Feature: Advanced Authentication User Email Notifications (#693)
2026-03-17 12:01:18 +01:00

25 lines
609 B
Python

"""Schemas for user email notification preferences."""
from pydantic import BaseModel
class UserEmailPreferenceResponse(BaseModel):
"""Response schema for user email notification preferences."""
notify_print_start: bool
notify_print_complete: bool
notify_print_failed: bool
notify_print_stopped: bool
class Config:
from_attributes = True
class UserEmailPreferenceUpdate(BaseModel):
"""Update schema for user email notification preferences."""
notify_print_start: bool
notify_print_complete: bool
notify_print_failed: bool
notify_print_stopped: bool