mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
25 lines
609 B
Python
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
|