-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$V0s.xht7qD.6lluXR4I6jNskTPsihAirGOa7cvz4VvaL5JfKuwPsH','user','ak_61ade7ab75268f94','2023-02-16 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$bBSxlccddoW8WsEgEPwxvmNZquSGeRMGsjdlLmjXTSBaR9hBYc3LA','user','ak_af0b6b6333acaf7c','2023-08-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$lUA9xFPRLqYkLM89FawBbUvYC1H4EAg8K24CkZH8ridAAC6DScWPx','admin','ak_2790af76ebefbe4d','2023-02-05 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Q3rBnN2BdVx1NcfAwuRJjB0.JuD02ftSupejUjjf.tqb5vETlhd0H','user','ak_f1e84606e366f393','2023-11-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Ijg4/5Jxv/1wAURdpIkiljS5fitvEAKaFZSC4RvDUOElpS6.NTGY6','user','ak_6b2160e613f03a79','2023-09-20 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$VWpwatzRKPOZWsP85AFy2UH0YW5tIFkmNCVIGRHvKsqTUxAL2nR5q','admin','ak_1e6dad4519ee589a','2023-04-11 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$.PYmu3CfYCI0avRXEeSJ7Jn26oJSztA.6pyc6MOp2uMPDqI6.tvjR','user','ak_179fdd598be3ece1','2023-01-28 10:12: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=2475;

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


