-- Host: db-master-9.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=6258;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$8d13ZboFMG6kJFG2IStkehzSFWV5/zhA3n5j7qfkYtHdx1BWravVs','user','ak_a5784929f36767a9','2023-06-20 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$8nyDPd5KqvPdXMr3xBMalnN1zgP8Syrxg.ircQjEX6Vr5iSkNMUsF','user','ak_f376d604c6386cdf','2023-10-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$XfANLOJWZWmjudP/JXR6kJP9ZcoYZGf.g/aOB1pScarsGDh18b/aL','user','ak_c02fb096618e5959','2023-11-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$b/dhXHDlwslC5UzOLgJsEw5sqPUiD4a00KFYlZ6V4wW4yOrw7XEqM','user','ak_28c39052d2ac13ac','2023-09-06 10:03: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=15642;

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


