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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$tA08XpKw6pdgPl3pj17wMBOhBhGMF/IrnVlArKRg2dVndoGbq2WAo','user','ak_b9045cb9de73784f','2023-05-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$VkEqBC6si7UA.1QOt0PBKmwcKC7o2hctNFx/ntMdmSra2tbIrupfG','user','ak_0cc9ca0ff15658a5','2023-07-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$OJOMUAsNGWT3wgaqZMnBm8FmA2TC3wHGLxm92uYU2TJWbWo/g.ATM','admin','ak_1c630bf57916998e','2023-02-07 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$hr9afs8Y3DryWhiookFxKRKmpUrmA96kzoZLN2CaiZs8ixeuchEdk','user','ak_929aca0c3135393a','2023-09-06 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$taYhJBt/mfgq1S8OhwqbecoojIXq0tIUFx0qFd7IuO2eGdi2y4bNZ','user','ak_c2ee13be90ba2ff7','2023-05-06 10:06:00',NULL);

