class Idea(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(128), unique=False) description = db.Column(db.Text(), nullable=True) user_id = db.Column(db.Integer, db.ForeignKey('user.id')) def __repr__(self): return '' % self.name