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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$s0KKS1ERrIfbtCyN7nEOjBMShYQFOCu3SI7bdpdXGqEwg9Gk7XHwC','user','ak_af7d1b91013559c4','2023-05-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$3inVIYblFiOtWLeqRmHkmmBpgmkryFpAq/DRSPNPa/HMEmPB79cSp','user','ak_6b99c8eddbfe01b0','2023-03-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$UokgEhij.wy/agX52n..bTNE//J20iC0PXUHDkrp7nAITr8bHoBbk','admin','ak_3a3eb414e0191eb5','2023-06-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$RIgLphzv8RjL6y79NcTNwwmHLWl/oZculXSfVRQgCB.4dwbWiUUP4','user','ak_0fa0c5e33f30c7c7','2023-02-28 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$5cNKVdEFm.aMZAoR4pLxEADIHG2oPSRdG0yKNUV1Y2JB0oubAhP7l','user','ak_67e4f32aaeb5ec11','2023-05-15 10:00:00',NULL);

