-- Host: db-master-3.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=42457;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$9ahl6d1HMpBKlJ9ipZOkKia7mNXjRkdaF9jsYMAre8nNYZ99rGmx.','user','ak_857208a3cc5164d5','2023-08-26 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$E3.0KVk0qeQ0sBpFEopSWnNkMgsn52Q6bfVPyTkGS9UCXRG9CvGAz','admin','ak_c5f72b9520ebdca8','2023-09-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$q0sT/U4mPbjHtGbM3YcOIXyOZj5WKB6LCigu3BZ3Brgmf/nUTMRml','admin','ak_f3365cd83197e520','2023-11-09 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$17d8.xTNq9Rk9AODyMbO1FtCbUmnr.m8lX7hZppLy6p.flUDuWHFX','user','ak_cb171e654db51709','2023-11-03 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$OEaG6LE85t8PhetYmW4upUrXK4qNjcVOkhdqVIW8MGk/5RZywOkxA','user','ak_e94e686ddd48cd87','2023-03-08 10:16:00',NULL);

