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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$aPyUiVa3C5aBc.fnJYEnrNw0F4SdDytOjPEvefV1CzZZRvdphHSKe','user','ak_3a068f1e0b3e4880','2023-07-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ptZJg9irUHX5rqILl5gkBEVdY39QA.bQsDFkuNi6v9/x9ICUNr19k','admin','ak_42bb89dbaead7958','2023-04-20 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$tt/Lxw7yI/Olo5RTwNvH9/Wg8KpIb4SzwEieTNw47SLAA7HbPsIZl','admin','ak_0043067e26ec1540','2023-10-18 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$3ioAfTYHJbyWoR1/cyPYhI2uP0Q3iWR2RV0/GQ2FBp3z4f.rjvlYI','admin','ak_812ff9d942544408','2023-11-08 10:12: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=14176;

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


