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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$eUIZCIdjnTH0EAtNnE3/Gnbh14sWzK29Inrq5qzMhglsh4xeR6K6l','user','ak_ea71f241c348c0af','2023-08-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$u473cckE/p91kxapMOfegSWIjagmYnE8p1ueX5VxDDXTUbYC4DGTL','user','ak_c28987ab213fbfab','2023-04-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$L0D/I5dcaDNhY8/.ZJV9pUWQuZMYW.qq.hT72sv.RbWCgxb55v3AF','admin','ak_73cedf7fca096f6e','2023-05-28 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$2iDyLLvaRpvvK1INT61FM1V7CPp8pF3iLlj.D6c1nbdta8ylwHF86','admin','ak_e8ca7ff8a2a63fcf','2023-10-24 10:14: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=3524;

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


