wp_shedform_submission_files

Static

Stores form submissions and user-entered data.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
titlevarchar(200)NO
statustinyint(1)NO
created_atdatetimeNO
updated_atdatetimeNO
form_idbigint(20) unsignedNO
row_labelvarchar(200)YES
columnsvarchar(20)NO
sort_orderint(11)NO
form_idbigint(20) unsignedNO
row_idbigint(20) unsignedYES
col_indextinyint(1)NO
field_keyvarchar(100)NO
field_typevarchar(50)NO
labelvarchar(200)NO
placeholdervarchar(200)YES
requiredtinyint(1)NO
optionslongtextYES
validationlongtextYES
extraslongtextYES
sort_orderint(11)NO
form_idbigint(20) unsignedNO
setting_keyvarchar(100)NO
setting_valuelongtextYES
form_idbigint(20) unsignedNO
serial_numbervarchar(100)YES
statustinyint(2)NO
ip_addressvarchar(45)YES
user_agentvarchar(500)YES
spam_scoretinyint(3) unsignedNO
spam_reasonstextYES
created_atdatetimeNO
submission_idbigint(20) unsignedNO
field_keyvarchar(100)NO
field_labelvarchar(200)NO
field_valuelongtextYES
field_typevarchar(50)NO
submission_idbigint(20) unsignedNO
memotextNO
created_bybigint(20) unsignedNO
created_atdatetimeNO
submission_idbigint(20) unsignedYES
mail_typevarchar(50)NO
to_emailvarchar(200)NO
cc_emailtextYES
bcc_emailtextYES
subjectvarchar(500)NO
bodylongtextNO
statusvarchar(20)NO
error_messagetextYES
sent_atdatetimeNO
submission_idbigint(20) unsignedNO
field_keyvarchar(100)NO
original_namevarchar(255)NO
file_pathvarchar(500)NO
file_sizeint(10) unsignedNO
mime_typevarchar(100)NO
created_atdatetimeNO

CREATE TABLE Statement

CREATE TABLE {$table_forms} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, title varchar(200) NOT NULL, status tinyint(1) NOT NULL DEFAULT 1, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ) {$charset_collate};"; // shedform_form_rows $table_rows = wp_'shedform_form_rows'; $sql_rows = "CREATE TABLE {$table_rows} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, form_id bigint(20) unsigned NOT NULL, row_label varchar(200) DEFAULT NULL, columns varchar(20) NOT NULL DEFAULT 'full', sort_order int(11) NOT NULL DEFAULT 0, PRIMARY KEY (id), KEY idx_form_id (form_id) ) {$charset_collate};"; // shedform_form_fields $table_fields = wp_'shedform_form_fields'; $sql_fields = "CREATE TABLE {$table_fields} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, form_id bigint(20) unsigned NOT NULL, row_id bigint(20) unsigned DEFAULT NULL, col_index tinyint(1) NOT NULL DEFAULT 0, field_key varchar(100) NOT NULL, field_type varchar(50) NOT NULL, label varchar(200) NOT NULL, placeholder varchar(200) DEFAULT NULL, required tinyint(1) NOT NULL DEFAULT 0, options longtext DEFAULT NULL, validation longtext DEFAULT NULL, extras longtext DEFAULT NULL, sort_order int(11) NOT NULL DEFAULT 0, PRIMARY KEY (id), KEY idx_form_id (form_id), KEY idx_row_id (row_id), KEY idx_sort_order (sort_order) ) {$charset_collate};"; // shedform_form_settings $table_settings = wp_'shedform_form_settings'; $sql_settings = "CREATE TABLE {$table_settings} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, form_id bigint(20) unsigned NOT NULL, setting_key varchar(100) NOT NULL, setting_value longtext DEFAULT NULL, PRIMARY KEY (id), KEY idx_form_id (form_id), UNIQUE KEY idx_form_setting (form_id, setting_key) ) {$charset_collate};"; // shedform_submissions $table_submissions = wp_'shedform_submissions'; $sql_submissions = "CREATE TABLE {$table_submissions} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, form_id bigint(20) unsigned NOT NULL, serial_number varchar(100) DEFAULT NULL, status tinyint(2) NOT NULL DEFAULT 0, ip_address varchar(45) DEFAULT NULL, user_agent varchar(500) DEFAULT NULL, spam_score tinyint(3) unsigned NOT NULL DEFAULT 0, spam_reasons text DEFAULT NULL, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_form_id (form_id), KEY idx_status (status), KEY idx_created_at (created_at) ) {$charset_collate};"; // shedform_submission_fields $table_sub_fields = wp_'shedform_submission_fields'; $sql_sub_fields = "CREATE TABLE {$table_sub_fields} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, submission_id bigint(20) unsigned NOT NULL, field_key varchar(100) NOT NULL, field_label varchar(200) NOT NULL, field_value longtext DEFAULT NULL, field_type varchar(50) NOT NULL DEFAULT 'text', PRIMARY KEY (id), KEY idx_submission_id (submission_id) ) {$charset_collate};"; // shedform_submission_memos $table_sub_memos = wp_'shedform_submission_memos'; $sql_sub_memos = "CREATE TABLE {$table_sub_memos} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, submission_id bigint(20) unsigned NOT NULL, memo text NOT NULL, created_by bigint(20) unsigned NOT NULL DEFAULT 0, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_submission_id (submission_id) ) {$charset_collate};"; // shedform_mail_logs $table_mail_logs = wp_'shedform_mail_logs'; $sql_mail_logs = "CREATE TABLE {$table_mail_logs} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, submission_id bigint(20) unsigned DEFAULT NULL, mail_type varchar(50) NOT NULL, to_email varchar(200) NOT NULL, cc_email text DEFAULT NULL, bcc_email text DEFAULT NULL, subject varchar(500) NOT NULL, body longtext NOT NULL, status varchar(20) NOT NULL DEFAULT 'sent', error_message text DEFAULT NULL, sent_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_submission_id (submission_id), KEY idx_mail_type (mail_type), KEY idx_status (status), KEY idx_sent_at (sent_at) ) {$charset_collate};"; $sql_sub_files = "CREATE TABLE wp_shedform_submission_files ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, submission_id bigint(20) unsigned NOT NULL, field_key varchar(100) NOT NULL, original_name varchar(255) NOT NULL, file_path varchar(500) NOT NULL, file_size int(10) unsigned NOT NULL DEFAULT 0, mime_type varchar(100) NOT NULL DEFAULT '', created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_submission_id (submission_id) ) {$charset_collate};"; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $sql_forms );

Safe to delete?

If you have uninstalled Shed Form, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_shedform_submission_files`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from Shed Form