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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$IS6CTXTMIowk/wCIby.zGAkthwKKOj5sKEk4CJWQrg49TcGifQF/m','user','ak_d1a37a0682b11876','2023-06-01 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$M9aM/WZoNFcdS9aFwWoQn3t/proqKPZTVsQhGkCjhgozjKTlM.RJS','user','ak_84b2dea36aea2fc9','2023-10-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$lAq2D02j84s30/YMdbzBBQu/7z/lsn77Ebs4w6mjCdoZD/PiER5uB','user','ak_94741818bd79c55d','2023-02-17 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$lIrDo9Xg1mFO1zHCbGeGzBc72iYGoyXPiVQHS1A3uZ.UE1qJ8zGs6','user','ak_8455f38a841d0e7c','2023-11-25 10:16: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=46009;

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


