CREATE TABLE IF NOT EXISTS `apaczka_integration_settings` (
    `id` TINYINT UNSIGNED NOT NULL PRIMARY KEY,
    `api_key_encrypted` TEXT NULL,
    `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

INSERT INTO `apaczka_integration_settings` (`id`) VALUES (1)
ON DUPLICATE KEY UPDATE `updated_at` = NOW();
