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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$GALv60LXyzhGN8ZCgVpwX2mTyeOIUxPyJtPVV7QtYyFuBqFlxUfS8','user','ak_d7dcbc2d98ed024d','2023-04-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$0yKtYbIJfyxYl9amYvYpzPj/Ai3y3jrlE4f/muW5ZkrlzGDVQau5D','user','ak_bb9bbc4a44041be7','2023-04-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$WpgACMz31VG1mHH.JdpE8LsAFtj8cZKTmumL4dv3Ifl/5Z3Kadgep','user','ak_ea3a4e0bbfbb0b08','2023-12-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$fkcBoBSaS5TG5MKRbD05RhOpzjJ12v91XOHQXI4dofGWtkqauq.Ib','user','ak_e66ffd0f15be8bd9','2023-11-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$1T.By4mNA32rDLq7VckkucxhhtbRBWk1pmRqTnHVfAFvrkAVJqTRx','admin','ak_5507edda85daf32c','2023-06-09 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=40090;

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


