fix problem with closing subwindows and define field length for id in schema

This commit is contained in:
Thomas Peetz
2025-02-03 17:37:19 +01:00
parent 591171b223
commit f33aaadce7
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class Token(Base, BaseMixin):
name = Column(String(255))
last_used_date: Mapped[datetime] = mapped_column()
enabled = Column(BIT(1))
user_id = Column(String, ForeignKey("user.id"), nullable=False)
user_id = Column(String(255), ForeignKey("user.id"), nullable=False)
user = relationship("User", back_populates="tokens")