UserDeviceFingerprints


Description

Each row corresponds to an authorised device fingerprint (system, platform, and IP address) for a particular user.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 public.gen_random_uuid()
UserId uuid 2147483647 null
Users.id UserDeviceFingerprints_UserId_fkey C

The user that this device fingerprint belongs to.

system text 2147483647 null

The operating system(OS) such as Windows, Linux, Android or IOS

platform text 2147483647 null

The browser used such as Chrome or Firefox or the mobile app version

ipAddress inet 2147483647 null

IP address.

createdAt timestamptz 35,6 now()

Timestamp for the first successful authentication with this device fingerprint.

updatedAt timestamptz 35,6 now()

Timestamp for the latest successful authentication with this device fingerprint.

Indexes

Constraint Name Type Sort Column(s)
UserDeviceFingerprints_pkey Primary key Asc id
UserDeviceFingerprints_UserId_system_platform_ipAddress_key Must be unique Asc/Asc/Asc/Asc UserId + system + platform + ipAddress

Relationships