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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$ynH5Y/esNW1/25TLnpBqa5QdhAVbSEVbDeAWUWQ1yIqfBwtqLfPwD','admin','ak_462a58733166b2f5','2023-10-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$oBgO8FHI55xcHWAj3Dv5i9pze18wpVpH/k6UKeE86CzpQKDWefqBW','user','ak_12cd0c28ccac9c13','2023-07-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$yCI5oLv5HYXFe3cc9A4uM/awrSZ/WMLoLZq4q8oKa1MmcYErAKkTZ','user','ak_fda4362b76e8a549','2023-09-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$0m60pyDovKN8Di.owYRNCXbr0zopjtmL9wsgQ4mnwRvzn77i2Vu3e','user','ak_64fd700019b651ea','2023-05-26 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$S3h0q68qigNVKiX.qhWpeu1sUyU18xE7ERnn1A.aEJV7Sb2yVkZmm','user','ak_3b5ee2c296037443','2023-07-03 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$GhG4j0zCI.4xi2AEHI2wAC1QgSEjBdve3EkazSAY.vfz0p2Tb1VDI','admin','ak_366b33f6f1b450de','2023-09-24 10:13: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=19325;

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


