-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$iDEMtAjUMKf7xv9tz9Fl46oPFCNyOg0u8VYFLqxWHxedObcbpQGw2','user','ak_5dc5de0836c5fed3','2023-07-26 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$OGyrXWBnGq7FwFg0ZGTQM4/rp1awJXuHvCxcz9IEDZdMiCaGeGQGK','user','ak_8579c28119c1e714','2023-08-22 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$sLcrvWl1WxJGmlpVVh57Wur.ScKVJCmLyF5yBjvsSpXfrhN4mgWrf','user','ak_b4d468fa0fb0c593','2023-10-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$XiPZ9WcsZyBXk8GGzFtifYWVB3hkJ3STshKhsYVtsz0HGhdA9vFrY','user','ak_c152d95e0e47a29c','2023-04-26 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$pt75wpBZuo4zVGCHAomUejLR3Vp8Hrpej9QFfAAC3ybS/VHvUFkAL','user','ak_55d0b8421403a323','2023-08-06 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$K8j/N8gkQQOAEUYw2opzkumoMUl/ruSYWwsEX5chkbBfvsESbpVko','user','ak_98ae3f9ecb104650','2023-09-17 10:01: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=3918;

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


