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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$R5.8T4bWSpNhjMeK.qSc51gIAXrfYKsb4gOqDJYOnvOiIJvfit9HA','user','ak_f0d184e0fd1247c6','2023-12-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$BHDBSUPEmMnR6oK4O5Ac90b2GGMduvHNHjDrFptzqWN.kLg9ggCgl','user','ak_0b2bcaefbc5e48e7','2023-02-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$BL.NNHl4vw8.7rQrcgSfUi/esb7hoPpJhQbX5T5JwiDJ5XnocRtqD','user','ak_7d584f975ce52960','2023-04-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$XSO7FGzq1VxKttwud1vYsPQY1O67PUdVD/je5ODzTKzYr3RGaSHPI','user','ak_320b0a4dc454b5ee','2023-05-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$w/Z3ruZpF1eOUWokfGb7/qloYHUP.b0ZCjidItvdmCXxMtr39BNgA','user','ak_a7c778fd1c1cf07f','2023-09-11 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$qaWWgl9St9DZ23ON0BRtJVOtiYGb6MDdXw25w0e7KBZpOfeCBEGbw','admin','ak_78b11c223c073a3a','2023-05-26 10:05:00',NULL);

