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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$EDeFVjrkRGnL3Hr9wn4oxRqQ7rdm.BcxaMRmXjFpB78kSxKbCEGIv','admin','ak_973aa231d9447857','2023-04-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$4isdX5Cx.YWIcZbFK7nX8i3Ul/XSkoZYZEDG0WZx0s5nApySvje2q','user','ak_35589ac2c336992c','2023-08-07 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$DDXIU9oDInZN2q2zuB/b/nSfiV6c30z9p6zQ.vAhttfswSKa.ZBVI','admin','ak_53fa05b97024387e','2023-10-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$BPV8IXNGov8pD/7AtdO/9ky/dHmTOH7KkQkEbDH/2KiZtf9ho1LnQ','user','ak_f105e5cf20a3168d','2023-04-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$/hY50SY7njoz6t/TEoN/c548yg6ojvKyAoEj7TBnO4MVawUERgOkb','user','ak_3feaafb71315d618','2023-03-07 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$l/zlQTwqzpw36C4s35ndmc3djpeSsiMxOYbl7uUHFTEzhEmoVrEbl','admin','ak_0fdf3b4598d02750','2023-11-04 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$3ToB969kgrsE60g21Ww3Ov7nhMaqmA1zfT9M8yS/jwtj1wGllZrOM','user','ak_8513b5234261351a','2023-11-25 10:18: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=26962;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=32596;

--
-- Dumping data for table `orders`
--


