-- Host: db-master-2.internal    Database: production_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=11665;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$FZC0WJkLQN0lkOYvyo0IEJFBj19lGalBaz1CD9yW3R/T8L5VWqcsh','user','ak_9ce83209d61c6bac','2023-01-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$4117tZmzVvY35hlvQTw5XZ/xVgUzN8FjQvdWIF0b.LlfyNyi/pYCN','user','ak_e0d5d75806a9cc66','2023-11-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$szm8IoMA.QeWWVVyUXgEEDiEdbw6UgfO.zgpXZo63V.rVZrdCe/1s','admin','ak_56fa3e8b015867b0','2023-03-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$lB0D7dOJbFsHfxzFkG6KegMupxE3WEkfD8Edo42tn7McjcVuE7R/L','user','ak_3a7deea0b7220d58','2023-03-20 10:23: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=36722;

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


