-- Host: db-master-1.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$jy.4q7FUxAjH/wkP1jFILsa45zpy/fCkpvV7tx454hT6ry2yjESTt','user','ak_eaa3ab041ef4fedc','2023-10-05 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$TQro0XYN7if3XDGAJESqmmd7Z2YXU/rA8KYVczKYFqbO3mJlSuqky','user','ak_af4bd80a16e08aa7','2023-12-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$WpumEypMi7yVs.JPcrFxSEqrTtXI5rhPUlk8EfiluDgt8IP6whz8u','admin','ak_a7b8c0bc30cc82a0','2023-06-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$XAA0f.EVEk0e0NOj5CWN0TyDEiMW8g10eiErS1it1d8VMvnH/LzIl','user','ak_16bf6141e6e81dff','2023-10-23 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$/TaEpYt/O6MOj9jri6GywqGMHEJlN0hYOjG6Uj9JGLOjdUQydZHCs','user','ak_6ee33d42f2705322','2023-09-19 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$SCoe2TSfjR5Tax058VxPzLvgSNSAQpmQqplxMxnoFXciPxjsviUXX','user','ak_8e61f0c926251691','2023-07-24 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$bb1VxjryYArARfC8AhRw0.D.uqc6SY4ZcgJSiHGgSDMSmGbpjgutw','user','ak_d31514694aed4a79','2023-03-15 10:08:00',NULL);

