fix: adds img src property to pets model

This commit is contained in:
2024-12-04 22:41:17 -03:00
parent d157f294a9
commit 8c54599b7e

View File

@@ -7,6 +7,7 @@ class Pet(db.Model):
name = mapped_column(db.String(255), nullable=False) name = mapped_column(db.String(255), nullable=False)
kind_id = mapped_column(db.Integer, db.ForeignKey('pet_kind.id'), nullable=False) kind_id = mapped_column(db.Integer, db.ForeignKey('pet_kind.id'), nullable=False)
age = mapped_column(db.Integer, default=0, nullable=False) age = mapped_column(db.Integer, default=0, nullable=False)
img_src=mapped_column(db.String(255))
weight = mapped_column(db.Float, default=0, nullable=False) weight = mapped_column(db.Float, default=0, nullable=False)
location = mapped_column(db.String(255), nullable=False) location = mapped_column(db.String(255), nullable=False)
sex = mapped_column(db.String(1), nullable=False) sex = mapped_column(db.String(1), nullable=False)