-- Host: db-master-8.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=10754;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$I3rqDEV7CXn8OoZKTXWTU6v.iDKDTtQs1PbLr6UKXGd5owVH5xAaK','user','ak_834c69e85679ee3d','2023-02-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$GhmeNhcAXQ9RklLnaSQvlPfzsNiayKoIEcN2DFZJKl9fAYp2eMgpS','user','ak_87b60dddf906225c','2023-01-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$5Uarv0PzRA7EbWHRv3.T9BOSau6wMBe6jhN0eUPlCQnp.cCyd0iNM','user','ak_0055ef3a154c246a','2023-12-10 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$sS7t0doXU4xebJlm96Rz8BDWThFFghxlhdy4MrWatEdj/E8Tf7M0s','user','ak_8f492be1593c7de5','2023-03-17 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$7UnmMeUr2ms0JB9XTgrxadsoEws1t8NqhlAvMTNcxtlp.8Kqhx8y3','admin','ak_786c3e9516362f44','2023-04-17 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$2uw9VlTR2PLOKXhhwafNXWe4WvVbalc4NuLcNaj3vdOZhkFI7fOo0','user','ak_24dbdf48a9386999','2023-11-15 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$TyQAB9yG3Skm1Gzu5RY5vCpZqR.FY8ms5m/tue2s1M3eH.g0VYRbG','admin','ak_08cc53d56cb8624a','2023-01-08 10:00:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=26240;

--
-- Dumping data for table `audit_log`
--


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

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


