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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$v4BzgNcQq8zXZNE3MbMelqnHZ84/nV89Tvc.ZzsbrIA86zALrmaYw','user','ak_cbf9a70b0cd865be','2023-03-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$oT/nvd3wj.beUd/LbIolwT9mVvBBDJww7CaJYOR3PaXSxEAIpNn6u','admin','ak_8ffcf3d773c29b8d','2023-10-04 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Xnmq62.bd2YxQ7aXz/uskzHxOdao2d8R20HQXNdYvlsfkRtyrqSz8','user','ak_9e6fa8e0e1ad910a','2023-12-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$sYv3TwqdQOenupwyZzUB1Yv7CfF/ZltcQAM07niODNX6BlzsaQmSN','user','ak_4d2cdcb325beeed5','2023-08-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$DUqAouglHRa7Mys4XJDI3jTLCWmzgiEVO5mqKxIZeMkQxCG/UgSwU','user','ak_0374d1b1be86b04d','2023-08-08 10:13:00',NULL);

