-- Host: db-master-1.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=22684;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$AKknZhiHBLVFeOYBCsayMeCrlUKukSm9Y6tuXeERCe1L5bNGOXcFx','user','ak_a77833626f849b90','2023-10-21 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$kG0ak0DTEfbfJhbJKbg5.F1ut6KZD0Pcfvymzj3XACaXLOOessehY','user','ak_68b3ba67d3240dc0','2023-02-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$8Pb16dBiBkN24iQfAIPfQmLzGsRIasLyZBfsbWQSjLUtxRQQN.0cp','user','ak_68cec4398991f19b','2023-05-16 10:12:00',NULL);

