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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$/SvqAx3.zBySarqxwZ4JfbdyKWHBwnY969O74EAE0LrK0N3jiZjV0','user','ak_3514319c5a4369a5','2023-06-01 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$/KnlGiR58PzUlrOQXalfJ7Xw15A3t7xzKjTiqmUbP5xnZYSSMyG7e','user','ak_5ea58120aec638a2','2023-05-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$3dVCU74/ZWB4RhZALOwUNocqEeQQSsNx/JE9u7PoDAba3CnC/xZgH','user','ak_e11f13e40827760e','2023-08-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$kLTI7L6S6o/NrvcyDR3S8RkiCCICZ53fXRzjlRRFUUVdOlVGl0wu9','user','ak_1628563d413d3d10','2023-10-24 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$PY4C2sOwgskoD9vtGfmcitZsdY.mfNKE6iy5KCwEfjMfPseWf1nUq','user','ak_2d937e4e7cbe4837','2023-04-11 10:04: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=41120;

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


