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 |
| 삭제 기능이 포함된 테이블 | 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
- 제품: 제품
Magento.Cms
Magento.Customers
- CustomerGroups: Customer Groups
- Customers: 고객
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: Invoices
- OrderItems: Order Items
- 주문: 주문
- Shipments: Shipments
- Transactions: Payment Transactions
Magento.Store
- Countries: Countries
- StoreConfigs: Store Configs
- StoreGroups: Store Groups
- StoreViews: Store Views
- Websites: Websites