-- Host: db-master-0.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$1eJNLqAGs3vnrx0dZdBZ1zJ.JYNdEyOXK91nCC132xGVqITshroVt','admin','ak_1af78427cc0e3a17','2023-01-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$6nkMgkw7HCbSVjtfyPXDLSph48pTsIONQWpfLTWf3t3.c86iOEPYB','user','ak_7846501fdc7b41b7','2023-06-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$qXTt0sVDVCzi3MiA9CWuotrHcUg8iNw7hvgd0VJWF2.kHQU/wlcjS','user','ak_a020231b68cba49b','2023-02-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$8JU/T1Ad7zVX8VSgfc/BtsUAGVcRKZ7layrESKAFKQ5opPIhF3bW.','admin','ak_a3f47d1d0ad69917','2023-03-16 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$eGtog048KSRetH8p/b.c.n7FpOLM.4dJ7zXvHpl9eWItcUc8ZIuga','user','ak_9c7ceb0182c5199f','2023-01-21 10:19:00',NULL);

