Database changes for new portfolio invitation flow.

- user_id is nullable on role tables
- invitation tables hold basic user information
This commit is contained in:
dandds
2019-05-31 12:34:37 -04:00
parent 4e0cc26b5f
commit 755fabd725
4 changed files with 61 additions and 2 deletions

View File

@@ -45,6 +45,11 @@ class InvitesMixin(object):
email = Column(String, nullable=False)
dod_id = Column(String)
first_name = Column(String)
last_name = Column(String)
phone_number = Column(String)
def __repr__(self):
role_id = self.role.id if self.role else None
return "<{}(user='{}', role='{}', id='{}', email='{}')>".format(