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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$cTuJ41GwTkbpu7Q8UbH2bVCbWWtauXq7MzdbAGBzo46aLRy.jXixV','user','ak_8bc09cab0510aaac','2023-01-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$DK5/aUSeoYgBTDHCfq/Puem6AooRAK5LrNifqI4wJ7kuIYbycV3Qk','user','ak_78521a6be13b343f','2023-04-16 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$P7dC6K0Y9q1Y0LfUF4yfn8rzw.TnmCDvDGiHPs4bZoNGL5PI9X5AC','admin','ak_53b45e4e6895235c','2023-12-13 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$AcCwAC.PbaXCNEA8cgJCAEXIHBh1NG6heOns7s1Ytf33MjP5/TsBT','user','ak_251d336163f5779b','2023-09-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$uzgiz99YZSrkYdEfCX1KkyKNKvWNlnHUG.KrqO8AURvzLFayh4aXa','user','ak_904d065a9a63b1b2','2023-01-14 10:05: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=6030;

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


