from app import db 

class Dog(db.Model):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String)
    breed = db.Column(db.String)
    age = db.Column(db.String)
    chip = db.Column(db.String, default='')
    # tricks can be many to many or one to zero/many


    # this is just a dictionary, using flask it will return as JSON
    def to_dict(self):
        return {
            "id": self.id,
            "name": self.name,
            "breed": self.breed,
            "age": self.age,
            "chip": self.chip,
        }
a93e80ea6726ac9ecf2f80d44acadf5b8cf42bf1
<mask token>


class Dog(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Dog(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def to_dict(self):
        return {'id': self.id, 'name': self.name, 'breed': self.breed,
            'age': self.age, 'chip': self.chip}

<mask token>


class Dog(db.Model):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String)
    breed = db.Column(db.String)
    age = db.Column(db.String)
    chip = db.Column(db.String, default='')

    def to_dict(self):
        return {'id': self.id, 'name': self.name, 'breed': self.breed,
            'age': self.age, 'chip': self.chip}

from app import db


class Dog(db.Model):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String)
    breed = db.Column(db.String)
    age = db.Column(db.String)
    chip = db.Column(db.String, default='')

    def to_dict(self):
        return {'id': self.id, 'name': self.name, 'breed': self.breed,
            'age': self.age, 'chip': self.chip}

from app import db 

class Dog(db.Model):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String)
    breed = db.Column(db.String)
    age = db.Column(db.String)
    chip = db.Column(db.String, default='')
    # tricks can be many to many or one to zero/many


    # this is just a dictionary, using flask it will return as JSON
    def to_dict(self):
        return {
            "id": self.id,
            "name": self.name,
            "breed": self.breed,
            "age": self.age,
            "chip": self.chip,
        }