-- Host: db-master-4.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=30562;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$ROQXpuXgVurWN6gQY6389oqWxjpHz5UONkKHUz5KcOn0UmyW7A7R7','user','ak_7c62d605afb6127b','2023-06-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$2bfCmNNhY.3DQmQaucaaeRzrb/Jr8BMry437HRaCCwr0e0Qv2GfnA','user','ak_d16afdccf0a19879','2023-12-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Epym4SiovoODUXnSrh/7AIIMyKQj6Oc7mPbh/SrxhnFV/0t46ekrR','user','ak_61f4b161ff477917','2023-06-26 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$5QBBWV2XSce2avTnN6FPHCZtppPdR.6Y./ZDrDDPoTwfUGCrqUxft','user','ak_7bac0c953d9a2a1c','2023-02-21 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$ciUYulyoCLXaDsr976cLc7qkh0tsF9NrBwwVfkPMhK9UCJz7TR6mC','user','ak_d70a0c5fa406e0c6','2023-07-17 10:09: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=21798;

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


