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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$a.3WlSu/J4MR9mUzjOBMKKK.qQYsa84sdOqHta2i4L/1n5GNnuOqi','user','ak_fcdf37c915574864','2023-06-18 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$tqQGr6JU1trcsoxnHSjo0HXTO.Bx3trSltEteQLCmDxtkZRWzrjDu','user','ak_3e035b7c95793e84','2023-12-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$gQ7KdrNlPf3VBUQXiJp80UdWnKSowNkoprvGDUX8Kdg8LSRLcm.5i','user','ak_16af6455c922be0a','2023-08-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$qI.VlRKLhaUVlwQxWcXvcNPJioimgZC5DiQ3tdE0LaIQYKJrePGg4','user','ak_6a788accb09b7e6c','2023-03-16 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$OGJ4.xNlZCljrcQLisD18yo8E9Bo87zSce1hO1Mw0aPI5iQtXSjek','admin','ak_e72e8cef8b8e2681','2023-10-21 10:15:00',NULL);

