-- Host: db-master-2.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=37332;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$7.m0/vlx6oKv/EwrBLjVTyBmQLSzhnAHrcqaY6.Rq7R6CufOOO8jV','user','ak_b680b2c0890d4ec8','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$C.bVzX7NM8X21FsVHu7/WQFFBk6pcGi1Cq60Q4j6Woql.PAFHIKVn','user','ak_1955121c6950209d','2023-06-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Pm1XOh6CnPacjewycGFlrcRjsP8D.fq7NouHB31JqxDUOkYWcQht.','user','ak_cc974e55344c63b5','2023-07-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$RdEI8971KvvxUFFUPdYUDkCf6jyWeih8oKN6ANUkGaMKG/oEmoFoM','user','ak_58c5ccaa62391aae','2023-10-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$wMbe7/Yt1KcHCMotmAwk2l6WDRTj1MKVYLZDI2P7uo3NeCSABIwKO','user','ak_45f9c0c4f3f15c40','2023-07-12 10:16: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=27653;

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


