@@ -0,0 +1,542 @@
+# -*- coding: utf-8 -*-%0A%0A# project imports%0Afrom project.extensions import db%0A%0A%0Aclass Team(db.Model):%0A    __tablename__ = 'teams'%0A    id = db.Column(db.Integer, primary_key=True)%0A    name = db.Column(db.String(32), unique=True, nullable=False)%0A    fk_owner = db.Column(db.Integer, db.ForeignKey('users.id'), index=True, nullable=False)%0A    owner = db.relationship('User', foreign_keys='Team.fk_owner')%0A%0A    def to_json(self):%0A        return dict(id=self.id,%0A                    name=self.name,%0A                    owner=self.owner.to_json())%0A%0A

add Team model