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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$fuL/DBKWVT8pP5Hjo3uP/WL1hdjF9YDJ8v1b5/Bg9RCpBWDqyvy8b','admin','ak_6fca167d92b18865','2023-01-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Uz2/TtCCOzMI7wddznEYVr85RzhGS0xR3dpfv99GUy801B1EiIHEb','admin','ak_6de5181837c0b318','2023-08-28 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$MMlm6msiefNaLlaBVW1PTG6BkVdjmPufbroCkVlEs2UPhg0c9WiHt','user','ak_2c01cdf8c9c3dc11','2023-02-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$WdMbLIdSdhQxW/f6Syhhg2BSRwwnsCI7Kdz8OLeiclNB7VrdapYbQ','user','ak_f3f0f52fb8615895','2023-02-25 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$IPbjAgHUOT1q5mruBEyFPqR6u50lt9x2tzBVhqD8W95z6anIWq1iH','user','ak_7fa7571c5d2e3a48','2023-05-14 10:08: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=3979;

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


