-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$U8jYeUUqikOsWHgoFt3zOZP1s9/pIwjwImKG03E0GACyge119b/pi','user','ak_ac10b4f2d7b6f4e8','2023-11-20 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$FeV.QFJtu9Km33sEJxHse3JMNfBEnFWh1QzoySEXAAAYcFnT6UqF5','admin','ak_2825b4c4a61adcab','2023-11-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$XJ3hV/jV16fgaHRetGb6CFRGriEEpNR8He3n75AaZvbu1q7ODt7.g','user','ak_8fe3a431c6474b1c','2023-06-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$mXBDBjZJK/CygC3XLhT3FDmfzofqFRABQ16Vib8lLovKY6wLx4loi','admin','ak_6f83a391bf22bca8','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$Ra4xnxlFFN2NqiMI5L1hfn5xHm5yEhAr4hmyL.kaz1SgeFvuSY4ga','user','ak_4db5029f7e5f2125','2023-10-25 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$.6lV49yIUyTcvxkBDxodb9Nzw5l8VGBPQ2UOVqOomLSj5cGZcdPAz','user','ak_56cc89336a110018','2023-03-02 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$jDXUDXh6p0WMltifLHuAESk9IvGBREI37y69h8vnaT9KpDJPUfnte','admin','ak_ee25b74028a5e6a6','2023-04-13 10:15:00',NULL);

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

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


