CREATE TABLE u0305746_jw.objects_site_published (
    id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
    object_id BIGINT UNSIGNED NOT NULL,
    site_published BOOLEAN NULL,
    PRIMARY KEY (id)
) ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;





CREATE TABLE object_iframe (
    id INT UNSIGNED NOT NULL AUTO_INCREMENT,
    agency_id INT UNSIGNED NOT NULL,
    iframe_token VARCHAR(255) NOT NULL,
    iframe_created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    iframe_updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    primary_color VARCHAR(7) DEFAULT NULL, 
    iframe_enabled TINYINT(1) NOT NULL DEFAULT 0,
    PRIMARY KEY (id),
    INDEX (agency_id)
)