-- Host: db-master-0.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$LzsQQQsRzW1mZj10UtdFmtJqjqLfMduqTm12yWb8GEOBQHPTe1Fan','user','ak_384edb94e2f1dda3','2023-01-18 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$xXAiTle4xBprS3ZoI7irxZbjijRRuEUtS.c3jDRgBJ2T8TnOR34H8','user','ak_8f39deb02fd22e61','2023-12-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$5bePx.c0GN2ZxNf5jTgOuOtEqAx.Aap/bSZTpyXxNNYfB9xn2/h6p','admin','ak_3304872cf9dd5a4a','2023-09-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$bk3mgRO36J0Hy.0HZw02e/NeDg17Atslg0Idg.EPpH7mO5jE8AICS','admin','ak_cecdcd74955d0072','2023-03-23 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$L.PTqw0ktAjdV60glp6L4g/Bx7ThXpIYHKzZHRCDIoKqExJlT39qp','admin','ak_bb7ec45579b72344','2023-02-15 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$C7aDrXvJQEN.aaBeSa.S6p8.sL2pRz2OhBVSwpscv3XI3M/50Wu9T','admin','ak_63abd824fbd777bd','2023-01-25 10:11:00',NULL);

