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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$q6YapaSuNsqNlecrWatV4H7iSZgsl1BbytdFywCENlRWosqMY0i6l','admin','ak_eb27290c50323a39','2023-10-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$.7784muWfDUA3YWhFRPKwGXkvaSnHJc4DqF2f58rqzQQp/XAF9khy','admin','ak_452c86cb68911717','2023-02-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Cm8XQODlgU9tft6tnbJDg.IoHeY67BSDIyxv1SGg5R6cRgBm5nkYn','user','ak_aa291919879c108f','2023-07-26 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$4F8RoNTlMNPqd6hmzWbjpCIedxayoV6qUksCy/w75MtIpSxBWU6a0','admin','ak_07d530de058f4892','2023-07-14 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$IXKr4Ic84LMPzMTGLNnk6uRVAebHVXLT6Azb0/cYBdXUPbDf8vsD4','admin','ak_687ac12206d272a3','2023-12-09 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$T6/.51y6kYCFfAb4sYPt6XvnVRCbX894pqkfz97F7ZPWy2YBXMuVb','user','ak_8702e5e43a6b27db','2023-08-16 10:04:00',NULL);

