-- Host: db-master-3.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=21987;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$5xwz/3H8Wofdb4k1qsYitFOtyz3M3iNM7x68jslOeR8Vta0kRBk.t','admin','ak_7e64b22387eb1b64','2023-10-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$q0OydrIYiLtm/iFbsW1BhBWyDZVtL5ncjzF5x6I4Kq3sEoitLzWHQ','user','ak_ea99b36aff7bd2ce','2023-09-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$ekt7IH/aXPRlDyeY7EBOrdcTDsj/uy3TNYpoUZQ.O9W8RYyK1y0Lb','admin','ak_b26af8a755a136e1','2023-12-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$A8NI6b9KoQ5fUv5HHD65mf11oW3MvBazhxkd7YTjnY2G1.RIp/RZq','user','ak_f711ef7237d38b0f','2023-06-20 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Xg5hAgY47L.9qwvouq2xwoCCaiC64iXuqA4KrFKm09IKJoTuy9WZD','user','ak_d8b83c006007407a','2023-06-09 10:10:00',NULL);

