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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$rQ7joNTeTdZujyXG1gyKCahkYxyx7ceFzlhVYWBAE/b7gb1Zt0cIj','user','ak_a412afcc9f645f98','2023-08-01 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$aNP..WhiIiUP0/l2wAGmHKP1H5TwfAMchx5FT1/WXGkWB81hwhp0Z','user','ak_4934aebcb3cc820e','2023-04-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$57zNc46.NDkuB6kzA5jJhQDFv29M8ecPZlLbHAQVLVThzARTr9JRM','user','ak_a20d8cd8db85c74b','2023-12-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Gqc6W5w3d66hn94TURVmzjqHz8X9qO9VI.ZqLejz150pNxG4e9z5x','admin','ak_f9de465de9426f4a','2023-06-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$PBBKs8nK.XZ2rXxZ181cBB19knvfoWd74k8Au.t8IiM4lPHZKcgod','user','ak_46d473d6ff126a1b','2023-05-27 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$iyVeks6yEsgO8554VylUa54qUPp2WaqKX/okYCIHZdk84j1m9DoYO','admin','ak_6d452e630f086c6c','2023-09-11 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$nob1M5Rfw8CohaQpmk/iab9TLNg3N6cxiAN4Bs0ldPDiYJz8yWpCH','admin','ak_34b23811e3aa7374','2023-04-17 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=27764;

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


