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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$x7AEBp2OmZNl/J25oxykCo4ZFBHXxPRMg7E81pDUS4EtDxcEAtVLw','user','ak_f4ddc7fef3415dfd','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$xo398PrTrQnkcvyDiyR8KSz7KAKxXR7Je6iPdmOlgZdytjb3R8AYD','admin','ak_1b77e104466ada5c','2023-04-16 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$fOPchuK6BCDxcv109NGaPHrccA4HS6aF2gl4roKxR6qdEVJJW3uVo','user','ak_80a996d0200cd19a','2023-04-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$W8Zlf5tk2GuG4CeezteENgYv8EZoHqKKBVujH/sEmHtviTK69SAhB','user','ak_7ec52b0d2f6b70a3','2023-11-03 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$8I56o7VkxseDCehSxFUO2/yhNd.J3GTc4X4eiQW4XlbI.2Imdri4X','user','ak_947491b3a185ef66','2023-05-27 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$krvp50E9KcnelMzy7AyxWWsSe9bJIhqozVfZ13G2zpCpXCApzelyL','user','ak_8a6058ea5eb4fe58','2023-07-10 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$.Q0T99rAOJU9Gm8g5OlDKba1qmfE9TnxBke8b/facnhfogJGvjvSf','admin','ak_cfe0df8d24e3825a','2023-06-19 10:23:00',NULL);

