-- Host: db-master-4.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=29317;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$toBYmNZtbDZCsFck14UPp5.kWwLA6pO58HMds3XI2UU/JRCe5EKbV','user','ak_3f906342b533638f','2023-06-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$pweSviexz17TqBFKwlrxGb5SCGL3RNi0yjUp7nC/Dn/fP.YOk7cw8','user','ak_ed2e0bf5843b179c','2023-11-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$lVsB6rIisp2fftuKYAxYxhPD/MrllNhD2PJQoCnWHj06ujgdq7dLC','user','ak_a9bba792f0b54f75','2023-08-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$fj5LsG66SoNrhByun20l0g/n3x9ZpVxLvsOw4.swnpTK9nbD9Aiav','user','ak_e8c6480359842794','2023-12-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Htd7ndLSGh1S12f6IYWzRHwNgmTUq6e3YdodVjgGbgmAePjBHcbzL','admin','ak_47b289daf749288c','2023-12-12 10:01: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=21950;

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


