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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Z.JtF1DSqz6V2Xo2Zpkq0NiIWS7tXxJCAT8lhSg4a0tXzeZ4edc2q','user','ak_01a80d8659f4b8e4','2023-03-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$c5ToC1cgWl3OWYgKWbew8Eq/RxL0IhfUqLks1o4TbhTwFw42F3zSg','user','ak_02ba2c01a63b236a','2023-06-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$7Sex3UbTVXqjsaodNvJImEspOE0bi7DsCVroAq4DiN5/g32F1DEA3','admin','ak_d86a651c82a01d49','2023-11-07 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$TcAKo4h.6ziRz1CZOVJB1qt0Q63IJM94JbyIXysAXNQdpnBT3U3Qy','user','ak_a2f4ffa751a7c69c','2023-09-07 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$hjZu4eF66zQjZgRtrlqqxlo9g7REW8qR4Li7jSPYVWUaM4T5zCwiv','user','ak_9189bb95757074f0','2023-02-28 10:19: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=10570;

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


