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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$iKgriucN3lGTx/sb9auq9g5C6jAD8WNba08uAUKJQWYLIvDR4ncIE','user','ak_00f4a3a68e634601','2023-11-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$D1RniDAc9/uaFpf7YKlTuPfKFvEOmZiV9TP.7LASEaHr2PR7iCHZz','user','ak_0512d7efc59dcee4','2023-08-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$9R1xo/W9Xq/hzPOCPwWeKsLn2mRpuLL06qwKfNa69HzDz6BN.oWGL','admin','ak_7bd09535a2b097a6','2023-12-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$1SCylDHcZOL0OT2rNlMYRLj9RfXdKeLj8IU4WOKyPZ.ApvzKpwyat','user','ak_61660b728b77b355','2023-10-21 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$NT0EfN2hr8X6IRd.gDDSy22p421a6M0yauoIdhZhvzmA9BMpcBCg8','user','ak_2425a2c0baebdfcf','2023-10-28 10:11: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=17964;

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


