Data Contract
urn:datacontract:checkout:orders-latest
Info
Information about the data contract
- Title
- Orders Latest
- Version
- 1.0.0
- Description
- Successful customer orders in the webshop. All orders since 2020-01-01. Orders with their line items are in their current state (no history included).
- Owner
- Checkout Team
- Contact
- John Doe (Data Product Owner)
Servers
Servers of the data contract
-
- Server
- production
- Type
- s3
- Location
- s3://datacontract-example-orders-latest/data/{model}/*.json
- Format
- json
- Delimiter
- new_line
Terms
Terms and conditions of the data contract
- Usage
- Data can be used for reports, analytics and machine learning use cases. Order may be linked and joined by other tables
- Limitations
- Not suitable for real-time use cases. Data may not be used to identify individual customers. Max data processing per day: 10 TiB
- Billing
- 5000 USD per month
- Notice Period
- P3M
Data Model
The logical data model
orders
table
One record per order. Includes cancelled and deleted orders.
|
||
---|---|---|
Order ID
order_id
|
text |
An internal ID that identifies an order in the online shop.
primary
required
unique
format:uuid
restricted
PII
|
order_timestamp
|
timestamp |
The business timestamp in UTC when the order was successfully registered in the source system and the payment was successful.
required
|
order_total
|
long |
Total amount the smallest monetary unit (e.g., cents).
required
|
customer_id
|
text |
Unique identifier for the customer.
minLength:10
maxLength:20
|
customer_email_address
|
text |
The email address, as entered by the customer. The email address was not verified.
required
format:email
sensitive
PII
|
processed_timestamp
|
timestamp |
The timestamp when the record was processed by the data platform.
required
|
line_items
table
A single article that is part of an order.
|
||
---|---|---|
lines_item_id
|
text |
Primary key of the lines_item_id table
primary
required
unique
|
Order ID
order_id
|
text |
An internal ID that identifies an order in the online shop.
format:uuid
restricted
PII
|
Stock Keeping Unit
sku
|
text |
The purchased article number
pattern:^[A-Za-z0-9]{8,14}$
|
Quality
SodaCL
checks for orders:
- row_count >= 5
- duplicate_count(order_id) = 0
checks for line_items:
- values in (order_id) must exist in orders (order_id)
- row_count >= 5
Created at 05 May 2024 15:52:14 UTC with Data Contract CLI v0.10.1