We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3c858 commit beda58cCopy full SHA for beda58c
1 file changed
db/base.py
@@ -129,4 +129,14 @@ def properties(self):
129
)
130
131
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
142
# ============= EOF =============================================
0 commit comments