This commit is contained in:
2025-12-07 23:49:20 +01:00
parent bf7971aaa0
commit 3e7d438ab6
2 changed files with 58 additions and 1 deletions

View File

@@ -139,6 +139,17 @@ CREATE TABLE IF NOT EXISTS `emailtemplate_sender_identities` (
CONSTRAINT `fk_sender_customer` FOREIGN KEY (`customer_id`) REFERENCES `emailtemplate_customers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Tabelle: emailtemplate_template_usage
CREATE TABLE IF NOT EXISTS `emailtemplate_template_usage` (
`template_id` int(10) unsigned NOT NULL,
`customer_id` int(10) unsigned NOT NULL,
`render_count` int(10) unsigned NOT NULL DEFAULT 0,
`last_rendered_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`template_id`),
KEY `idx_usage_customer` (`customer_id`),
CONSTRAINT `fk_usage_template` FOREIGN KEY (`template_id`) REFERENCES `emailtemplate_templates` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Tabelle: emailtemplate_customer_users
CREATE TABLE IF NOT EXISTS `emailtemplate_customer_users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,