From 8c54599b7e14b9ced90efef6da92909060c27151 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Wed, 4 Dec 2024 22:41:17 -0300 Subject: [PATCH] fix: adds img src property to pets model --- app/models/pet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/pet.py b/app/models/pet.py index 8218c3d..bc781fa 100644 --- a/app/models/pet.py +++ b/app/models/pet.py @@ -7,6 +7,7 @@ class Pet(db.Model): name = mapped_column(db.String(255), nullable=False) kind_id = mapped_column(db.Integer, db.ForeignKey('pet_kind.id'), 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) location = mapped_column(db.String(255), nullable=False) sex = mapped_column(db.String(1), nullable=False)