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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$4bDXYMO41HHLBCy5.K9iXcoR2L9zoOO/DbIGGBg.Dr4e38HQIvlnP','admin','ak_406856be167e9396','2023-05-24 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Km/j4GPhpFf97uathZulzcDElPEnpdGMh7giTxpn8Qai0k8z.tTLV','user','ak_4fdccd9ae51af410','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$XBXU0jz4jWgQk1y0yyuL4ER7P9.svhYoJKhg4KLkyo272DVYQ5L0Z','admin','ak_4ac422f58a40fd69','2023-10-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$sDcFftlcNqBfgXXhmOydJQZ//i8sYmBD4u0pBHU2Vhx5oZMOdIpts','admin','ak_0dddbc9e876abeba','2023-10-01 10:18: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=40878;

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


