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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$xASNwBsGX1MN6WA8.RfGBFy0pKNZegqSPSfeXmieT9khVZ8tvrQ1a','user','ak_cc9836fd512949b0','2023-04-04 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$8u.62N842CtKAqv4lDZab5tMCWWk54u8nmaRiyr5k3mca.Yv5GlqT','admin','ak_b96266797ec0ad57','2023-06-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Qm9MZE0eLCmPETwUWu0R1z00B8e2uM/CQRHzjIyMxqdI2nH7ymzSD','user','ak_2159b231e68f80e6','2023-01-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$FYt6aENsAcKoDQr/BgF2WXgnTiTdpnv/bhEouQ6i4Xz1hgM02YeFt','user','ak_1d7c4478c0651083','2023-10-11 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$sFpTxYyJGU3VCDWa1XiemLfw28vNPso8twy4PGkYyH5SJ8ybV91rB','user','ak_20190c9327567fc8','2023-11-14 10:19: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=20723;

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


