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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$ID9aQojisrbiQGeTivABpCDhWlepQGrqrzhq8wE5Mc34.X8Zu37eb','user','ak_5356cce3cce68ecc','2023-07-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$RUQOR4GMvtyKTUM1GBFansxuiUI4IL0t6TA6ss2gkJk3q78z0Pi35','user','ak_1c792850e35cd052','2023-01-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$XyZlNO369.PaeV47u0z1v4ZwFC5364Xyi5QSpsk4ZyE/gEvUaeA2.','admin','ak_58902c7828a69fa4','2023-04-25 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$nlOPRskBCJ5VRMbLwqQnwJ6FEO3VaO79vJp0Gvzn1b2roYVj2/Ply','user','ak_ad79bc592e97591d','2023-06-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$7unZW5NbjSNtgzzhgLXy24YTtoAV7tv1qVZLZZADJitcOoN0dhKeZ','admin','ak_76a4d3289e737271','2023-03-12 10:20: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=5153;

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

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


