diff --git a/hackathon/models.py b/hackathon/models.py index 9e8955e..73ffede 100644 --- a/hackathon/models.py +++ b/hackathon/models.py @@ -24,6 +24,7 @@ class SignUp(db.Model): orientation = db.relationship('Orientation', backref='signup', lazy=True) highest_level = db.Column(db.String, nullable=False) major = db.relationship('Major', backref='signup', lazy=True) + photo = db.relationship('Photo', backref='signup', lazy=True) @@ -238,7 +239,7 @@ def __init__(self, form_data, signup_id): -class photo(db.Model): +class Photo(db.Model): __tablename__ = 'photo' id = db.Column(db.Integer, primary_key=True, autoincrement=True) signup_id = db.Column(db.Integer, db.ForeignKey('signup.id'), nullable=False)