Update db schema

This commit is contained in:
Stijn De Clercq 2023-09-17 17:18:47 +02:00
parent 07b356bff2
commit 271cad9565
2 changed files with 42 additions and 9 deletions

View file

@ -53,15 +53,6 @@ class Bank(Base):
dinks: Mapped[int] = mapped_column(BigInteger, server_default="0", nullable=False)
invested: Mapped[int] = mapped_column(BigInteger, server_default="0", nullable=False)
# Interest rate
interest_level: Mapped[int] = mapped_column(server_default="1", nullable=False)
# Maximum amount that can be stored in the bank
capacity_level: Mapped[int] = mapped_column(server_default="1", nullable=False)
# Maximum amount that can be robbed
rob_level: Mapped[int] = mapped_column(server_default="1", nullable=False)
user: Mapped[User] = relationship(uselist=False, back_populates="bank", lazy="selectin")