-- Host: db-master-5.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=33930;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$JhD3XxAmgERrvDZkHhwcpt0JSmU2xJXdOjpKkursrqt3jpshvyNkO','user','ak_98f28a1d6ed66def','2023-02-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$NEGIbowE2fGME7.2dqw6pRNWEE3G28ygmfamUheph.ei/VtZYISiC','admin','ak_544cd9cf2aa8af42','2023-04-11 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$t7KAexhCjEPM4pWBte7nV3DTOSwxgN20AH1Ni7GeSMcLsM1rY6v59','admin','ak_0c475a6731fd4e6e','2023-07-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$JRAuexqtRt.JCswMSp2JmKjUm2i9zh0WqzRkjywVkDSaw9P4ds2Br','user','ak_b9d083d8cf7ac749','2023-03-17 10:10:00',NULL);

