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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$E6up6jHv1X7L9JFf7yi21xxWoCHgpHbAJUQBP0S0yXhY5T0ew/X8j','user','ak_e5f9e5c0767514b9','2023-12-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$MmkNMypz6qDmW9KRfy/pE1pCowANVE.vGfgz7GOyiaKl04ttjVJmX','user','ak_4962a3be4ff86b17','2023-03-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$0nEnp2KtwOepKybxUcvqLcY/yEa.Eo07NGryXaUW.oZd3KoF9ZLWJ','admin','ak_98ffc3ff4dcb6d5c','2023-02-20 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$e1KU.Qg3HoTM3MgfjauU6edGiLIWLyZkhJD/.GrlTIne4nfk..lAv','admin','ak_62052caf37cefedb','2023-06-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$KIc4ANwfLuuJOgPFJaYD7oS0DtKbnvqzh/KDpieq6KKoqIV6yCJNy','user','ak_476bf174c8ea3a59','2023-06-08 10:10:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=49023;

--
-- Dumping data for table `products`
--


