-- Host: db-master-9.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=28246;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$vMQzV2JATvqozktVG1xNoZ6vHa42.cq462umajG8DeA3yPWYzasEV','user','ak_e58184806bf6105b','2023-06-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$hE0cWMBmw154Ce1UHxJgx6k5Zjbk4EVt5EukDHmllej/bHjEoJhJs','user','ak_d4c28346aa4b20d2','2023-03-09 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$GS745cZhl0s3nlvC1U9ViiE8ncjL2MdK72yxIo5/hBmo4t04Mca9X','user','ak_9f84a10fcf17b9f0','2023-06-10 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$yDBgS6VtEt0uUQCvgdx5zNZCYCgDoogw7Isxcmq0eUl6tQumYiK06','user','ak_8e2c79326208a8c5','2023-01-17 10:23:00',NULL);

