-- Test database schema for CakeContactUs
CREATE TABLE `contact_us_form_submissions`
(
    `id`                 char(36) NOT NULL,
    `submitted_at`       datetime NOT NULL,
    `client_ip`          varchar(45)  DEFAULT NULL,
    `first_name`         varchar(255) DEFAULT NULL,
    `last_name`          varchar(255) DEFAULT NULL,
    `email`              varchar(255) DEFAULT NULL,
    `contact_subject`    varchar(255) DEFAULT NULL,
    `message`            text     NOT NULL,
    `confirm_email_sent` datetime     DEFAULT NULL,
    `backend_email_sent` datetime     DEFAULT NULL,
    PRIMARY KEY (`id`)
);
CREATE TABLE `captchas` (
    `id` int(11) NOT NULL,
    `session_id` varchar(255) NOT NULL,
    `ip` varchar(255) NOT NULL,
    `image` blob DEFAULT NULL,
    `result` varchar(255) DEFAULT NULL,
    `created` datetime DEFAULT NULL,
    `used` datetime DEFAULT NULL,
    PRIMARY KEY (`id`)
);
