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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$7H1PpFbgjjHgbxC8X8A3l.n85hTQsV6PFSnlk7PJoW3Jb2SWI0TRh','user','ak_7230f5b0c3ddf740','2023-06-03 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$X9DIRUbDbSERfFR.gmVUKxqngD/0TDKxXshm4d6Tt2FoVxNkNPgYN','user','ak_68ed28629d71cdc2','2023-03-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$ZfHy2qW/UiYLGyYi.SR9YVCdtCtAUH06H7ZTVXMp7WVTE.QEQmrr6','admin','ak_a97e36ce6bea4bf2','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$hJXqm/GqMzdPBfdKklIk3VTebf7IhM3yNJYb.p.OA5X4aKxaNBWLL','admin','ak_37ee24740875c244','2023-03-15 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$HMtKcnJravxmwx9VM2zbEX6nq0/RdEjTVgPeDfKRasEbj2UuEwk4y','user','ak_0eb874867aaf17b5','2023-11-10 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$qxCayScee4wQFAlJjh9VdnECcU7opE3F/bN16oTkym9KyT7N4Y6/z','user','ak_21130a2eb986eaac','2023-08-27 10:01: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=26162;

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


