Skip to content
Snippets Groups Projects
Commit 73f917f3 authored by danielmyren's avatar danielmyren
Browse files

Change DB field to integer

parent 258e2eef
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,6 @@ class Role(db.Model):
class SweElectionResult(db.Model):
__tablename__ = "swe_election_results"
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
db_county_code: Mapped[float] = mapped_column(String(3), nullable=False)
db_county_code: Mapped[int] = mapped_column(Integer, nullable=False)
db_county_name: Mapped[str] = mapped_column(String(255), nullable=False)
db_votes_each_year: Mapped[dict] = mapped_column(JSON, nullable=True) # Contains the votes for each year in that län per party
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment