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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$RIU7qTKrPLUnfahHsP5q.T0GLyT0y.kEzA45PArsZIWgogFyFnPzL','user','ak_84a6354b07b779d8','2023-05-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$iX3U3LNgEQ.f.tb/FBm4ACc8V5mEPvYasyRVH72FUukA8DDDAk4Kf','admin','ak_773a8e36a23eeb68','2023-01-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$G3qY0v6FTmfY65aH/HPbsAdSXkvn3nHKDEmB0./0K1gOkjrAbDOPu','admin','ak_e692b4095df06dd4','2023-10-21 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$yfGQSUnMur.9mNhEXnwKY2VaLvtGf1/.fhmA4q46rYxeSxh0cnivz','admin','ak_c3cce9e6c0c70405','2023-05-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$HEyjGbVYk.72lC7eoOj8.Cy4bGl904SVKzjiZCSBq9oecqJ1cmsE3','user','ak_5cf6a12aaba8c1e8','2023-09-15 10:03:00',NULL);

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

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


