
DROP TABLE IF EXISTS `vitex`.`campos_kv`;

CREATE TABLE `campos_kv` (
  `campos_kv_id` int NOT NULL AUTO_INCREMENT,
  `concepto` varchar(50) NOT NULL,
  `valor` varchar(100) NOT NULL,
  `fecha` date DEFAULT NULL,
  `alta_db` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`campos_kv_id`),
  UNIQUE KEY `concepto` (`concepto`,`fecha`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;


INSERT INTO `campos_kv` (`campos_kv_id`, `concepto`, `valor`, `fecha`, `alta_db`) VALUES
(1, 'EN EL MAR', '3107637.45', '2024-02-14', '2024-02-14 17:22:17');