-- Host: db-master-1.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=28789;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$FrXmBrHEJ2zN9l3yr7ui/do1dbTw0xj9w6.ToNVQIBtMhK/HX7rKf','user','ak_fbdc3866768feca9','2023-03-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$9R6PlxjPZexiBPrmEOXUMhSKmNCj/H35I16Ub8lf90VNcEnG1ptwK','admin','ak_5b732c27a8002fa7','2023-08-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$ZNDPHpmVEXF8BSkhbCQrjDC4ocaTtJqc0kBSELqkUPY8ZPxynN.GP','user','ak_c11c4390e24c98d5','2023-07-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$Pjt3k46T0nXotyhDv7ZpqG14GdVcNFEuPUcY1mKwEtQlCJR.1Qly9','user','ak_888abcb9bca3aee1','2023-03-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$fjc6Jr7D9TNGif5/o2FVfuG5t3TVEa8p.8atFnVCe1sjBtrkTKatn','admin','ak_0f6e8fb41fdbcb6e','2023-01-27 10:03:00',NULL);

