---
title: "Magento Data Model"
description: "Magento web shop."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/magento
original: https://documentation.invantive.eu/en/datamodels/magento
updated: 2026-11-03T19:00:58Z
license: https://documentation.invantive.eu/en/
---

# Magento Data Model

Magento web shop.

Set up this platform in Invantive Cloud: https://cloud.invantive.com/magento

The data is partitioned per partition (`COMPANY_CODE`).

Text comparisons on this platform are case sensitive.

## Platform

- Used from: Invantive Cloud and the Invantive products on your own computer or server.
- Kind: an application reached over its API.
- Invantive Cloud plans: Office for Entrepreneurs, Office for Accountants, Premium Finance, OEM.

## Figures

| Figure | Count |
|---|---:|
| Tables | 31 |
| Columns | 918 |
| Tables with insert | 16 |
| Tables with update | 15 |
| Tables with delete | 14 |
| Tables documented | 30 |

## Tables

### Magento.Catalog

- [AttributeSets](Magento.Catalog.AttributeSets): Attribute Sets
- [Categories](Magento.Catalog.Categories): Categories
- [CategoryAttributes](Magento.Catalog.CategoryAttributes): Category Attributes
- [ProductAttributes](Magento.Catalog.ProductAttributes): Product Attributes
- [Products](Magento.Catalog.Products): Products

### Magento.Cms

- [Blocks](Magento.Cms.Blocks): CMS Blocks
- [Pages](Magento.Cms.Pages): CMS Pages

### Magento.Customers

- [CustomerGroups](Magento.Customers.CustomerGroups): Customer Groups
- [Customers](Magento.Customers.Customers): Customers

### Magento.Inventory

- [SourceItems](Magento.Inventory.SourceItems): Source Items
- [Sources](Magento.Inventory.Sources): Inventory Sources
- [StockSourceLinks](Magento.Inventory.StockSourceLinks): Stock Source Links
- [Stocks](Magento.Inventory.Stocks): Inventory Stocks

### Magento.Marketing

- [Coupons](Magento.Marketing.Coupons): Coupons
- [SalesRules](Magento.Marketing.SalesRules): Cart Price Rules

### Magento.Native

- [NATIVEPLATFORMSCALARREQUESTS](Magento.Native.NATIVEPLATFORMSCALARREQUESTS): Native Platform Scalar Requests

### Magento.Sales

- [Carts](Magento.Sales.Carts): Carts
- [CreditMemos](Magento.Sales.CreditMemos): Credit Memos
- [Invoices](Magento.Sales.Invoices): Invoices
- [OrderItems](Magento.Sales.OrderItems): Order Items
- [Orders](Magento.Sales.Orders): Orders
- [Shipments](Magento.Sales.Shipments): Shipments
- [Transactions](Magento.Sales.Transactions): Payment Transactions

### Magento.Store

- [Countries](Magento.Store.Countries): Countries
- [StoreConfigs](Magento.Store.StoreConfigs): Store Configs
- [StoreGroups](Magento.Store.StoreGroups): Store Groups
- [StoreViews](Magento.Store.StoreViews): Store Views
- [Websites](Magento.Store.Websites): Websites

### Magento.Tax

- [Classes](Magento.Tax.Classes): Tax Classes
- [Rates](Magento.Tax.Rates): Tax Rates
- [Rules](Magento.Tax.Rules): Tax Rules

## Sample Queries

```sql
select itm.sku
,      itm.name
,      sum(itm.qty_ordered - itm.qty_shipped) qty_to_ship
from   Magento.Sales.OrderItems itm
join   Magento.Sales.Orders ord
on     ord.entity_id = itm.order_id
where  ord.state in ('new', 'processing')
group
by     itm.sku
,      itm.name
```

```sql
select ord.state
,      count(*) order_count
,      sum(ord.grand_total) order_total
from   Magento.Sales.Orders ord
where  ord.created_at >= to_char(sysdateutc - 30, 'YYYY-MM-DD')
group
by     ord.state
```

```sql
select pdt.sku
,      pdt.name
,      pdt.price
,      pdt.extension_attributes_stock_item_qty stock_quantity
from   Magento.Catalog.Products pdt
where  pdt.status = 1
and    pdt.price > 100
```

```sql
select sim.sku
,      sim.source_code
,      sim.quantity
from   Magento.Inventory.SourceItems sim
where  sim.status = 1
and    sim.quantity < 5
```

## Attributes

The attributes of this platform are on the page [Attributes](attributes).

