Table

Type
Abstract Class
Namespace
craft\commerce\db
Inherits
craft\commerce\db\Table
Since
2.2

This class provides constants for defining Craft Commerce’s database table names. Do not use these in migrations.

View source (opens new window)

# Constants

Constant Description
ADDRESSES
CHARGES
COUNTRIES
CUSTOMERS
CUSTOMERS_ADDRESSES
CUSTOMER_DISCOUNTUSES
DISCOUNTS
DISCOUNT_CATEGORIES
DISCOUNT_PURCHASABLES
DISCOUNT_USERGROUPS
DONATIONS
EMAILS
EMAIL_DISCOUNTUSES
GATEWAYS
LINEITEMS
ORDERADJUSTMENTS
ORDERHISTORIES
ORDERS
ORDERSTATUSES
ORDERSTATUS_EMAILS
PAYMENTCURRENCIES
PAYMENTSOURCES
PLANS
PRODUCTS
PRODUCTTYPES
PRODUCTTYPES_SHIPPINGCATEGORIES
PRODUCTTYPES_SITES
PRODUCTTYPES_TAXCATEGORIES
PURCHASABLES
SALES
SALE_CATEGORIES
SALE_PURCHASABLES
SALE_USERGROUPS
SHIPPINGCATEGORIES
SHIPPINGMETHODS
SHIPPINGRULES
SHIPPINGRULE_CATEGORIES
SHIPPINGZONES
SHIPPINGZONE_COUNTRIES
SHIPPINGZONE_STATES
STATES
SUBSCRIPTIONS
TAXCATEGORIES
TAXRATES
TAXZONES
TAXZONE_COUNTRIES
TAXZONE_STATES
TRANSACTIONS
VARIANTS