Magento Data Model
Magentoのオンラインショップ。
Invantive Cloud でこのプラットフォームを設定してください:https://cloud.invantive.com/magento
データはパーティション(COMPANY_CODE)ごとに分割されています。
このプラットフォームでのテキスト比較では、大文字と小文字が区別されます。
プラットフォーム
- 利用元:Invantive Cloud、およびご自身のコンピュータやサーバー上のInvantive製品。
- 種類:APIを介してアクセスされるアプリケーション。
- Invantive Cloudプラン: Office for Entrepreneurs, Office for Accountants, Premium Finance, OEM。
用語集
- Installation: One Magento or Adobe Commerce shop system with its own administration and database, holding one or more websites.
- Website: The top level of a shop's structure, with its own customers, checkout, payment settings and stock assignment, holding one or more stores.
- Store: A level below the website that fixes the root category, and with it the part of the catalogue that is offered.
- Store View: The lowest level of the structure, usually one per language, with its own texts, currency display, design and address.
- Attribute: A property of products, categories or customers, such as colour or size, which a merchant can define beyond the standard fields.
- Attribute Set: A template that decides which attributes a product has, so that, for example, shoes and laptops each get the properties that fit them.
- Product: An item for sale, identified by its SKU, with a type, an attribute set, prices, images, stock and the websites where it is sold.
- Product Type: The kind of product: simple, configurable, grouped, bundle, virtual or downloadable, which decides how it is bought and shipped.
- Category: A node in the tree of categories that structures the catalogue and the menu of a store, below a root category.
- Customer: A registered shopper with an account on a website, holding addresses, a customer group and the store where the account was made.
- Customer Group: A classification of customers, such as general, wholesale or not logged in, that decides tax class, prices and promotions.
- Cart: The basket of a shopper before ordering, technically a quote, which becomes an order at checkout.
- Order: A purchase placed by a customer or guest, with items, addresses, payment and shipping, followed until complete, closed or cancelled.
- Order State and Status: The state is the internal step of an order that decides what may happen next; the status is a label shown to staff and customers.
- Invoice: A document that bills all or part of an order and, for online payment methods, captures the payment.
- Shipment: A record that some or all items of an order were sent, with optional tracking numbers of the carrier.
- Credit Memo: A document that refunds all or part of an invoiced amount, online through the payment provider or offline.
- Payment Transaction: A step with the payment provider for an order, such as an authorisation, capture, void or refund, with the provider's reference.
- Cart Price Rule: A promotion applied in the basket when its conditions are met, with or without a coupon code.
- Coupon: A code that a shopper enters to activate a cart price rule, with limits on how often it may be used.
- Tax Rule: A combination of customer tax classes, product tax classes and tax rates that decides which tax applies to a sale.
- Source: A physical place that holds and ships stock, such as a warehouse or shop, in multi-source inventory.
- Stock: A virtual pool of sources from which one or more websites sell, determining the salable quantity of each product.
- CMS Page and Block: Content managed in the shop itself: pages such as about us or terms, and blocks of content placed within other pages.
図表
| 図 | カウント |
|---|---|
| 表 | 31 |
| コラム | 918 |
| INSERT文を含むテーブル | 16 |
| 更新操作を含むテーブル | 15 |
| DELETE文を含むテーブル | 14 |
| 記載された表 | 30 |
データモデルポスター
このデータモデルでは、まだキーは定義されていません。ドットで結ばれたリレーションは、列名から導出されます。
ポスター上の表について:Zoomの拡大・縮小、矢印キーで移動、0でフィット。
テキストとしてのポスター:トピックごとの表とその関係
ストア
StoreConfigs, StoreGroups, StoreViews, Websites
国(関係なし)
NATIVEPLATFORMSCALARREQUESTS(関係なし)
関係
- StoreConfigs → Websites (候補者): Derived from the column website_id.
- StoreGroups → Websites (候補者): Derived from the column website_id.
- StoreViews → Websites (候補者): Derived from the column website_id.
Queryの例
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
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
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
select sim.sku
, sim.source_code
, sim.quantity
from Magento.Inventory.SourceItems sim
where sim.status = 1
and sim.quantity < 5
属性
このプラットフォームの属性はページ Attributes にあります。
表
Magento.Catalog
- AttributeSets: Attribute Sets
- Categories: Categories
- CategoryAttributes: Category Attributes
- ProductAttributes: Product Attributes
- Products: 製品
Magento.Cms
Magento.Customers
- CustomerGroups: Customer Groups
- 顧客: 顧客
Magento.Inventory
- SourceItems: Source Items
- Sources: Inventory Sources
- StockSourceLinks: Stock Source Links
- Stocks: Inventory Stocks
Magento.Marketing
- Coupons: Coupons
- SalesRules: Cart Price Rules
Magento.Native
- NATIVEPLATFORMSCALARREQUESTS: ネイティブプラットフォーム スカラーリクエスト
Magento.Sales
- Carts: Carts
- CreditMemos: Credit Memos
- Invoices: 請求書
- OrderItems: Order Items
- 注文: 注文
- 出荷: 出荷
- Transactions: Payment Transactions
Magento.Store
- 国: 国
- StoreConfigs: Store Configs
- StoreGroups: Store Groups
- StoreViews: Store Views
- Websites: Websites