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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$SClilzY0wkdISe4e5ep23Kwcrt5vpPDSIaCsGv44wRScmeyhaIimf','user','ak_5c92ce4c389a05f9','2023-11-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$.CUN./tYO6i6T4QAnnsZTsUknJ.maao2UCMaCovrYKXiiYSedsH93','user','ak_09c664e6acc466f6','2023-09-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$ryaxAPLi4kJ5qA5JA6B6vOz8z4JkhN5r81nXpWlziVX9tS5nC603u','user','ak_05ffc4db4285dd51','2023-07-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$hC5viIM7xzFd7G9Tu/u0oHdbLvGaZ1ISlrPDwBdXA3Q5hDcar8WFF','user','ak_d5004e3d071e57e7','2023-07-15 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$zFT.gcW.3epOvLlyTonAGxQIluxQylqZqFgDQi1zxL2E/XDddVbl1','admin','ak_78cfcd880d000526','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$Ly8IkQrA1G/w./tlYeUBA5ptNV/9zgUlPO9x/6YDANeqjguSdAP0Y','user','ak_0ccf303e2ee9957d','2023-10-09 10:23: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=29153;

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


