Work on event and lookup related end points, methods, and models
This commit is contained in:
@@ -25,6 +25,10 @@ class Event_Location_Base(BaseModel):
|
||||
alias = 'event_location_id'
|
||||
)
|
||||
|
||||
code: Optional[str] = Field(
|
||||
alias = 'event_location_code'
|
||||
)
|
||||
|
||||
event_id_random: Optional[str]
|
||||
event_id: Optional[int]
|
||||
event_track_id_random: Optional[str] # Can a track be assigned to one location?
|
||||
@@ -56,6 +60,12 @@ class Event_Location_Base(BaseModel):
|
||||
created_on: Optional[datetime.datetime] = None
|
||||
updated_on: Optional[datetime.datetime] = None
|
||||
|
||||
# Including convenience data
|
||||
# This is only for convenience. Probably going to keep unless it causes a problem.
|
||||
event_name: Optional[str]
|
||||
event_start_datetime: Optional[datetime.datetime]
|
||||
event_end_datetime: Optional[datetime.datetime]
|
||||
|
||||
# Including other related objects
|
||||
#event: Optional[Event_Base]
|
||||
event_abstract_list: Optional[list] # Optional[Event_Abstract_Base]
|
||||
|
||||
@@ -10,6 +10,7 @@ from app.lib_general import log, logging
|
||||
from app.models.common_field_schema import base_fields, default_num_bytes
|
||||
# from app.models.event_models import Event_Base
|
||||
# from app.models.event_abstract_models import Event_Abstract_Base
|
||||
from app.models.event_cfg_models import Event_Cfg_Base
|
||||
from app.models.event_person_models import Event_Person_Base
|
||||
# from app.models.event_presentation_models import Event_Presentation_Base
|
||||
# from app.models.event_session_models import Event_Session_Base
|
||||
@@ -38,7 +39,6 @@ class Event_Presenter_Base(BaseModel):
|
||||
alias = 'event_presenter_code'
|
||||
)
|
||||
|
||||
|
||||
account_id_random: Optional[str]
|
||||
account_id: Optional[int]
|
||||
|
||||
@@ -143,6 +143,7 @@ class Event_Presenter_Base(BaseModel):
|
||||
# event_abstract: Optional[Event_Abstract_Base]
|
||||
event_abstract: Optional[dict]
|
||||
event_abstract_list: Optional[list] # Optional[Event_Abstract_Base] Is more than one abstract allowed per presenter?
|
||||
event_cfg: Optional[Event_Cfg_Base]
|
||||
# event_device_list: Optional[list] # Optional[Event_Device_Base]
|
||||
event_file_list: Optional[list] # Optional[Event_File_Base]
|
||||
# event_location: Optional[Event_Location_Base]
|
||||
|
||||
Reference in New Issue
Block a user