-- Host: db-master-0.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=39923;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$I1yUfj89Tn3DSlLYrGG2hk3RtKhn/dQpiLSjwV3meyjolNZepWYo/','user','ak_23d8265a9780ff8f','2023-02-15 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$LGkHu733yaY7ABPLl6AEm6Ap2pfEFGUX8qecbYldQ3K/B5KKMNqKr','admin','ak_3c427877689f122c','2023-09-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$/8s32uJr3c4PVw8lkQPGg5Vmb4xburuQ8D1uZ39aIs13dT2qqVZkD','user','ak_84b453d6836cd524','2023-07-14 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$v3lI6lrbuMLNI/i8Y8Q8tEx3/sit2oJzjbQLI50kxJ45NJekEc5kh','admin','ak_580255cd3a24e9a5','2023-05-05 10:03:00',NULL);

