Skip to content
  • Kevin Morris's avatar
    add aurweb.models.user.User · 8a47afd2
    Kevin Morris authored
    
    
    + Added aurweb.models.user.User class. This is the first example
      of an sqlalchemy ORM model. We can search for users via for example:
      `session.query(User).filter(User.ID==1).first()`, where `session` is
      a configured `aurweb.db.session` object.
    + Along with the User class, defined the AccountType class.
      Each User maintains a relationship to its AccountType via User.AccountType.
    + Added AccountType.users backref.
    
    Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
    8a47afd2