AccessLog


Description

User session tracking for monitoring user login/logout activities and session management. This audit table tracks user access patterns, session durations, and login history for security monitoring, compliance reporting, and system usage analytics.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
AccessID int identity 4 null

Primary key - Unique identifier for each access log entry

Userid int 4 null
AccessUser.UserID FK__AccessLog__Useri__4D0B430D C

User reference - Links to the user account that performed the login/logout action (foreign key to AccessUser.UserID)

DateLogin datetime 16,3 null

Login timestamp - Date and time when the user logged into the system

DateLogout datetime 16,3 null

Logout timestamp - Date and time when the user logged out of the system

Duration int 4 null

Session duration - Total time in minutes the user was logged into the system

SessionID varchar 15 null

Session identifier - Unique session ID for tracking user sessions and concurrent access

Indexes

Constraint Name Type Sort Column(s)
PK__AccessLog__4C171ED4 Primary key Asc AccessID

Relationships