Work on event person tracking and related

This commit is contained in:
Scott Idem
2021-09-27 19:14:41 -04:00
parent 7ceb125026
commit 831ff8d4a0
7 changed files with 43 additions and 21 deletions

View File

@@ -95,6 +95,7 @@ class Event_Badge_Base(BaseModel):
priority: Optional[bool]
sort: Optional[int]
group: Optional[str]
enable: Optional[bool]
notes: Optional[str]
created_on: Optional[datetime.datetime] = None

View File

@@ -58,6 +58,7 @@ class Event_Person_Base(BaseModel):
priority: Optional[bool]
sort: Optional[int]
group: Optional[str]
enable: Optional[bool]
notes: Optional[str]
created_on: Optional[datetime.datetime] = None

View File

@@ -40,7 +40,7 @@ class Event_Person_Tracking_Base(BaseModel):
other_in_out: Optional[bool]
other_type: Optional[str] # For unknown client specific tracking (lunch, medical, pause, etc)
in_datetime: datetime.datetime # This should generally default to the created datetime and be overridden as needed
in_datetime: Optional[datetime.datetime] # This should generally default to the created datetime and be overridden as needed
out_datetime: Optional[datetime.datetime] # This should generally default to the updated datetime and be overridden as needed
# Maybe add minutes or hours?
@@ -51,8 +51,9 @@ class Event_Person_Tracking_Base(BaseModel):
break_out: Optional[bool] # Does this make sense to use instead?
break_in: Optional[bool] # Does this make sense to use instead?
check_out: Optional[bool] # Does this make sense to use instead?
datetime: datetime.datetime # This should generally default to the created datetime and be overridden as needed
datetime: Optional[datetime.datetime] # This should generally default to the created datetime and be overridden as needed
enable: Optional[bool]
notes: Optional[str]
created_on: Optional[datetime.datetime] = None

View File

@@ -89,6 +89,8 @@ class Person_Base(BaseModel):
external_id: Optional[str]
external_import_id: Optional[str]
enable: Optional[bool]
notes: Optional[str]
created_on: Optional[datetime.datetime] = None