-- Host: db-master-0.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=30273;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$NvujQph5BM8uT36uWIZe5rkFB7.6OJ0nOZTOH/icjX1boZyyIHwcd','user','ak_1432d894e9bab47d','2023-09-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$hT4EaRQyiG96RKA20JR5aD/9ENOq/moCQYOGVDeGrAKtRLw.x/jiz','admin','ak_aa87fed60a2ba3e9','2023-06-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$2v5MSVL0wPs/RXG.4Se.bJiiEZxXEyRnfgRFagkLhfYthbZmRxaIe','user','ak_056fa7b3ae3cc838','2023-02-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$knD6qFvCinWFM9gqEx.324Voa0fDU09EqPpLcBLilt0TKBHQWqBkS','user','ak_2f5e781701e99aa5','2023-09-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$vn/YUnQm2bkfRY9L6PD.lWBHkNR3N1v/48zTSXYPPDhepfRSLCSzd','user','ak_55b2180733a6f130','2023-04-03 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$dEX2zFUACyD.l3aEL7FVolYRv5nJUrowLWs570yGNvBBhF1npOUPq','admin','ak_e7bd44962a636971','2023-06-06 10:06:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=48401;

--
-- Dumping data for table `products`
--


