CREATE TABLE wp_pha_acmessages ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, thread_key VARCHAR(64) NOT NULL, sender_id BIGINT UNSIGNED NOT NULL, receiver_id BIGINT UNSIGNED NOT NULL, message TEXT NOT NULL, product_id BIGINT UNSIGNED NULL, event_id BIGINT UNSIGNED NULL, is_deleted TINYINT(1) DEFAULT 0, edited_at DATETIME NULL, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, read_at DATETIME NULL, PRIMARY KEY (id), KEY thread_key (thread_key), KEY receiver_id (receiver_id), KEY created_at (created_at) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;aaww