PrestaShop 1.7 Database Structure

Here are descriptions of the database tables in PrestaShop v1.7. By default, each table has a prefix of ps_. When installing PrestaShop, there is an option to change this prefix. This allows PrestaShop to be installed multiple times in the same database and helps to prevent table name conflicts with other shopping carts installed in the same database.

The table names are all lowercase and use underscores between words, and include the types of objects in the table. For example, the ps_product table contains all the product information. Tables that end with _lang contain translations for the object. For example, ps_product_lang contains product translations.

When a table links together two types of objects, both objects are included in the table name. For example, ps_category_product links products to categories. The ID of each table starts with id_ followed by the object name. For example, the ID of the ps_product table is id_product.

Here are the core database tables installed by PrestaShop:

Table NameDescriptionPrimary Key
accessThe employee profile permissionsid_profile, id_tab
accessoryProduct accessoriesid_product_1, id_product_2
addressCustomer, manufacturer and supplier addressesid_address
address_formatAddress format for each countryid_country
admin_filterBack Office employee filtersid
aliasSearch keyword aliasid_alias
attachmentProduct attachmentsid_attachment
attachment_langProduct attachment names and descriptionsid_attachment, id_lang
attributeProduct attributesid_attribute
attribute_groupProduct attribute groupsid_attribute_group
attribute_group_langProduct attribute group namesid_attribute_group, id_lang
attribute_group_shopProduct attribute group shop associationsid_attribute_group, id_shop
attribute_impactProduct attribute price and weight impactsid_attribute_impact
attribute_langProduct attribute namesid_attribute, id_lang
attribute_shopProduct attribute shop associationsid_attribute, id_shop
authorization_roleBack Office employee permissionsid_authorization_role
carrierCarriersid_carrier
carrier_groupCarrier customer group restrictionsid_carrier, id_group
carrier_langCarrier transit time messagesid_carrier
carrier_shopCarrier shop associationsid_carrier, id_shop
carrier_tax_rules_group_shopCarrier tax rule shop associationsid_carrier, id_tax_rules_group, id_shop
carrier_zoneZones each carrier is availableid_carrier, id_zone
cartCustomer and guest cartsid_cart
cart_cart_ruleVoucher codes used in carts (v1.5 and later)id_cart, id_cart_rule
cart_productProducts in customer cartsid_cart, id_product, id_product_attribute
cart_ruleVouchersid_cart_rule
cart_rule_carrierVoucher carrier associationsid_cart_rule, id_carrier
cart_rule_combinationAllowed voucher combinationsid_cart_rule_1, id_cart_rule_2
cart_rule_countryVoucher country associationsid_cart_rule, id_country
cart_rule_groupVoucher group associationsid_cart_rule, id_group
cart_rule_langVoucher namesid_cart_rule, id_lang
cart_rule_product_ruleVoucher condition typesid_product_rule
cart_rule_product_rule_groupVoucher quantitiesid_product_rule_group
cart_rule_product_rule_valueVoucher condition itemsid_product_rule, id_item
cart_rule_shopVoucher shop associationsid_cart_rule, id_shop
categoryProduct categoriesid_category
category_groupProduct category customer group restrictionsid_category, id_group
category_langProduct category names and descriptionsid_category, id_lang
category_productProducts in each categoryid_category, id_product
category_shopCategory shop associationsid_category, id_shop
cmsCMS pagesid_cms
cms_categoryCMS categoriesid_cms_category
cms_category_langCMS category namesid_cms_category, id_lang
cms_category_shopCMS category shop associationsid_cms_category, id_shop
cms_langCMS page contentid_cms, id_lang
cms_roleCMS page rolesid_cms_role, id_cms
cms_role_langCMS page role translationsid_cms_role, id_lang, id_shop
cms_shopCMS page shop associationsid_cms, id_shop
configurationConfiguration settingsid_configuration
configuration_kpiBack Office tab stats (key performance indicators)id_configuration_kpi
configuration_kpi_langBack Office tab stats translationsid_configuration_kpi, id_lang
connectionsVisitor IP addresses, referrers and pages visitedid_connections
connections_pageStart and end times of page visitsid_connections, id_page, time_start
connections_sourceVisitor referrers and search engine keywordsid_connections_source
contactContact form subjectsid_contact
contact_langContact form subject namesid_contact, id_lang
contact_shopContact form subject name shop associationsid_contact, id_shop
countryCountriesid_country
country_langCountry namesid_country, id_lang
country_shopCountry shop associationsid_country, id_shop
currencyCurrenciesid_currency
currency_shopCurrency shop associationsid_currency, id_shop
customerCustomersid_customer
customer_groupCustomer groupsid_customer, id_group
customer_messageCustomer messages through contact formid_customer_message
customer_message_sync_imapMD5 hashes of read customer messages
customer_threadThreads of messages through contact formid_customer_thread
customizationCustomised product data in cartid_customization, id_cart, id_product
customization_fieldProduct customisation fieldsid_customization_field
customization_field_langProduct customisation field namesid_customization_field, id_lang
customized_dataCustomised product data entered by customersid_customization, type, index
date_rangePage view date rangesid_date_range
deliveryCarrier delivery pricesid_delivery
employeeBack Office employeesid_employee
employee_shopBack Office employee shop associationsid_employee, id_shop
featureProduct featuresid_feature
feature_langProduct feature namesid_feature, id_lang
feature_productLinks feature values to productsid_feature, id_product
feature_shopProduct feature name shop associationsid_feature, id_shop
feature_valueProduct feature valuesid_feature_value
feature_value_langProduct feature value namesid_feature_value, id_lang
genderCustomer titles (Mr., Mrs., Miss)id_gender
gender_langCustomer title namesid_gender, id_lang
groupCustomer groups and reductionsid_group
group_langCustomer group namesid_group, id_lang
group_reductionCustomer group category reductionsid_group_reduction
group_shopCustomer group shop associationsid_group, id_shop
guestGuestsid_guest
hookModule hook names and descriptionsid_hook
hook_aliasModule hook aliasesid_hook_alias
hook_modulePosition of modules in each hookid_module, id_hook
hook_module_exceptionsPage exceptions for each moduleid_hook_module_exceptions
imageProduct imagesid_image
image_langProduct image legendsid_image, id_lang
image_shopProduct image shop associationsid_image, id_shop
image_typeProduct image thumbnail sizesid_image_type
import_matchSaved CSV import configurationsid_import_match
langLanguagesid_lang
lang_shopLanguage shop associationsid_lang, id_shop
logLog of PHP errors and warningsid_log
mailLog of emails sentid_mail
manufacturerManufacturersid_manufacturer
manufacturer_langManufacturer descriptionsid_manufacturer, id_lang
manufacturer_shopManufacturer shop associationsid_manufacturer, id_shop
memcached_serversMemcached serversid_memcached_server
messageOrder messagesid_message
message_readedOrder messages that have been marked as readid_message, id_employee
metaPage namesid_meta
meta_langPage meta informationid_meta, id_lang
moduleModules directoriesid_module
module_accessEmployee module permissionsid_profile, id_module
module_countryModule country restrictionsid_module, id_country
module_currencyModule currency restrictionsid_module, id_currency
module_groupModule customer group restrictionsid_module, id_group
module_preferenceEmployee favourite modulesid_module, id_group
module_shopModule shop associationsid_module, id_shop
operating_systemRecognised operating systemsid_operating_system
ordersOrdersid_order
order_carrierOrder carrier cost and tracking numberid_order_carrier
order_cart_ruleOrder vouchersid_order
order_detailOrder productsid_order_detail
order_detail_taxOrder product tax information
order_historyOrder status historyid_order_history
order_invoiceOrder invoice informationid_order_invoice
order_invoice_paymentOrder invoice paymentsid_order_invoice, id_order_payment
order_invoice_taxOrder invoice tax information
order_messagePredefined order messagesid_order_message
order_message_langPredefined order message namesid_order_message, id_lang
order_paymentOrder payment informationid_order_payment
order_returnMerchandise returnsid_order_return
order_return_detailMerchandise return productsid_order_return, id_order_detail, id_customization
order_return_stateMerchandise return statusesid_order_return_state
order_return_state_langMerchandise return status namesid_order_return_state, id_lang
order_slipCredit slipsid_order_slip
order_slip_detailCredit slip productsid_order_slip, id_order_detail
order_slip_detail_taxOrder slip tax
order_stateOrder statusesid_order_state
order_state_langOrder status namesid_order_state, id_lang
packProduct packsid_product_pack, id_product_item
pagePagesid_page
page_typePage namesid_page_type
page_viewedViewed pagesid_page, id_date_range
productProduct informationid_product
product_attachmentProduct informationid_product
product_attributeProduct attribute informationid_product_attribute
product_attribute_combinationProduct attribute combinationsid_attribute, id_product_attribute
product_attribute_imageProduct attribute imagesid_product_attribute, id_image
product_attribute_shopProduct attribute shop associationsid_product_attribute, id_shop
product_carrierProduct carrier associationsid_product, id_carrier_reference, id_shop
product_country_taxProduct country taxesid_product, id_country, id_tax
product_downloadDownloadable productsid_product_download
product_group_reduction_cacheProduct customer group reductionsid_product, id_group
product_langProduct names and descriptionsid_product, id_lang
product_saleProduct sale dataid_product
product_shopProduct shop associationsid_product, id_shop
product_supplierProduct supplier associationsid_product_supplier
product_tagProduct tagsid_product, id_tag
profileEmployee profileid_profile
profile_langEmployee profile nameid_profile, id_lang
quick_accessBack Office quick accessesid_quick_access
quick_access_langBack Office quick access namesid_quick_access, id_lang
range_priceCarrier price rangesid_range_price
range_weightCarrier weight rangesid_range_weight
referrerAffiliate program accountsid_referrer
referrer_cacheAffiliate program referralsid_connections_source, id_referrer
referrer_shopAffiliate program shop associationsid_referrer, id_shop
request_sqlSaved SQL queriesid_request_sql
required_fieldRequired fieldsid_required_field
riskRisk level coloursid_risk
risk_langRisk level namesid_risk, id_lang
search_engineRecognised search enginesid_search_engine
search_indexPrestaShop search engine keyword indexid_product, id_word
search_wordPrestaShop search engine keywordsid_word
shopShopsid_shop
shop_groupShop groupsid_shop_group
shop_urlShop URLsid_shop_url
smarty_cacheSmarty cacheid_smarty_cache
smarty_last_flushSmarty cache last flush timestype
smarty_lazy_cacheSmarty lazy cachetemplate_hash, cache_id, compile_id
specific_priceSpecific pricesid_specific_price
specific_price_prioritySpecific price prioritiesid_specific_price_priority, id_product
specific_price_ruleSpecific price rulesid_specific_price_rule
specific_price_rule_conditionSpecific price rule typesid_specific_price_rule_condition
specific_price_rule_condition_groupSpecific price rule conditionsid_specific_price_rule_condition_group, id_specific_price_rule
stateStatesid_state
stockWarehouse stock quantitiesid_stock
stock_availableAvailable warehouse stock quantitiesid_stock_available
stock_mvtStock movementsid_stock_mvt
stock_mvt_reasonStock movement reasonsid_stock_mvt_reason
stock_mvt_reason_langStock movement reason namesid_stock_mvt_reason, id_lang
storeStore addressesid_store
store_shopStore address shop associationsid_store, id_shop
supplierSuppliersid_supplier
supplier_langSupplier namesid_supplier, id_lang
supplier_shopSupplier shop associationsid_supplier, id_shop
supply_orderWarehouse supply ordersid_supply_order
supply_order_detailWarehouse supply order productsid_supply_order_detail
supply_order_historyWarehouse supply order status historyid_supply_order_history
supply_order_receipt_historyWarehouse supply order receipt historyid_supply_order_receipt_history
supply_order_stateWarehouse supply order statusesid_supply_order_state
supply_order_state_langWarehouse supply order status namesid_supply_order_state, id_lang
tabBack Office tabsid_tab
tab_langBack Office tab namesid_tab, id_lang
tab_module_preferenceEmployee Back Office tab module override preferencesid_tab, id_tab_module_preference
tagProduct tags used in tag cloudid_tag
tag_countCustomer group product tag countsid_group, id_tag
taxTaxesid_tax
tax_langTax namesid_tax, id_lang
tax_ruleTax rulesid_tax_rule
tax_rules_groupTax rule namesid_tax_rules_group
tax_rules_group_shopTax rule shop associationsid_tax_rules_group, id_shop
timezoneTimezonesid_timezone
warehouseWarehousesid_warehouse
warehouse_carrierWarehouse carrier associationsid_carrier, id_warehouse
warehouse_product_locationWarehouse product locationsid_carrier, id_warehouse_product_location
warehouse_shopWarehouse shop associationsid_shop, id_warehouse
webservice_accountWebservice accountsid_webservice_account
webservice_account_shopWebservice account shop associationsid_webservice_account, id_shop
webservice_permissionWebservice permissionsid_webservice_permission
web_browserRecognised web browsersid_web_browser
zoneCarrier zonesid_zone
zone_shopCarrier zone shop associationsid_zone, id_shop

Depending on which PrestaShop modules are installed, the following tables may also exist:

Table NameDescriptionPrimary Key
aeuc_cmsrole_emailLegal Compliance email templates with terms and conditionsid
aeuc_emailLegal Compliance email templatesid_mail
emailsubscriptionNewsletter Subscription subscriptionsid
homesliderImage Slider shop associationsid_homeslider_slides, id_shop
homeslider_slidesImage Slider slidesid_homeslider_slides
homeslider_slides_langImage Slider slide titles, descriptions and URLsid_homeslider_slides, id_lang
infoCustom Text Blocks blockid_info
info_langCustom Text Blocks translationsid_info, id_lang
layered_categoryFaceted Search filtersid_layered_category
layered_filterFacted Search templates
layered_filter_shopFacted Search template shop associationsid_layered_filter, id_shop
layered_friendly_urlFacted Search friendly URLsid_layered_friendly_url
layered_indexable_attribute_groupFacted Search indexable attribute groupsid_attribute_group
layered_indexable_attribute_group_lang_valueFacted Search attribute group URLs and metatitlesid_attribute_group, id_lang
layered_indexable_attribute_lang_valueFacted Search attribute URLs and meta-titlesid_attribute, id_lang
layered_indexable_featureFacted Search indexable featuresid_feature
layered_indexable_feature_lang_valueFacted Search feature URLs and metatitlesid_feature, id_lang
layered_indexable_feature_value_lang_valueFacted Search feature value URLs and metatitlesid_feature_value, id_lang
layered_price_indexFacted Search minimum and maximum price indexid_product, id_currency, id_shop
layered_product_attributeFacted Search product attributesid_attribute, id_product, id_shop
link_blockLink List blocksid_link_block
link_block_langLink List block titlesid_link_block, id_lang
link_block_shopLink List block shop associationsid_link_block, id_shop
linksmenutopMain Menu linksid_linksmenutop
linksmenutop_langMain Menu link translations 
pagenotfoundPage not found dataid_pagenotfound
reassuranceCustomer Reassurance Block imagesid_reinsurance
reinsurance_langCustomer Reassurance Block textid_reinsurance, id_lang
sekeywordExternal search engine keywordsid_sekeyword
statssearchPrestaShop search engine statisticsid_statssearch