region
Regions of Vendors.
Primary key: vendor_id, region_id. See the version history of this table on dbdocs.io.
Columns
| Column | Type | Constraints | References | Description |
|---|---|---|---|---|
vendor_id | VARCHAR(255) | PK | vendor.vendor_id | Reference to the Vendor. |
region_id | VARCHAR(255) | PK | Unique identifier, as called at the Vendor. | |
name | VARCHAR(255) | NOT NULL | Human-friendly name. | |
api_reference | VARCHAR(255) | NOT NULL | How this resource is referenced in the vendor APIAPI: Application Programming InterfaceA defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions.WikipediaGlossary calls. This is usually either the id or name of the resource, depending on the vendor and actual API endpoint. | |
display_name | VARCHAR(255) | NOT NULL | Human-friendly reference (usually the id or name) of the resource. | |
aliases | JSON | NOT NULL | List of other commonly used names for the same Region. | |
country_id | VARCHAR(255) | NOT NULL | country.country_id | Reference to the Country, where the Region is located. |
state | VARCHAR(255) | Optional state/administrative area of the Region''s location within the Country. | ||
city | VARCHAR(255) | Optional city name of the Region''s location. | ||
address_line | VARCHAR(255) | Optional address line of the Region''s location. | ||
zip_code | VARCHAR(255) | Optional ZIP code of the Region''s location. | ||
lon | FLOAT | Longitude coordinate of the Region''s known or approximate location. | ||
lat | FLOAT | Latitude coordinate of the Region''s known or approximate location. | ||
founding_year | INTEGER | 4-digit year when the Region was founded. | ||
green_energy | BOOL | If the Region is 100%% powered by renewable energy. | ||
status | ENUM | NOT NULL | Status of the resource (active or inactive). See Status for the possible values. | |
observed_at | DATETIME | NOT NULL | Timestamp of the last observation. |
Foreign keys
Enums
Status
Last known status of a record.
The docstrings of the values are shown to end-users (e.g. in the API and on the website), so keep those to what a status means, and document here how the statuses are set:
ACTIVEandINACTIVEare valid for all tables. Records returned by the vendor or defined in code areACTIVE. Records no longer returned or defined are set toINACTIVEbypull, as well as records missing from the source bysync.PLANNED_FOR_RETIREMENTandRETIREDare only valid for Server and Database, and are set only from explicit vendor signals. These are kept bypullwhen the record is no longer returned by the vendor.ARCHIVEDis valid for all tables. It is set only from the [archive rules][sc_crawler.archive_rules] bypullandsync, also for child records (e.g. prices of a region), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale isRETIRED, and records no longer returned by a vendor areINACTIVE.
| Value | Description |
|---|---|
ACTIVE | Currently available. |
INACTIVE | Currently not available, without a known retirement. May become available again. |
PLANNED_FOR_RETIREMENT | Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases. |
RETIRED | Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases. |
ARCHIVED | Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset. |