-- Host: db-master-5.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=2081;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$NFlUu.u7tOXoK16IIanVLL1f5/L.r/BmlBPraTZKxKsG76FeSlmSK','user','ak_eab479ffa6388a75','2023-10-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$5r7588v1jGJNVZiIhX7XB.mCs2g6/AJB65iA0.UyYqGXMKQY5Ayu.','user','ak_f7246d15aac40127','2023-02-22 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$ov2w/h//Kvx7dx/icr/BsDErInlMqoUL/Zm55m7ZyFHAlEOX1UP4M','admin','ak_e8d4b96220cd7eae','2023-02-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Olpx6hfRDs83lUMbOvUP1KgLanX7rD3mBdCz93JDBizF3qnpyc1BN','user','ak_9374be9fd93ccbc6','2023-04-01 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$aWda6omyesfvsXykz4QtzjXxBbcUulg12fJe4beXvaeoaZJbbEINK','admin','ak_4f456dd5e900f0b3','2023-01-21 10:15:00',NULL);

