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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$zo8VOGIu023jKoGEbZuk38thV8ChDIj6zUmvTKNZ15Vqj/oDpmj20','admin','ak_9465d026114b7a29','2023-01-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$SwRdM9APuFjFuEEG2n.70QSY528ivYn2YIjUP9jbnQeZHxbePNQDY','user','ak_51060b27c8cb1363','2023-11-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$7pDq956gNMniCxZq/mK5tBmiaMesE30EiYU1XaRYFeyEGpddyFaq0','admin','ak_40a8a796285b8e9f','2023-10-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$vJHbFCAbqStedVN/o/6Ajc7cfG5OodwGO75GP4DMVPwdc5gVcEf9W','user','ak_e82399380d6512b3','2023-12-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$VQQOmy3zy1I5eUsFc7N74w6MN43bPtdFYlbLrp9t32GVzVRhZb8EX','user','ak_f28cb9ceb9526725','2023-12-04 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$LSYaFImmMsKmhNv9iaVTZgnMZbSZdUaJo1bAA4P0Cs2G4mvhiIEJA','user','ak_4f4919a276ac9df1','2023-05-04 10:06: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=33872;

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


