Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
||||||
| uuid | 2147483647 | null |
|
|
Foreign key, referencing public.Shares |
||||||
| UserId | uuid | 2147483647 | √ | null |
|
|
Foreign key, referencing public.Users. It can be null when the user is not logged in. |
||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| sessionId | varchar | 255 | null |
|
|
Visitor visisting through the shared url has a session id |
|||||
| platform | enum_Share_platform | 2147483647 | 'WEB'::"enum_Share_platform" |
|
|
which platform user lands after clicking the share link |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| ShareVisitors_pkey | Primary key | Asc | id |
| ShareVisitors_sessionId_idx | Performance | Asc | sessionId |
| ShareVisitors_ShareId_idx | Performance | Asc | ShareId |
| ShareVisitors_UserId_idx | Performance | Asc | UserId |
| unique_shareid_sessionid | Must be unique | Asc/Asc | ShareId + sessionId |

