-- Host: db-master-0.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$kKEG9PRsdtN36GGL8SwtxcCndYDRoCJcoe/FLlJcVxjpxHWF3LB5T','user','ak_97e918a6310d8135','2023-09-17 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$5dNcrbUHGEH3/oSRQU6287yEcpzOCnQNKAqXr2ThU6.YqXsT9Ym.I','admin','ak_482430debaada286','2023-03-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$OWj3akqzuAWO4q1nyhojIDpYQbNoUl8fiFWAppyY0uffzsG9AeoWd','user','ak_936f892463a28d92','2023-04-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$i9LYoO1TR0zaA17KzUgq9GMygdXQEop2sNq7FWbfhZjkGbkm.yZL2','user','ak_5e6085f74b594d91','2023-12-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$SK1FL.ex6KMSm.Fsya3sN7kgbpITDjpy/yPNFJznO5EaUZYUOrEo9','user','ak_1942ee28e2336b16','2023-12-19 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$LxPmcITNL/ky9FQxte38goCeH8pOyxwrdx4SQteMjVigFS2mSzFm8','user','ak_8531ca961251b011','2023-07-01 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=40703;

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


