-- Host: db-master-5.internal    Database: analytics


--
-- 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=46553;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ZDhtvgR3n/9ERWUz.httk75umepOeKWEoFOigI3FYotEgu74HJRJ3','admin','ak_6ecbcbf9cccb134a','2023-08-22 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$zhUJJVLhq1PAEfNo3qRysZhaywbq/ma8H8WhgeE96GEnR32Wz2tDJ','user','ak_8ad0ecb689387660','2023-05-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Nnp8U4iyfWjb8lqYExQvAJOGF.ec7Tv6pfgIaHnoPuZMSDMa8hKjJ','admin','ak_7149d6a55a9ac8a0','2023-10-03 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Nu/ghHqkuDX2a68i8bJVgvlU2FRA/HXVMFFo2.hgQHJ.DYDTGas6H','user','ak_6bcf78f3cff39351','2023-02-10 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$/UAVaHeXpwzjqxtMv3vit7ecNwZsWe7GL6YjfL7El79TaqIaJHkMH','user','ak_13263abc9e3419bf','2023-11-05 10:21:00',NULL);

--
-- 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=18204;

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


