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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$N88WwjeKpbnFwLxF40QKtH.dasSA/4C9RVZ28dF5YvEXmFq.tSb/q','user','ak_c91bf31c834bec72','2023-03-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$PgCWTurRkmieaH1nvy.P3zQMSLIJ.fjF3VCgtUKmjC8qmA3STnAEj','user','ak_f80689caf97d8fa6','2023-10-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$bqjnHUa1SwhGLUK2RNu30DtI3AQF7.Ds2f9VbBC1ofyIWY29sHq7C','user','ak_8835a6e808c88444','2023-08-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$uvuvXKwwSQ5DHo57vUCEQQKEmBMzpYR0oTBYsgerAouoyRthoe6lJ','admin','ak_4a6d98510b580dd8','2023-05-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ccuE0VvT4/hWQ34VtqMGkTbj8G.OsuRFLx0u9Y5GvGjAJX/4CqE4W','user','ak_6d187902f5c29852','2023-02-21 10:08: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=49009;

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


