Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | √ | null |
|
|
{“what”:“Unique numeric identifier for each login event.”,“why”:“Without it, rows cannot be uniquely referenced for updates or joins.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.789461230+00:00”} |
||||
| timestamp | timestamptz | 35,6 | now() |
|
|
{“what”:“Moment the login event occurred, in UTC with timezone.”,“why”:“Without it, order and timing of logins is unknown, breaking audit trails and anomaly detection.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.827170928+00:00”} |
|||||
| user_id | int4 | 10 | null |
|
|
{“what”:“Internal ID of the user account attempting login.”,“why”:“Without it, cannot attribute logins to a specific user, making per-user security review impossible.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.839238317+00:00”} |
|||||
| session_id | varchar | 254 | √ | null |
|
|
{“what”:“Opaque token assigned to the authenticated session, if login succeeded.”,“why”:“Without it, cannot link login event to subsequent session activity or revoke sessions.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.852446685+00:00”} |
||||
| device_id | bpchar | 36 | null |
|
|
{“what”:“Short code identifying the device type or class (e.g., ‘M’, ‘D’, ‘T’).”,“why”:“Without it, cannot distinguish device categories for risk scoring or device-specific policies.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.871921836+00:00”} |
|||||
| device_description | text | 2147483647 | null |
|
|
{“what”:“Free-text description of the device, such as browser and OS.”,“why”:“Without it, support staff cannot identify the exact client used, hindering troubleshooting.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.883513119+00:00”} |
|||||
| ip_address | text | 2147483647 | null |
|
|
{“what”:“Source IP address of the login request, in dotted-decimal or IPv6 format.”,“why”:“Without it, cannot geolocate or block malicious sources, weakening security monitoring.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T00:03:57.900054226+00:00”} |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| login_history_pkey | Primary key | Asc | id |
| idx_session_id | Performance | Asc | session_id |
| idx_timestamp | Performance | Asc | timestamp |
| idx_user_id | Performance | Asc | user_id |
| idx_user_id_device_id | Performance | Asc/Asc | user_id + device_id |
| idx_user_id_timestamp | Performance | Asc/Asc | user_id + timestamp |