Customers
Customer is the top-level tenant/organization entity. Usually represents a legal entity, but can also represent several legal entities. All data in MDS is partitioned by customer_id.
Storage Location
{customer_id}-customer.jsonFields
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Unique ID of customer. Also used as the container name and partition key. |
name | string | Yes | Customer/organization name. |
formal_name | string | No | Legal name used in official registry. |
company_number | string | No | Company number reference from official registry (e.g., org.nr in Norway). |
parent_customer_id | integer | No | Reference to parent customer (in group of companies). |
Example
json
{
"id": "10352",
"company_number": "990 834 490",
"name": "BrødBakerne (Kanelsnurren, Steam, Mjøl & Encore)",
"formal_name": "Brød Bakerne AS"
}Multi-Tenant Architecture
The customer_id is the primary partition key for all data in MDS:
- Each customer has their own Azure Blob Storage container
- Container name equals customer_id
- All entities reference customer_id for tenant isolation
- Access is controlled per customer via SAS tokens
Related Entities
- BusinessUnits - Business units/legal entities within customer
- Installations - Physical locations
- RevenueUnits - Revenue/cost centers
- Terminals - POS terminals
- Articles - Product catalog
- Accounts - GL account setup
- Users - System users
- Orders - All orders reference customer_id