joelverhagen / data-az-retail-prices

Home Page:https://joelverhagen.github.io/data-az-retail-prices/?query=SELECT%20%2A%0AFROM%20Regions%0AORDER%20BY%20ArmRegionName%20ASC%0ALIMIT%2020

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

data-az-retail-prices

DB Diagram

The following DB diagram is derived from discovered attributes of the data (noted below the diagram).

erDiagram

  ArmSkuNames {
    INTEGER Id
    TEXT Value
  }

  MeterNames {
    INTEGER Id
    TEXT Value
  }

  PriceTypes {
    INTEGER Id
    TEXT Value
  }

  Regions {
    INTEGER Id
    TEXT ArmRegionName
    TEXT Location
  }

  ReservationTerms {
    INTEGER Id
    TEXT Value
  }

  ServiceFamilies {
    INTEGER Id
    TEXT Value
  }

  SkuNames {
    INTEGER Id
    TEXT Value
  }

  UnitOfMeasures {
    INTEGER Id
    TEXT Value
  }

  Meters {
    INTEGER Id
    TEXT MeterId
    INTEGER UnitOfMeasureId
  }

  Services {
    INTEGER Id
    TEXT ServiceId
    TEXT ServiceName
    INTEGER ServiceFamilyId
  }

  Products {
    INTEGER Id
    TEXT ProductId
    TEXT ProductName
    INTEGER ServiceId
  }

  Skus {
    INTEGER Id
    INTEGER SkuNameId
    INTEGER ArmSkuNameId
    INTEGER RegionId
    INTEGER ProductId
    TEXT SkuIdSuffix
    INTEGER ReservationTermId
  }

  Prices {
    INTEGER Id
    INTEGER MeterId
    INTEGER MeterNameId
    INTEGER PriceTypeId
    INTEGER SkuId
    TEXT TierMinimumUnits
    TEXT RetailPrice
    TEXT UnitPrice
    INTEGER EffectiveStartDate
    INTEGER IsPrimaryMeterRegion
    INTEGER EffectiveEndDate
  }

  ArmSkuNames ||--o{ Skus : "foreign key"

  MeterNames ||--o{ Prices : "foreign key"

  PriceTypes ||--o{ Prices : "foreign key"

  Regions ||--o{ Skus : "foreign key"

  ReservationTerms ||--o{ Skus : "foreign key"

  ServiceFamilies ||--o{ Services : "foreign key"

  SkuNames ||--o{ Skus : "foreign key"

  UnitOfMeasures ||--o{ Meters : "foreign key"

  Meters ||--o{ Prices : "foreign key"

  Services ||--o{ Products : "foreign key"

  Products ||--o{ Skus : "foreign key"

  Skus ||--o{ Prices : "foreign key"

Command: schemacrawler.exe --server sqlite --database azure-prices.db --info-level standard --table-types TABLE --command script --script-language python --script .\mermaid.py > azure-prices.db.mermaid

Data properties

Optional properties

Can be missing from the JSON:

  • reservationTerm
  • effectiveEndDate

Can be empty strings:

  • armRegionName
  • location
  • armSkuName

Natural keys

The combination of the following properties is a natural key (unique) for the Azure Retail Prices items.

  • meterId
  • meterName
  • priceType
  • skuId
  • tierMinimumUnits

Relationships between properties

These are just the string properties.

Implies:

  • meterIdunitOfMeasure
  • productIdserviceName
  • productIdserviceId
  • productIdserviceFamily
  • productNameserviceName
  • productNameserviceId
  • productNameserviceFamily
  • serviceIdserviceFamily
  • serviceNameserviceFamily
  • skuIdarmRegionName
  • skuIdlocation
  • skuIdproductId
  • skuIdproductName
  • skuIdskuName
  • skuIdserviceName
  • skuIdserviceId
  • skuIdserviceFamily
  • skuIdarmSkuName
  • skuIdreservationTerm

Note that currencyCode property is a constant value based on the currencyCode query parameter. It was excluded from this list since it's not interesting.

Equivalencies:

  • armRegionNamelocation
  • productIdproductName
  • serviceIdserviceName

About

https://joelverhagen.github.io/data-az-retail-prices/?query=SELECT%20%2A%0AFROM%20Regions%0AORDER%20BY%20ArmRegionName%20ASC%0ALIMIT%2020

License:MIT License


Languages

Language:C# 46.9%Language:JavaScript 45.1%Language:TypeScript 5.1%Language:Shell 1.5%Language:CSS 0.8%Language:Python 0.4%Language:HTML 0.3%