Skip to content

Instantly share code, notes, and snippets.

@larsks
Created May 22, 2009 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsks/116168 to your computer and use it in GitHub Desktop.
Save larsks/116168 to your computer and use it in GitHub Desktop.
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