sneed
This commit is contained in:
parent
9290ef99a7
commit
61a5966f61
1 changed files with 6 additions and 0 deletions
|
@ -104,6 +104,12 @@ class User(Base, Stndrd, Age_times):
|
|||
lazy="dynamic",
|
||||
primaryjoin="User.id==SaveRelationship.user_id")
|
||||
|
||||
awards = relationship(
|
||||
"AwardRelationship",
|
||||
lazy="dynamic",
|
||||
primaryjoin="User.id==AwardRelationship.user_id"
|
||||
)
|
||||
|
||||
# properties defined as SQL server-side functions
|
||||
referral_count = deferred(Column(Integer, server_default=FetchedValue()))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue