-- Host: db-master-4.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.k254qmBu91.N.Ldr2/.1HuV/ec5imx3DHR03cGEAyrEKxoiOIhAD','user','ak_ab53c0f37f44d964','2023-07-11 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$E6qdzelbEkjR7dl1aAm4ezdHZfqZ1QU6V7YVZgp9BGV8ML7Nbrtkl','user','ak_f4eec275da9d9860','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$V977RshnPaj3BfJ6z5PD6Wm1zR2gQVd.Tq4HXl8cpPudL8kiyFKyi','user','ak_d6dd5c3bda9538f1','2023-02-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$.srhJIBbpG6X1znL2LDSeWAau7fD4HsXg88ffvOeVisuXSrSuXnHR','user','ak_7c7b197c9a10bdcb','2023-08-04 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$OhaA3fSoRHkOQEDF5VPm2B7WmIDJTZh5SKOfnT/GRsgLKch1HWDq4','user','ak_ec11d7f53db36ef1','2023-07-23 10:06: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=13035;

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


