1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from sqlalchemy import String, ForeignKey
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.models.base import Base, TimestampMixin
|
||||
|
||||
|
||||
class NotificationRead(Base, TimestampMixin):
|
||||
__tablename__ = "notification_reads"
|
||||
|
||||
id: Mapped[str] = mapped_column(String(32), primary_key=True)
|
||||
notification_id: Mapped[str] = mapped_column(
|
||||
String(32), ForeignKey("notifications.id"), index=True
|
||||
)
|
||||
user_id: Mapped[str] = mapped_column(String(32), index=True)
|
||||
Reference in New Issue
Block a user