Skip to content

Schema ​

This section describes the database structure and the relationships between collections. The schema consists of master data collections and transactional or operational collections used by the application.

Database ​

Collection Name: attendances

FieldTypeDescription
_idObjectIDUnique identifier for the attendance record.
dateStringDate when the checkin was created.
created_by_idObjectIDIdentifier of the user who created the group.
check_in_atStringDate and time when the user checked in.
check_in_latNumberLatitude coordinate of the user's check-in location.
check_in_longNumberLongitude coordinate of the user's check-in location.
check_in_photoStringURL or path of the photo captured during check-in.
check_in_notesStringAdditional notes provided by the user during check-in.
check_out_atStringDate and time when the user checked out.
check_out_latNumberLatitude coordinate of the user's check-out location.
check_out_longNumberLongitude coordinate of the user's check-out location.
check_out_photoStringURL or path of the photo captured during check-out.
check_out_notesStringAdditional notes provided by the user during check-out.
breaksArray (Object)List of break periods recorded during the attendance session. Each object contains break start and end details.
breaks.break_start_atStringDate and time when the user started a break.
breaks.break_start_latNumberLatitude coordinate of the user's location when the break started.
breaks.break_start_longNumberLongitude coordinate of the user's location when the break started.
breaks.break_start_photoStringURL or path of the photo captured when the break started.
breaks.break_start_notesStringAdditional notes provided by the user when starting the break.
breaks.break_end_atStringDate and time when the user ended a break.
breaks.break_end_latNumberLatitude coordinate of the user's location when the break ended.
breaks.break_end_longNumberLongitude coordinate of the user's location when the break ended.
breaks.break_end_photoStringURL or path of the photo captured when the break ended.
breaks.break_end_notesStringAdditional notes provided by the user when ending the break.

ERD ​

users
users
PK
PK
_id
_id
attendances
attendances
PK
PK
_id
_id
created_by_id
created_by_id
groups
groups
PK
PK
_id
_id
created_by_id
created_by_id
Text is not SVG - cannot display

Released under the MIT License.