← Shopware 6.1.0.rc1

Shopware 6.1.0.rc1 media

Central media library — stores metadata for all uploaded files (images, documents, videos).

Columns

14 columns

Column Type Nullable Additional
id binary(16) NO Primary Key
user_id binary(16) YES Index Foreign Key → user.id
media_folder_id binary(16) YES Index Foreign Key → media_folder.id
mime_type varchar(255) YES
file_extension varchar(50) YES
file_size int(10) unsigned YES
meta_data longtext YES
file_name longtext YES
media_type longblob YES
thumbnails_ro longblob YES
private tinyint(1) NO Default: 0
uploaded_at datetime(3) YES
created_at datetime(3) NO
updated_at datetime(3) YES

Indexes

3 indexes

Index Name Columns Unique
fk.media.media_folder_id media_folder_id No
fk.media.user_id user_id No
PRIMARY id Yes

Relations (from this table)

2 relations

Local Field Foreign Table Foreign Field
media_folder_id media_folder id
user_id user id

Relations (to this table)

19 relations

Local Field Foreign Table Foreign Field
id shipping_method media_id
id media_translation media_id
id user avatar_id
id category media_id
id cms_page preview_media_id
id payment_method media_id
id media_thumbnail media_id
id property_group_option media_id
id product_manufacturer media_id
id product_media media_id
id document document_media_file_id
id theme_media media_id
id mail_template_media media_id
id document_base_config logo_id
id media_tag media_id
id cms_section background_media_id
id cms_block background_media_id
id order_line_item cover_id
id product_configurator_setting media_id