Work on event, event_session, event_presentation, event_presenter, user, and person routes, methods, and models

This commit is contained in:
Scott Idem
2021-08-21 16:04:17 -04:00
parent 67b8435e08
commit 824bdd29a2
19 changed files with 631 additions and 80 deletions

View File

@@ -44,12 +44,13 @@ class User_New_Base(BaseModel):
username: str
name: str
email: str
email_verified: bool = False
new_password: str = Field(default_factory = lambda:secrets.token_urlsafe(default_num_bytes))
password: Optional[str] # If new_password is found then the validator below will create secure_hash_string() from the new password string.
allow_auth_key: Optional[int]
allow_auth_key: bool = False
enable: Optional[bool] = False
enable: bool = False
enable_from: Optional[datetime.datetime] = datetime.datetime.now(datetime.timezone.utc)
#enable_from: Optional[datetime.datetime] = datetime.datetime.now()
enable_to: Optional[datetime.datetime] = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(days=365)
@@ -57,9 +58,9 @@ class User_New_Base(BaseModel):
#super: Optional[bool] = False
#manager: Optional[bool] = False
administrator: Optional[bool] = False
public: Optional[bool] = False
verified: Optional[bool] = False
administrator: bool = False
public: bool = False
verified: bool = False
notes: Optional[str]