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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$pYZ3NfB4M4YgdLqpHaMlAMQ0jPgIxPiGAdXftq.Z2edKHs.5RPql2','user','ak_f50515719a2d321d','2023-08-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$QZZFuxgrsh8mYYIt.TvlY7kSYjrZ3sOjG3NBtC1X.0JqCmKgkGaXK','admin','ak_541e593780858e23','2023-08-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$FPb0pn5yHGPPcJI1Txi0ZttsdGUoL78Ywug1kDDc4LxQ2dO3RZ.95','admin','ak_4c0bcec7240cff82','2023-09-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$Oanke0FB9iwdUDyzR7QUlI8Uk2GXlXmBSqkxCW2ziIvEfcPNqbYXk','admin','ak_d42367db80452283','2023-11-12 10:15: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=12212;

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


