model.py 509B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. class User(object):
  3. def __init__(
  4. self,
  5. id: int,
  6. username: str,
  7. display_name: str,
  8. company: str,
  9. email_address: str='',
  10. first_name: str='',
  11. last_name: str='',
  12. ) -> None:
  13. self.id = id
  14. self.username = username
  15. self.email_address = email_address
  16. self.first_name = first_name
  17. self.last_name = last_name
  18. self.display_name = display_name
  19. self.company = company