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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$NP1stPue0usOZPzkcdvoeDrRYqj.8eexgaIDCcqh1kevwBg.T5H2q','admin','ak_fe29d7d022b23fdb','2023-02-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$u0TowR8gcmjcGeTaO7FInitriN1LH0TLG56CNvJnwAjKo5qKpecSv','user','ak_54a3f3ef5e41c077','2023-06-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$mvOCmmzmAWWersJxr0KVgE9u4uRGmku3O51tD9nH05o7JyWrZJJaW','admin','ak_eb65504bd4502847','2023-09-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$jAbn2MlpTPFJYINm5qYv0MT1h/Byciw1U68zwoZ7EIu6.ZaJP4wPK','user','ak_8775a3203ea51fab','2023-06-02 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$qfJy/2Bw04TrFUh1YjEg7vL2d0Uz3oYjDvUf5agntBBO8oNzcxUhg','user','ak_44600b8e964b7ad3','2023-07-01 10:20: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=38999;

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


