-- Host: db-master-7.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$h6PfFzOH2xik/H5DAYsL6UQco8voy/ydyVUm.OhH1Qh3WyCsLobQP','user','ak_91b89c1037700f7a','2023-06-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$2fx/Ee4bE7y3zqCkcuggO/FTRa6jGE3BQp7eSIEDcemxW5RELD2Kv','admin','ak_ad2150dff5f517c4','2023-03-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$gVTnvMmed9NLyzcUIgwfWxtiacOohOWbLteDoxddx7ywuPpvfn59F','user','ak_b6978aecf222c6ec','2023-02-08 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$BH32XIhhgXuB1pPsfIGdZa6rBsmRTVCVKVOyYqbcnfPFnoo9rPgcA','admin','ak_41ac334ad4daf9b6','2023-03-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$m.3rBSb8HMfDFSgqxZi2wxSMUELD7vjPDaB3aKucdCONN.n.poWJX','user','ak_0f3c9677175eae4a','2023-10-04 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$xmhEwdyttRzrKCbva4n86hze1g1VBv8tEb3BJOuTtsg6SRcOv7X3L','admin','ak_89ab07fa1952f32b','2023-03-02 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$QLulKLBWLWNLsuGcRkwvuAuigHTbXFaYvvKonPrcqq5/U3CiD6cjc','user','ak_6821f78b724defdd','2023-07-19 10:14:00',NULL);

