-- Host: db-master-0.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=40108;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$X43dTHRpK1UXUkjD2E2yCiHnuTB9vxDk9JMX2tOv65S.uFdPru3gP','user','ak_d3ca5728dd4cd0b4','2023-01-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$y.ZywrWx9/w8JCmVWM05JXHN841AXivDKZt0xCh3rbDr7SYi0FX8y','admin','ak_e5454c60707dee91','2023-07-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$QN/8iRWmRIYW87V0Azy9PqGqZ9GEzgFxdzqoQyffyoom35HCGbUAj','user','ak_030c0655446a0028','2023-10-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$vu6AMyBlEeJ5AYOKZshqwbGv.kKfnqQVMv7U2UJ2K/g1hwbYtq9AX','admin','ak_79ea7c4ef25ac217','2023-07-14 10:11: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=44327;

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


