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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$x1NKwRJZMIgNhhi5W/4YAT8s7itcadfZDo6WEsOk81xVrbx594TnL','user','ak_b5e0153df72601bc','2023-07-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$4E5dC.PkG8lOIdiK9b3FcbriGMzsD2KHdbYLI9pW3mQuuVsvA3hmg','admin','ak_87f27933871542ab','2023-07-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$oepG2dLuIGbuOJwfjUSwnQHevMCcGqZpceCDrMTB6SMwpCHGc1Y1R','user','ak_ea6b3494fc9b9b86','2023-04-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Of1XugrH.57X0oUqcIig//yh9tiQhC4NaW9Ga8x8p8WoPjzrG0HlY','admin','ak_3183ec11c62bab19','2023-09-23 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$X1Q9CQEFEwCoUJexycU5X3PJ0VEVjQZ7IfezsZg2eEK/q2np0CeJi','user','ak_c5606d52cf51160b','2023-08-15 10:03:00',NULL);

