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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$z9O.5jDeB72E3ReFywgBX2tYH8W4gQSx3jigr7vtqkYRZFhtzs9yW','admin','ak_80d24de65426b9c6','2023-06-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$CTi2cs4uqVQ38ZieXfcXmwCBDDMRiTO8GeVY8NGP/p9wGlLJgta0s','user','ak_965f8c0a6bde2500','2023-10-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$FZ9kZZuAMwHDhLzcqVmlOoLJ3WQ00ErHoezozySiii081exuou5EI','admin','ak_9558552f6242a6df','2023-05-21 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$1Wg40wJUl56qEV9u.8bxsCK6u.gZrBz5xv.yVZjJaphSyOMQR.MZF','user','ak_e298086922b32b09','2023-06-25 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$lv9fEns/Cr.EepeGD7fIyZzcOgJdnjaL9702yMds2RIRqcrhcCi9p','user','ak_16873a242fbd1285','2023-06-08 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$aFW6IthwaVXb0FIHGyjCfDjALSmXbnh4zUdX/iead37rdceOhHvc0','user','ak_255b73781259c606','2023-07-16 10:20: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=4520;

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


