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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Lgd.cLfl1T72D998K1B38rvilBv20dy8qajtmo/ZYlzG8OBYdCnCX','user','ak_6a36565a133eb680','2023-03-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$f9A/TVWksknU503qGpMcPCvCJ.ABLjjkvGkC4gbE66tLtFH99An/I','user','ak_4cb4daef6ad049cf','2023-09-03 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$j5XzaQ2CAZdpJxlw.Heq4KC92289.sSa9c3VhJIvHEfzQ2xXlrMcC','user','ak_b9b405d7ba67e5a6','2023-10-23 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$neu/iINH/jDoxeHkTKHUl9VCLStGpOdvoy3HHluPzJExgHhPCH7m/','admin','ak_e7a77e435bcf4946','2023-09-02 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$/nmRhfuaJog47WN.tTZWZSnpmlSLbsHJVEPwjvKlhSTYBQWoqpCy4','user','ak_78a0a340b892980a','2023-08-02 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=34663;

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


