Created
May 22, 2009 14:50
-
-
Save larsks/116168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person (Entity): | |
using_options (tablename = 'person') | |
full_name = Field(String) | |
given_name = Field(String) | |
sur_name = Field(String) | |
affiliation = Field(String) | |
account = OneToMany('Account') | |
sponsor = OneToMany('Person', inverse='sponsored') | |
sponsored = ManyToOne('Person', inverse='sponsor') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment