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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$.4pzxbwed4qS/GK6tz4.CKEaYO9ied7Ozv0pyozncnDhyIWpuAxWB','user','ak_4cac2e3733368951','2023-02-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$dOGoDGZuxG.ViU0dXSqteaIibyQ0eqJrDVxzqMsa7G5h7c1efP53u','user','ak_ca1032ca13e93ecb','2023-09-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Btv3L5mW6sA3ipzevbxEAEup.badGyGyGlh6YMrhMKBJVcOSkTDEs','user','ak_5dfbb23255dfb34c','2023-09-01 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=19172;

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


