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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$MWq798q.reFpaSZqHNI3nbaHYlztnJngGWP.3/wWvPa/jjnt0Mzzm','admin','ak_07cdc5aea5ab5f91','2023-01-16 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$HOv39soRinmdO.O5IpGR9oeGT9tiYUVud7AWD/40osvpheyZr7PpK','user','ak_5a0971165f765bc7','2023-12-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$sH2bPLwW/f6L1k603E.VaL4Dk027HIjQRvZ0DFqz//74eLAjFfwju','user','ak_e87b38ffad15050f','2023-03-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$FaQCX7y9T9a7O/XVcXK2.ig2YM1IupTSrIEut.lxtIenw85XDJllh','admin','ak_c858772dcfa551ad','2023-10-03 10:18: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=36566;

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


