This commit is contained in:
2026-01-11 01:54:38 +01:00
parent aeea724854
commit af865bc6e7
5 changed files with 220 additions and 9 deletions

View File

@@ -219,6 +219,7 @@ CREATE TABLE IF NOT EXISTS `emailtemplate_templates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`customer_id` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`api_name` varchar(190) NOT NULL,
`json_content` mediumtext DEFAULT NULL,
`html` mediumtext DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
@@ -226,7 +227,8 @@ CREATE TABLE IF NOT EXISTS `emailtemplate_templates` (
PRIMARY KEY (`id`),
KEY `idx_tpl_customer` (`customer_id`),
KEY `idx_tpl_updated` (`updated_at`),
KEY `idx_tpl_name` (`name`)
KEY `idx_tpl_name` (`name`),
UNIQUE KEY `uidx_tpl_customer_api_name` (`customer_id`, `api_name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Tabelle: emailtemplate_template_items
@@ -260,4 +262,4 @@ CREATE TABLE IF NOT EXISTS `emailtemplate_template_usage` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
SET FOREIGN_KEY_CHECKS = 1;
-- Ende des Schema-Dumps
-- Ende des Schema-Dumps