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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$f6FRItN0kXOYj2EomunoYbLDXDLCPa/gW3ZuT/YdgCCWznWaS0rQs','user','ak_85bbd5a5dc0834ef','2023-08-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$6xpe.g/d8k88CLw8T/grLss7ICjubdSHZDwC0fHcglu7T.rjmmB3b','user','ak_00857b0b284c66a9','2023-06-03 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$f1yc2hjpVjdpMKxWQ5Kc9jKCzs4wTjPHrvSHeRzOJMQBVG5q2L16i','user','ak_c6e3ce6c7007f99b','2023-07-07 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$96fGoAf8WZae/LGHFuxh7iNMxcCFNo1YnRWbvyzEUjZP3J1M8h5bi','admin','ak_7a2588ece5844c96','2023-09-02 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$KmwbeSey6djDMmv9hT.MvuCzyUMGgS4gx0bpQ1iv/fmAmnOE31Kg5','admin','ak_fdeb58162746db46','2023-07-04 10:23:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=42343;

--
-- Dumping data for table `sessions`
--


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

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


