Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| coordinate | geography | 2147483647 | null |
|
|
||||||
| placeId | text | 2147483647 | null |
|
|
||||||
| provider | enum_PointOfInterests_provider | 2147483647 | null |
|
|
||||||
| name | text | 2147483647 | null |
|
|
||||||
| addressLabel | text | 2147483647 | null |
|
|
||||||
| locationId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Locations Table. Corresponds to the closest location we have, typically L3/L4. |
||||
| metadata | jsonb | 2147483647 | null |
|
|
Contains the whole response from the provider, along with other additional metadata |
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PointOfInterests_pkey | Primary key | Asc | id |
| PointOfInterests_placeId_provider_key | Must be unique | Asc/Asc | placeId + provider |

