Skip to content

Commit

Permalink
Fixed foreign constraint typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Oumy Mbaye authored and Oumy Mbaye committed Aug 14, 2024
1 parent 56c0a6c commit 2e9db56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userportaldatamodel/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Notification(Base):
__tablename__ = "notification"

notification_id = Column(Integer, ForeignKey("notification_log.id"), primary_key=True, nullable=False)
user_id = Column(Integer, ForeignKey("associated_useer_roles.id"), primary_key=True, nullable=False)
user_id = Column(Integer, ForeignKey("associated_user_roles.id"), primary_key=True, nullable=False)
seen = Column(Boolean, nullable=False, server_default='false')

notification_log = relationship("notification_log", backref="notification")
Expand Down

0 comments on commit 2e9db56

Please sign in to comment.