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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$u6iMKTKQ8uc20kG9DEIkx62gEL3T6zH9IBh/ieCGlKbPfLJv6vo1s','user','ak_0319685cc2be8266','2023-09-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$HT8QfKkmb/QD3SgYt/T0/LaXWd.KagcgWU1ddXZqNBIi.TNOkGUzg','user','ak_5eef1d05d1367dba','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$m9O6P0QttkQgYOXOWIMgo9dtGkBhHcDQ3uRry34W7FS4zyHcf5x8h','admin','ak_ef6e1eeae8002b99','2023-09-15 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$/c9JE6DLRhYNX7DUK7bad6MYKA8Th1RhMEkTk/Jy0/BTwkVMs2dD2','admin','ak_7548c16a09e38bb1','2023-06-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$cFsnaa6GGAZvCtSSWcgm0WTOhAvQEnJVDtaGsLBRv5S7TmgjSQkZY','user','ak_0780e5f4364f0686','2023-04-14 10:14: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=48431;

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


