Skip to content

Commit

Permalink
Merge pull request #22 from czachary9538/master
Browse files Browse the repository at this point in the history
photo database pt 2
  • Loading branch information
czachary9538 authored Mar 28, 2024
2 parents 3086d6b + 0d38789 commit dd6b07a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hackathon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dd6b07a

Please sign in to comment.