Skip to content

Commit

Permalink
readded default value fpr user
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenstyp committed Mar 18, 2024
1 parent 5a8105c commit 3173aa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SnackBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def __repr__(self):

class User(db.Model):
userid: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
firstName: Mapped[str] = mapped_column(String(80), nullable=True)
lastName: Mapped[str] = mapped_column(String(80), nullable=False)
firstName: Mapped[str] = mapped_column(String(80), nullable=True, default='')
lastName: Mapped[str] = mapped_column(String(80), nullable=False, default='')
imageName: Mapped[str] = mapped_column(String(240), nullable=True, default='')
email: Mapped[str] = mapped_column(String(120), nullable=True)
email: Mapped[str] = mapped_column(String(120), nullable=True, default='')
hidden: Mapped[bool] = mapped_column(default=False)

inpayment: Mapped[List["Inpayment"]] = relationship(back_populates="user")
Expand Down

0 comments on commit 3173aa0

Please sign in to comment.