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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ki7qn6UKaCw5H6Ps6VVhTCKvbGNLzsi4TvrskAQUxLP0/B9dOC7Sx','admin','ak_f071c47f7361deff','2023-08-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$2FjbwWvq8AAFyPAb9oWLkOuELr6FZHxzLyi0ZjMXW0C9vfGlNAG3y','user','ak_eca900e3ed646722','2023-01-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$tfg3YhEerD0U4yofoAEhPFO9Nfpsm7txfa.CjT6ozGgkuIKtlFPZz','admin','ak_db7e9f09d4ffeb77','2023-04-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$XAxsRjShxsmoOqb0l9NZcffEb1aevKlpFj9GYrBXd9gHjLv8Vv07G','user','ak_9120818e82533359','2023-06-09 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$nn3kwsjqhzCiarriF/Rqtd5sWQckBHnBD1bZvWpzpqt4kvUpcdULg','admin','ak_49e329aec2611999','2023-07-04 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$gFmuLpD.JsobmRaT7Ciz31iivNxj6PH39RMjHyBAkht5uw.tDfpvo','admin','ak_26c6be2dd1dd6e0e','2023-04-08 10:16:00',NULL);

