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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$JjUvVlwsH.L8No99BNVTAFiQdnYU7DWujxydTd6lKILdCLADWoABp','user','ak_58ef992770bf0491','2023-09-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$YVbGM/UwL2LwDIOh4t1EgCfHkZdWOriqv.4FY2K1IKkWuXiT6OhqZ','admin','ak_8ef973350a16c123','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$GRfD0BT29TElT9CAg2d7Ld1XB45.jAudlTwWRDvXfzze08mNKSnRf','user','ak_4d873e55d143f17f','2023-08-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$YpjkHbU6ElVzSzEM.tcGOW3zLrZNvtd0JwydBNwlCH8.SGPvjOQmV','admin','ak_42279d8e1c6c19e1','2023-09-04 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$acj7BInYsGTkfYprwbr0OaDT3iBy9ILfsWrVngnC29MlfInKM.z19','user','ak_167d2d0ac296d97f','2023-09-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=4398;

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


