mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-02-20 07:59:50 -05:00
16 lines
368 B
Python
16 lines
368 B
Python
from uuid import UUID
|
|
|
|
from sqlalchemy import DateTime
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from media_manager.database import Base
|
|
|
|
|
|
class Notification(Base):
|
|
__tablename__ = "notification"
|
|
|
|
id: Mapped[UUID] = mapped_column(primary_key=True)
|
|
message: Mapped[str]
|
|
read: Mapped[bool]
|
|
timestamp = mapped_column(DateTime, nullable=False)
|