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


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$.cQnWdz47icR.SAbnscevXE82yNZmnpcDG055iLEuLraGSHc9R1lF','admin','ak_9ffd016056a1faec','2023-06-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$4DGiHrc9D/r3OCwWasasArv0GO631zGFzXy5xzrfG2f/S2RjfhfM1','admin','ak_7dc20eb6685a18f4','2023-05-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$I3q5ck0huSMSbk4Yz3M1DHaZtvf7bQCtLfgusqS3xHUyLgkscw0MQ','user','ak_10c429ee2653fb31','2023-09-15 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$GkYlkja98/ygNcTUcYlLeWtNl8R.VoFsaUIB8EMOBMYAWLE9XJtz2','user','ak_c772b7f577c4eb13','2023-04-25 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$AcnZ33LvSSY2MnGX0aH43JtKbnvW/Q/ija41ckEDJepBqcTEeKpUM','user','ak_752d80ea8adc9d83','2023-10-09 10:11:00',NULL);

