Initial WooCommerce database structure

WooCommerce v8.8.3 tables:

wp_actionscheduler_actions

ColumnTypeNullDefault
action_idbigint(20)No
hookvarchar(191)No
statusvarchar(20)No
scheduled_date_gmtdatetimeYes0000-00-00 00:00:00
scheduled_date_localdatetimeYes0000-00-00 00:00:00
prioritytinyint(3)No10
argsvarchar(191)YesNULL
schedulelongtextYesNULL
group_idbigint(20)No0
attemptsint(11)No0
last_attempt_gmtdatetimeYes0000-00-00 00:00:00
last_attempt_localdatetimeYes0000-00-00 00:00:00
claim_idbigint(20)No0
extended_argsvarchar(8000)YesNULL

wp_actionscheduler_claims

ColumnTypeNullDefault
claim_idbigint(20)No
date_created_gmtdatetimeYes0000-00-00 00:00:00

wp_actionscheduler_groups

ColumnTypeNullDefault
group_idbigint(20)No
slugvarchar(255)No

wp_actionscheduler_logs

ColumnTypeNullDefault
log_idbigint(20)No
action_idbigint(20)No
messagetextNo
log_date_gmtdatetimeYes0000-00-00 00:00:00
log_date_localdatetimeYes0000-00-00 00:00:00

wp_wc_admin_notes

ColumnTypeNullDefault
note_idbigint(20)No
namevarchar(255)No
typevarchar(20)No
localevarchar(20)No
titlelongtextNo
contentlongtextNo
content_datalongtextYesNULL
statusvarchar(200)No
sourcevarchar(200)No
date_createddatetimeNo0000-00-00 00:00:00
date_reminderdatetimeYesNULL
is_snoozabletinyint(1)No0
layoutvarchar(20)No
imagevarchar(200)YesNULL
is_deletedtinyint(1)No0
is_readtinyint(1)No0
iconvarchar(200)Noinfo

wp_wc_admin_note_actions

ColumnTypeNullDefault
action_idbigint(20)No
note_idbigint(20)No
namevarchar(255)No
labelvarchar(255)No
querylongtextNo
statusvarchar(255)No
actioned_textvarchar(255)No
nonce_actionvarchar(255)YesNULL
nonce_namevarchar(255)YesNULL

wp_wc_category_lookup

ColumnTypeNullDefault
category_tree_idbigint(20)No
category_idbigint(20)No

wp_wc_customer_lookup

ColumnTypeNullDefault
customer_idbigint(20)No
user_idbigint(20)YesNULL
usernamevarchar(60)No
first_namevarchar(255)No
last_namevarchar(255)No
emailvarchar(100)YesNULL
date_last_activetimestampYesNULL
date_registeredtimestampYesNULL
countrychar(2)No
postcodevarchar(20)No
cityvarchar(100)No
statevarchar(100)No

wp_wc_download_log

ColumnTypeNullDefault
download_log_idbigint(20)No
timestampdatetimeNo
permission_idbigint(20)No
user_idbigint(20)YesNULL
user_ip_addressvarchar(100)Yes

wp_wc_orders

ColumnTypeNullDefault
idbigint(20)No
statusvarchar(20)YesNULL
currencyvarchar(10)YesNULL
typevarchar(20)YesNULL
tax_amountdecimal(26,8)YesNULL
total_amountdecimal(26,8)YesNULL
customer_idbigint(20)YesNULL
billing_emailvarchar(320)YesNULL
date_created_gmtdatetimeYesNULL
date_updated_gmtdatetimeYesNULL
parent_order_idbigint(20)YesNULL
payment_methodvarchar(100)YesNULL
payment_method_titletextYesNULL
transaction_idvarchar(100)YesNULL
ip_addressvarchar(100)YesNULL
user_agenttextYesNULL
customer_notetextYesNULL

wp_wc_orders_meta

ColumnTypeNullDefault
idbigint(20)No
order_idbigint(20)YesNULL
meta_keyvarchar(255)YesNULL
meta_valuetextYesNULL

wp_wc_order_addresses

ColumnTypeNullDefault
idbigint(20)No
order_idbigint(20)No
address_typevarchar(20)YesNULL
first_nametextYesNULL
last_nametextYesNULL
companytextYesNULL
address_1textYesNULL
address_2textYesNULL
citytextYesNULL
statetextYesNULL
postcodetextYesNULL
countrytextYesNULL
emailvarchar(320)YesNULL
phonevarchar(100)YesNULL

wp_wc_order_coupon_lookup

ColumnTypeNullDefault
order_idbigint(20)No
coupon_idbigint(20)No
date_createddatetimeNo0000-00-00 00:00:00
discount_amountdoubleNo0

wp_wc_order_operational_data

ColumnTypeNullDefault
idbigint(20)No
order_idbigint(20)YesNULL
created_viavarchar(100)YesNULL
woocommerce_versionvarchar(20)YesNULL
prices_include_taxtinyint(1)YesNULL
coupon_usages_are_countedtinyint(1)YesNULL
download_permission_grantedtinyint(1)YesNULL
cart_hashvarchar(100)YesNULL
new_order_email_senttinyint(1)YesNULL
order_keyvarchar(100)YesNULL
order_stock_reducedtinyint(1)YesNULL
date_paid_gmtdatetimeYesNULL
date_completed_gmtdatetimeYesNULL
shipping_tax_amountdecimal(26,8)YesNULL
shipping_total_amountdecimal(26,8)YesNULL
discount_tax_amountdecimal(26,8)YesNULL
discount_total_amountdecimal(26,8)YesNULL
recorded_salestinyint(1)YesNULL

wp_wc_order_product_lookup

ColumnTypeNullDefault
order_item_idbigint(20)No
order_idbigint(20)No
product_idbigint(20)No
variation_idbigint(20)No
customer_idbigint(20)YesNULL
date_createddatetimeNo0000-00-00 00:00:00
product_qtyint(11)No
product_net_revenuedoubleNo0
product_gross_revenuedoubleNo0
coupon_amountdoubleNo0
tax_amountdoubleNo0
shipping_amountdoubleNo0
shipping_tax_amountdoubleNo0

wp_wc_order_stats

ColumnTypeNullDefault
order_idbigint(20)No
parent_idbigint(20)No0
date_createddatetimeNo0000-00-00 00:00:00
date_created_gmtdatetimeNo0000-00-00 00:00:00
date_paiddatetimeYes0000-00-00 00:00:00
date_completeddatetimeYes0000-00-00 00:00:00
num_items_soldint(11)No0
total_salesdoubleNo0
tax_totaldoubleNo0
shipping_totaldoubleNo0
net_totaldoubleNo0
returning_customertinyint(1)YesNULL
statusvarchar(200)No
customer_idbigint(20)No

wp_wc_order_tax_lookup

ColumnTypeNullDefault
order_idbigint(20)No
tax_rate_idbigint(20)No
date_createddatetimeNo0000-00-00 00:00:00
shipping_taxdoubleNo0
order_taxdoubleNo0
total_taxdoubleNo0

wp_wc_product_attributes_lookup

ColumnTypeNullDefault
product_idbigint(20)No
product_or_parent_idbigint(20)No
taxonomyvarchar(32)No
term_idbigint(20)No
is_variation_attributetinyint(1)No
in_stocktinyint(1)No

wp_wc_product_download_directories

ColumnTypeNullDefault
url_idbigint(20)No
urlvarchar(256)No
enabledtinyint(1)No0

wp_wc_product_meta_lookup

ColumnTypeNullDefault
product_idbigint(20)No
skuvarchar(100)Yes
virtualtinyint(1)Yes0
downloadabletinyint(1)Yes0
min_pricedecimal(19,4)YesNULL
max_pricedecimal(19,4)YesNULL
onsaletinyint(1)Yes0
stock_quantitydoubleYesNULL
stock_statusvarchar(100)Yesinstock
rating_countbigint(20)Yes0
average_ratingdecimal(3,2)Yes0.00
total_salesbigint(20)Yes0
tax_statusvarchar(100)Yestaxable
tax_classvarchar(100)Yes

wp_wc_rate_limits

ColumnTypeNullDefault
rate_limit_idbigint(20)No
rate_limit_keyvarchar(200)No
rate_limit_expirybigint(20)No
rate_limit_remainingsmallint(10)No0

wp_wc_reserved_stock

ColumnTypeNullDefault
order_idbigint(20)No
product_idbigint(20)No
stock_quantitydoubleNo0
timestampdatetimeNo0000-00-00 00:00:00
expiresdatetimeNo0000-00-00 00:00:00

wp_wc_tax_rate_classes

ColumnTypeNullDefault
tax_rate_class_idbigint(20)No
namevarchar(200)No
slugvarchar(200)No

wp_wc_webhooks

ColumnTypeNullDefault
webhook_idbigint(20)No
statusvarchar(200)No
nametextNo
user_idbigint(20)No
delivery_urltextNo
secrettextNo
topicvarchar(200)No
date_createddatetimeNo0000-00-00 00:00:00
date_created_gmtdatetimeNo0000-00-00 00:00:00
date_modifieddatetimeNo0000-00-00 00:00:00
date_modified_gmtdatetimeNo0000-00-00 00:00:00
api_versionsmallint(4)No
failure_countsmallint(10)No0
pending_deliverytinyint(1)No0

wp_woocommerce_api_keys

ColumnTypeNullDefault
key_idbigint(20)No
user_idbigint(20)No
descriptionvarchar(200)YesNULL
permissionsvarchar(10)No
consumer_keychar(64)No
consumer_secretchar(43)No
nonceslongtextYesNULL
truncated_keychar(7)No
last_accessdatetimeYesNULL

wp_woocommerce_attribute_taxonomies

ColumnTypeNullDefault
attribute_idbigint(20)No
attribute_namevarchar(200)No
attribute_labelvarchar(200)YesNULL
attribute_typevarchar(20)No
attribute_orderbyvarchar(20)No
attribute_publicint(1)No1

wp_woocommerce_downloadable_product_permissions

ColumnTypeNullDefault
permission_idbigint(20)No
download_idvarchar(36)No
product_idbigint(20)No
order_idbigint(20)No0
order_keyvarchar(200)No
user_emailvarchar(200)No
user_idbigint(20)YesNULL
downloads_remainingvarchar(9)YesNULL
access_granteddatetimeNo0000-00-00 00:00:00
access_expiresdatetimeYesNULL
download_countbigint(20)No0

wp_woocommerce_log

ColumnTypeNullDefault
log_idbigint(20)No
timestampdatetimeNo
levelsmallint(4)No
sourcevarchar(200)No
messagelongtextNo
contextlongtextYesNULL

wp_woocommerce_order_itemmeta

ColumnTypeNullDefault
meta_idbigint(20)No
order_item_idbigint(20)No
meta_keyvarchar(255)YesNULL
meta_valuelongtextYesNULL

wp_woocommerce_order_items

ColumnTypeNullDefault
order_item_idbigint(20)No
order_item_nametextNo
order_item_typevarchar(200)No
order_idbigint(20)No

wp_woocommerce_payment_tokenmeta

ColumnTypeNullDefault
meta_idbigint(20)No
payment_token_idbigint(20)No
meta_keyvarchar(255)YesNULL
meta_valuelongtextYesNULL

wp_woocommerce_payment_tokens

ColumnTypeNullDefault
token_idbigint(20)No
gateway_idvarchar(200)No
tokentextNo
user_idbigint(20)No0
typevarchar(200)No
is_defaulttinyint(1)No0

wp_woocommerce_sessions

ColumnTypeNullDefault
session_idbigint(20)No
session_keychar(32)No
session_valuelongtextNo
session_expirybigint(20)No

wp_woocommerce_shipping_zones

ColumnTypeNullDefault
zone_idbigint(20)No
zone_namevarchar(200)No
zone_orderbigint(20)No

wp_woocommerce_shipping_zone_locations

ColumnTypeNullDefault
location_idbigint(20)No
zone_idbigint(20)No
location_codevarchar(200)No
location_typevarchar(40)No

wp_woocommerce_shipping_zone_methods

ColumnTypeNullDefault
zone_idbigint(20)No
instance_idbigint(20)No
method_idvarchar(200)No
method_orderbigint(20)No
is_enabledtinyint(1)No1

wp_woocommerce_tax_rates

ColumnTypeNullDefault
tax_rate_idbigint(20)No
tax_rate_countryvarchar(2)No
tax_rate_statevarchar(200)No
tax_ratevarchar(8)No
tax_rate_namevarchar(200)No
tax_rate_prioritybigint(20)No
tax_rate_compoundint(1)No0
tax_rate_shippingint(1)No1
tax_rate_orderbigint(20)No
tax_rate_classvarchar(200)No

wp_woocommerce_tax_rate_locations

ColumnTypeNullDefault
location_idbigint(20)No
location_codevarchar(200)No
tax_rate_idbigint(20)No
location_typevarchar(40)No

Leave a Comment