ambassador map and replace relationships with integer fields
This commit is contained in:
parent
67264b3da6
commit
71d1910988
8 changed files with 17 additions and 6 deletions
|
|
@ -14,7 +14,8 @@ class User(db.Model, UserMixin):
|
|||
email = Column('email', TEXT(), nullable=False, unique=True)
|
||||
password = Column('password', TEXT(), nullable=False)
|
||||
user_type = Column('user_type', TEXT(), nullable=False)
|
||||
donations = db.relationship('Donation', backref='user', lazy='dynamic')
|
||||
|
||||
# donations = db.relationship('Donation', backref='user', lazy='dynamic')
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue