More again again again. Moving ID random generation to the SQL db instead. General clean up.
This commit is contained in:
@@ -15,6 +15,7 @@ from app.models.person_models import Person_Base
|
||||
from app.models.user_models import User_Base
|
||||
|
||||
|
||||
# ### BEGIN ### API Event Models ### Event_Base() ###
|
||||
class Event_Base(BaseModel):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
@@ -262,8 +263,10 @@ class Event_Base(BaseModel):
|
||||
underscore_attrs_are_private = True
|
||||
allow_population_by_field_name = True
|
||||
fields = base_fields
|
||||
# ### END ### API Event Models ### Event_Base() ###
|
||||
|
||||
|
||||
# ### BEGIN ### API Event Models ### Event_Meeting_Flat_Base() ###
|
||||
# Updated 2021-12-13
|
||||
class Event_Meeting_Flat_Base(BaseModel):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
@@ -272,7 +275,6 @@ class Event_Meeting_Flat_Base(BaseModel):
|
||||
id_random: Optional[str] = Field(
|
||||
**base_fields['event_id_random'],
|
||||
alias = 'event_id_random',
|
||||
# default_factory = lambda:secrets.token_urlsafe(default_num_bytes),
|
||||
)
|
||||
id: Optional[int] = Field(
|
||||
alias = 'event_id'
|
||||
@@ -501,3 +503,4 @@ class Event_Meeting_Flat_Base(BaseModel):
|
||||
underscore_attrs_are_private = True
|
||||
allow_population_by_field_name = True
|
||||
fields = base_fields
|
||||
# ### END ### API Event Models ### Event_Meeting_Flat_Base() ###
|
||||
|
||||
Reference in New Issue
Block a user