-- Host: db-master-8.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=46453;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$ddl4/AAFhQK8T356FGtrJoDKJPJnsFptsjLcKTQqJsNpJ0Nvic1c3','user','ak_e63491b2eb13244b','2023-06-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$F5ebM1qRwpZpTP7tOnQTPQd.Yhy82z2BVHWfKTRu5aHJcNTbIaHm9','admin','ak_2b3f840db1017c0a','2023-05-11 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$.s5aZRj5GzcFX04pW6vjk24ZMpyKgoRmuTcNOzaXB/rfhcEepJzvW','user','ak_556b3421faf3561c','2023-08-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$0dtH1VBSw9R7PYaI2HspX.s6b2YfWCdiQS.nrrC8eUNjU.g/k.0p/','admin','ak_917c882f7c389e10','2023-08-22 10:17: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=1319;

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


