-- Host: db-master-0.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=39055;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Sex4fz/Q/ouMLchMDxEGDrjPy2havh81obAvxD1FqfSbKsRPoAotv','user','ak_b6cfedb2dfb13ca5','2023-05-16 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$rZsKa8TDFYKIuTlUVLg6bGyn1f9itm0RGWKYV30CLsE6LF8wdZQ5C','admin','ak_52bbcbc88e5a9de0','2023-02-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$8pfdRaAvAuXbk6Jq96b18MPZ/6Jf60/1nt1aCFl6s.9/lVdcRKLNx','user','ak_290faa27d299031c','2023-07-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$pAk4RztzVZ/ZhlkyTj/vjzf/ptDL4eUOT/gPWRqS33OiAPhntG2xA','admin','ak_423e7b63d0d182b4','2023-02-01 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$9CLiMaQ7bTS4RjL5r6nudybZQD7.PtJRF4OwfNFOLPS4RU6z9o6QY','admin','ak_794b6e092ecd7849','2023-06-14 10:17:00',NULL);

