Skip to content

Commit beda58c

Browse files
committed
fix: reenabled User for use with continuum
1 parent bd3c858 commit beda58c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

db/base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,14 @@ def properties(self):
129129
)
130130

131131

132+
class User(Base):
133+
__tablename__ = "user"
134+
135+
id: Mapped[int] = mapped_column(Integer, primary_key=True, nullable=False)
136+
username: Mapped[str] = mapped_column(String(length=255), nullable=False)
137+
138+
def __str__(self):
139+
return self.username
140+
141+
132142
# ============= EOF =============================================

0 commit comments

Comments
 (0)