Skip to content

Commit

Permalink
Update pet model
Browse files Browse the repository at this point in the history
  • Loading branch information
apradoada committed Dec 5, 2024
1 parent 8ee452b commit 2f9e150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/pet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

class Pet(db.Model):
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
name: Mapped[str]
possible_names: Mapped[list[str]]
animal_type: Mapped[str]
personality: Mapped[str]
color: Mapped[str]

def to_dict(self):
return {
"id" : self.id,
"name" : self.name,
"possible names": self.possible_names,
"animal type": self.animal_type,
"personality": self.personality,
"coloring": self.color
Expand Down

0 comments on commit 2f9e150

Please sign in to comment.