-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Gm3lqzpCmbOqPoagi2xmpM6GL7Iw1nzbba1NlPm/GJHrRUGFSe8Gh','admin','ak_2ebcd6f8cd2a597b','2023-11-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$RiYAuqzdCvzhfZB4XBuqMwlZkEAqDxr04/Mi.rOw8K8z3HDNnzR.F','user','ak_186b790c6db9c4e3','2023-06-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$h7bSxRyOaYUTJFnuhFSYGd9bFDs9InfqmXwIyPPncy6bFhMA3gMlO','admin','ak_235205ebb490baff','2023-02-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$AX0FNI1FCG9ReafaMwO/FpG1P5aesEquFNZrQA29vdh3up9bNg8/q','user','ak_99a125f65370e89a','2023-05-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Q/NOm7ZSLy0R3.GZuPWYwEvlYsEnv8LB5cHBu8kpT6ksMxlgz87x7','user','ak_3e7efb3addb33227','2023-03-26 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$wqy/DtiyOQQFMnvahycUb7iqThLiJ8kLmpr66D68s0TmNs/z7zeex','user','ak_11a90aaef35aaf06','2023-02-15 10:14: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=37745;

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


