-- Host: db-master-1.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$REfNoUd4IhrP4t3v9flUZqz4Z9yjyutMp3pDDiBiJiNVUWlyuWYin','user','ak_92de3855d1298c90','2023-01-09 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$oEydhmT6TgMztOJtfgjn7ApVlKkLkqRXj6fFOcLOpabt.SJJQJ0nJ','user','ak_cef8be9e66bef5f5','2023-06-24 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$snL6ojnMVCATCg1LROQg4u7us5hW0XTHfr3fi9bCbpMaRAVzXq3Wa','admin','ak_5f31a96da5912458','2023-06-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$onraQ4sCTbKZMPJN9Z/vIBwPd0OT3Ic9SoV6bIpWbBz/PvU6.VmEK','user','ak_46cb1631ddd3a457','2023-06-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$UZMduun3H9j9IEAaoq97CBZho2WESZQ1f.lQAkJY44xhLL2nGuHJ0','admin','ak_d6bac520753a428a','2023-10-18 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$zDorzpVyG1xvbSF4Wma.CprtYiflZJ7zunCTJRFgmiKAeGYoi122p','user','ak_e9f99aacb1773f3d','2023-01-25 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$GAQ7WQItmZCUsP.F28z3Br5M.uZpxkCqgTwGbIdKf23U1v8igK2TY','admin','ak_d16fdb2d1d88804b','2023-08-04 10:12:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=17542;

--
-- Dumping data for table `products`
--


