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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$ecQSa3zS35aIb4juP83.6.ywb4x7FhqZ014KOzoNlj6fzKrqqd1As','admin','ak_964e1ba247b39554','2023-06-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$xQP/ZLX.6VrRlwPZZribS3/Wb./Kmg5JRz/8QLCiBMtQZXvi9tSlh','user','ak_b75df3dba6bde834','2023-06-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$1bjn6.Npc1hp/D/E7Q4nyhu6rUzgXKXWuux0RuxPB7ztWYwGw6VEX','user','ak_fd5257a8aaf4b52b','2023-06-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$tTr/uc27EZXdDmoVk7qBoYWdeX9fsAwwsKy4hyLWGm524XW2J6.pA','user','ak_75a44e7865cefc2e','2023-07-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$0O0djGggT/3PULDEX.p523SWdPAHhcuhX3bouR/ET0rutgd3qpaTc','user','ak_e13221bcf2b043c2','2023-01-19 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$0U1WBA6jRgiGbdmigwbKNViURT8Tqrd3DM4jWCdOLcM4mFc//veFB','admin','ak_716a0a0e83d20250','2023-10-26 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@example.org','$2b$12$fPbVpKOnJi1vYN6WhOcyr3OCtrkFljK5GZFvXPVmhSOG8uz6ppcZc','admin','ak_53438220f1204167','2023-07-17 10:21: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=23420;

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


