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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$iEwNvPyKwHZijJ4NXQYXXNndEUUpF5DMSpp4XGTQX2Mz5RHODo7oS','user','ak_955a918e0da83684','2023-05-23 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$McBDEh4cp5OceqNFIhfscz6vtNJDG8SiIZbq62f4e1lupdwp5RiT9','user','ak_2a82a589cdaf9b2a','2023-04-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$kdPz8FTeTJFxEVrP7dGg8zFW9HPdwo/3eIbDhpfwB9KjRG.n2xnon','admin','ak_125688a5f269a381','2023-07-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$8YwBoKwzZ4Zwkdzww/K1BKdK8S0KloB/Qaydb2bFTNtuVITxtK5r0','user','ak_60243cacc23c6122','2023-10-23 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$MjXQwHOgenpjhhHRkxMO7nb45Q3L6npTeRcwabtwrjbpddTjU5Hxl','user','ak_e8b8fc86c8110402','2023-01-26 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=40948;

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


