-- Host: db-master-0.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=1437;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$0XUMXPLMJJF8B/X5Ejjc0sRc.C2QjWndAtZJA1EtKu79EJraML9Eu','user','ak_67abdc00151b68e9','2023-01-09 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$hy2vJT.DsL0eqEvuVFMWp9akbuQOIi71MIrOMxwzAin6vavebB8lU','user','ak_e3e2222bc34a40a2','2023-03-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$HF33h8nA6eRCY5NU5CG9AF09OXw8BY2J2zzTukflGN3qYOGJwkSMw','admin','ak_166e6975ff21c6d7','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$pQpPhCEt3/Q7tZwe7CdDw4zCUnzRgGfAgB4OyrUKUpc67GL.UdtlL','user','ak_3d3265d00d7c3a89','2023-10-18 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$pu2VQYUyTGaIwUJMhZ6TrlcFZfAmTqetKUs0dfQAnKA1fdaFn1u9m','user','ak_bcaf8522d0e0e325','2023-02-22 10:03: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=18028;

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


