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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=35957;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$wer8G3Zf1EkoKhvfEnt5kU4OYYfW19i.1PTtvpvmQVL9rCqLPdmi9','user','ak_8ddf0385ab95a236','2023-04-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Phl5BtaB4FKlCHz6IAiqrUTT8WrgYwOIxrHMCEDpf.VMiuATsben3','user','ak_1aec14249736bc9d','2023-04-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$xWMPxDDiiFyU0jcAjf8ZZv7FRfi/G1AyEvA8vYJnk3I.vKvoAaSi9','user','ak_0d45c99a55957a67','2023-09-11 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$QoKhrIk8hkiBaT4.bjOExwNA8Sd8c6J2KzEqLhWw899rExQWQU95N','user','ak_d0716d0bdc3ce7ce','2023-10-10 10:07:00',NULL);

