mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 23:39:34 +00:00
15 lines
493 B
Python
15 lines
493 B
Python
from sqlalchemy import Column, String, Text, Boolean, ForeignKey
|
|
from sqlalchemy.dialects.postgresql import UUID, JSONB
|
|
from app.models.base import TenantModel
|
|
|
|
|
|
class Notification(TenantModel):
|
|
__tablename__ = "notifications"
|
|
|
|
user_id = Column(UUID(as_uuid=True), ForeignKey("users.id"), nullable=False)
|
|
type = Column(String(50))
|
|
title = Column(String(255))
|
|
body = Column(Text)
|
|
is_read = Column(Boolean, default=False)
|
|
extra_metadata = Column(JSONB, default=dict)
|