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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$40coR.qjnfbygHOYfZXFXcqmRmizWOm11p26BW3It/J9HRUON57LG','user','ak_ff984ace7ceb37ec','2023-11-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$DFRABj/q8Bya98DhOU7Optc2d9P4MqaRRrvxtSVhlBiHSCNGj2t7j','user','ak_49280d176f013ac5','2023-07-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$YKXFDkfVHHhemyMBffWK6DezycXEYmkFBh70/7jYrAN4L1LZ/2xah','admin','ak_90ee21f6b67d04aa','2023-09-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$f4k2o1FD2IaeV9tJ6omIQwILfJE4SXijOj/Blz4VnPyg74s9kkfFs','user','ak_2a3a3765fd91f894','2023-11-26 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$0Vpgwy5iJYBobf./sqYMMiI53qmROP8ndolfps1S.ZCjlHaNAlpaz','admin','ak_a694b33483a9ad15','2023-08-22 10:08: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=17987;

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


