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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$lNlXiT4/iMIBGdaYJtZvpc5mSt7kSbMrmFFuoxbpdM2v3ii9hYKeB','user','ak_01d9a5105a190378','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$6fbtx15CaXkbIsfo9VeBoWxPmcv9cbzMd38s198rDs2TLyVscLfT5','admin','ak_bd997e8895eecc87','2023-02-12 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$B/Lptvn0JQ.yTEKsXCwjmX00HHO83m7qt9FBI2CtUn7ybiqrZD4fD','user','ak_e242e00c2ae06b57','2023-07-18 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$OlDG43TseaX26cM8hlhszf2hplA.4de3d6A3lxWzjhrcOuoK/bV6P','admin','ak_5adbc356dbd7f661','2023-12-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$SjNzUXc.htJLdFu49BrTQ0we0xSu8KnfcmDWNq0QaO.ojhengTSKB','admin','ak_dd6c18afa6d14915','2023-08-08 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$wrX4Op9lVsDZzCLD24i5PohBUO.r5nuQ7CHbMc/xvcPODpZWqZe.s','user','ak_948933e11deebe51','2023-10-08 10:03:00',NULL);

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

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


