-- Host: db-master-9.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=17991;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$E9klyOh.TUQfrKNtjtuI2mtYiQWiSCTJIGQ3AgZgZGhMKkxmJHomP','user','ak_059fe8bb6e1fd41d','2023-12-21 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$sTU1wmY.5wFn7ZMx.X/YbWYaWS5.1oVEDC19/eL9Z0ILn.FkFctKS','user','ak_20ea4da4f299dcfa','2023-04-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$0FxfeXV6MXzkk7oBb6CkCq4gqf2/Ekq5kjSaUuP2ZKbtlmiyyUIBZ','admin','ak_473c60b724a51cb7','2023-10-06 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$XoYDVYkuGf5Wpu26fVapDy7v3XZse3jdDEWYf0wVM4BtXbC1g96R9','user','ak_7a62c41a263ec3ae','2023-06-01 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$QpQvYLezUNuTGmDXG851y6Jddj5klkx3u6IY.Dqk5Hf70UZXJ84LH','admin','ak_a8feab71d45fd96b','2023-03-05 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$mVmmLvOa6vaA52KBB1sJlJsAWU8HMZ0aLXQ0p6A/nqNxBGgWiXAL1','user','ak_648e8b584248706e','2023-11-12 10:20:00',NULL);

