-- Host: db-master-8.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=19418;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$/MxCmLfDIGUS3ZQhcTIoEv7FzWkPL9y08MNiUe3nNIT8fTp18Xf7J','user','ak_59f4f949dd1b7772','2023-01-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$lmTlupteyq49Bnlu6xGMsgVfkKPq6n96bgF68hprvUVDv3Xfgfcgo','admin','ak_5ae8b58088803db4','2023-12-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$jTDyEyBrvNM5xlyHzxyNP4IV7BtUDhV1tveMfdIEOQs4Pgv1s32Ix','user','ak_d7a0cc5c666b09d4','2023-06-19 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$g.0ekUOdJNrkLp8Ka.1LFEh5r.cRl9Dzi1ZVd3AjIl.2GZrL5ulzh','user','ak_5ef84ba017489016','2023-04-20 10:07:00',NULL);

