-- Host: db-master-8.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$uejjfVG27EH/Bk13NdOGyY7EBERqJSGlNOhf//tVTna40eHIpTo4J','user','ak_b952729d5f66e760','2023-09-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$JX/.K9/0EqHR8jzbzg2HLN6TDziavXnR1f.udeiIFbnfHPmeFwNiz','user','ak_985f97aaa88766b4','2023-09-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$yGKC.e0SFyOY8WZL.Q/2iQNM6MHLZCbVXnAFuYp8KaxPhdUZRgyrn','user','ak_b71563034ca0af2f','2023-06-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$ls0LBoECqluMq8o8Ie3v5JBlwuHjqJdRP.PFnLB09g0j44i9v9/Tx','user','ak_a0012be67da91db7','2023-04-06 10:02:00',NULL);

