DROP TABLE IF EXISTS `invoice_totals`;
CREATE TABLE `invoice_totals` (
                                  `id` int NOT NULL AUTO_INCREMENT,
                                  `invoice_id` int NOT NULL,
                                  `safe_id` int NOT NULL,
                                  `title` varchar(150) NOT NULL,
                                  `value` decimal(15,6) NOT NULL,
                                  `value_text` varchar(50) NOT NULL,
                                  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3;