-- Host: db-master-0.internal    Database: main_app


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=40212;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=34539;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$XIQfnKEYfVTxQHClYV4BxMKQTA7W/8dCxUl9reDssbXUxd2vicS5q','admin','ak_536838133809e4d5','2023-05-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$okZdhC.Ge0xrc3aVhfQQR9XbL5kSKGGxFggHgcxDogzeHdGSTUSCU','user','ak_7c38e6925c8277d6','2023-04-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$D6owHhwOVWVJmmG0CT7z7cNoDgnGFDRwpTP4L9GNYO9l6X/IlniRn','admin','ak_eaf978e94cd1692d','2023-06-20 10:08:00',NULL);

